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:
parent
08ed36a3a5
commit
8d7f51aeea
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue