diff options
-rw-r--r-- | drivers/scsi/ahci.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/scsi/ahci.c b/drivers/scsi/ahci.c index 0c5f0c844d21..ff48066d4c4f 100644 --- a/drivers/scsi/ahci.c +++ b/drivers/scsi/ahci.c | |||
@@ -549,6 +549,12 @@ static int ahci_softreset(struct ata_port *ap, int verbose, unsigned int *class) | |||
549 | 549 | ||
550 | DPRINTK("ENTER\n"); | 550 | DPRINTK("ENTER\n"); |
551 | 551 | ||
552 | if (!sata_dev_present(ap)) { | ||
553 | DPRINTK("PHY reports no device\n"); | ||
554 | *class = ATA_DEV_NONE; | ||
555 | return 0; | ||
556 | } | ||
557 | |||
552 | /* prepare for SRST (AHCI-1.1 10.4.1) */ | 558 | /* prepare for SRST (AHCI-1.1 10.4.1) */ |
553 | rc = ahci_stop_engine(ap); | 559 | rc = ahci_stop_engine(ap); |
554 | if (rc) { | 560 | if (rc) { |