diff options
-rw-r--r-- | drivers/scsi/libata-core.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/scsi/libata-core.c b/drivers/scsi/libata-core.c index e891b83be10f..45b6b29bc10f 100644 --- a/drivers/scsi/libata-core.c +++ b/drivers/scsi/libata-core.c | |||
@@ -1498,6 +1498,12 @@ static int ata_bus_probe(struct ata_port *ap) | |||
1498 | if (classes[i] == ATA_DEV_UNKNOWN) | 1498 | if (classes[i] == ATA_DEV_UNKNOWN) |
1499 | classes[i] = ATA_DEV_NONE; | 1499 | classes[i] = ATA_DEV_NONE; |
1500 | 1500 | ||
1501 | /* after the reset the device state is PIO 0 and the controller | ||
1502 | state is undefined. Record the mode */ | ||
1503 | |||
1504 | for (i = 0; i < ATA_MAX_DEVICES; i++) | ||
1505 | ap->device[i].pio_mode = XFER_PIO_0; | ||
1506 | |||
1501 | /* read IDENTIFY page and configure devices */ | 1507 | /* read IDENTIFY page and configure devices */ |
1502 | for (i = 0; i < ATA_MAX_DEVICES; i++) { | 1508 | for (i = 0; i < ATA_MAX_DEVICES; i++) { |
1503 | dev = &ap->device[i]; | 1509 | dev = &ap->device[i]; |