EtchedPixels / FUZIX

FuzixOS: Because Small Is Beautiful
Other
2.19k stars 275 forks source link

tinyide: fix IDE device detection on boot #1073

Closed ra1fh closed 5 months ago

ra1fh commented 5 months 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 5 months 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 5 months ago

Thanks