diff options
author | Tejun Heo <htejun@gmail.com> | 2006-11-01 04:38:52 -0500 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2006-12-01 22:41:31 -0500 |
commit | efdaedc443e935eda82e9e78a6e65d1f993d242f (patch) | |
tree | 8bcdc05ec85f7a9e7b0a5b1e5014ec21cf4e8aac /drivers/ata/libata-eh.c | |
parent | ad616ffbda8caf3ce76d2b43027e789d732abf48 (diff) |
[PATCH] libata: implement ATA_EHI_PRINTINFO
Implement ehi flag ATA_EHI_PRINTINFO. This flag is set when device
configuration needs to print out device info. This used to be handled
by @print_info argument to ata_dev_configure() but LLDs also need to
know about it in ->dev_config() callback.
This patch replaces @print_info w/ ATA_EHI_PRINTINFO and make sata_sil
print workaround messages only on the initial configuration.
Signed-off-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
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; |