Skip to content

Commit

Permalink
Merge pull request #1073 from ra1fh/tinyide-fix-device-detection
Browse files Browse the repository at this point in the history
tinyide: fix IDE device detection on boot
  • Loading branch information
EtchedPixels authored Jun 15, 2024
2 parents 7c425d9 + 41f1865 commit f6cf8b9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Kernel/dev/tinyide_discard.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ static void ide_identify(int dev, uint8_t *buf)
ide_write(cmd, 0xEF);
}
#endif
if (ide_wait_nbusy() == -1)
return;
if (ide_wait_drdy() == -1)
return;
ide_write(cmd, 0xEC); /* Identify */
Expand Down

0 comments on commit f6cf8b9

Please sign in to comment.