9
0
Fork 0

ata: ide-sff: Add missing wait for ready in write function

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Sascha Hauer 2013-09-25 09:34:21 +02:00
parent 08ed36a3a5
commit 8d7f51aeea
1 changed files with 3 additions and 0 deletions

View File

@ -296,6 +296,9 @@ static int __maybe_unused ide_write(struct ata_port *port,
if (rc != 0)
return rc;
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);