diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c index d5939e6..27ddc39 100644 --- a/drivers/ata/libata-core.c +++ b/drivers/ata/libata-core.c @@ -3031,7 +3031,7 @@ int ata_wait_ready(struct ata_port *ap, if (!(status & ATA_BUSY)) return 0; - if (status == 0xff) + if (!ata_port_online(ap) && status == 0xff) return -ENODEV; if (time_after(now, deadline)) return -EBUSY;