EtchedPixels / FUZIX

FuzixOS: Because Small Is Beautiful
Other
2.13k stars 267 forks source link

tinyide: fix IDE device detection on boot #1073

Closed ra1fh closed 1 month ago

ra1fh commented 1 month ago

In my case (SC111 with SC145 and CF), the device signals DRDY before BSY is 0, which leads to a timeout and failed disk detection. So wait for BSY to be 0 in addition to DRDY before submitting the identify command.

EtchedPixels commented 1 month ago

Thanks. Will get to it in a couple of days. That looks correct - in fact I don't think the state of DRDY is even defined when busy.

EtchedPixels commented 1 month ago

Thanks