diff options
Diffstat (limited to 'drivers/ata/libata-eh.c')
-rw-r--r-- | drivers/ata/libata-eh.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/ata/libata-eh.c b/drivers/ata/libata-eh.c index 02b2b2787d9b..7c446442616c 100644 --- a/drivers/ata/libata-eh.c +++ b/drivers/ata/libata-eh.c | |||
@@ -1661,8 +1661,11 @@ static int ata_eh_revalidate_and_attach(struct ata_port *ap, | |||
1661 | dev->class = ehc->classes[dev->devno]; | 1661 | dev->class = ehc->classes[dev->devno]; |
1662 | 1662 | ||
1663 | rc = ata_dev_read_id(dev, &dev->class, 1, dev->id); | 1663 | rc = ata_dev_read_id(dev, &dev->class, 1, dev->id); |
1664 | if (rc == 0) | 1664 | if (rc == 0) { |
1665 | rc = ata_dev_configure(dev, 1); | 1665 | ehc->i.flags |= ATA_EHI_PRINTINFO; |
1666 | rc = ata_dev_configure(dev); | ||
1667 | ehc->i.flags &= ~ATA_EHI_PRINTINFO; | ||
1668 | } | ||
1666 | 1669 | ||
1667 | if (rc) { | 1670 | if (rc) { |
1668 | dev->class = ATA_DEV_UNKNOWN; | 1671 | dev->class = ATA_DEV_UNKNOWN; |