* grub-core/disk/pata.c (grub_pata_readwrite): Add missing wait.

This commit is contained in:
Vladimir 'phcoder' Serbinenko 2011-07-23 18:18:14 +02:00
parent 6be1c01fd7
commit 583168a216
2 changed files with 8 additions and 0 deletions

View file

@ -1,3 +1,7 @@
2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/disk/pata.c (grub_pata_readwrite): Add missing wait.
2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
* include/grub/video.h: add missing EXPORT_FUND on

View file

@ -177,6 +177,10 @@ grub_pata_readwrite (struct grub_ata *disk,
/* Start command. */
grub_pata_regset (dev, GRUB_ATA_REG_CMD, parms->taskfile.cmd);
/* Wait for !BSY. */
if (grub_pata_wait_not_busy (dev, GRUB_ATA_TOUT_DATA))
return grub_errno;
/* Check status. */
grub_int8_t sts = grub_pata_regget (dev, GRUB_ATA_REG_STATUS);
grub_dprintf ("pata", "status=0x%x\n", sts);