diff options
Diffstat (limited to 'drivers/ata')
-rw-r--r-- | drivers/ata/ide-sff.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/ata/ide-sff.c b/drivers/ata/ide-sff.c index 0e8b744e2e..a7f2647afd 100644 --- a/drivers/ata/ide-sff.c +++ b/drivers/ata/ide-sff.c @@ -298,6 +298,9 @@ static int __maybe_unused ide_write(struct ata_port *port, rc = ata_wr_cmd(ide, ATA_CMD_WRITE); if (rc != 0) return rc; + rc = ata_wait_ready(ide, MAX_TIMEOUT); + if (rc != 0) + return rc; ata_wr_sector(ide, buffer); num_blocks--; sector++; |