aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTejun Heo <htejun@gmail.com>2007-10-09 01:57:25 -0400
committerJeff Garzik <jeff@garzik.org>2007-10-12 14:55:46 -0400
commitabf6e8ed07213bdd9734be2e42639b79310bd81c (patch)
tree27ea8657a2342a9a9ef9e7f8b8deef6fdc37adbd
parenta01f48b8e7f5ca1000d662fe205e6fe884e0d132 (diff)
libata: clear ehi description after initial host report
ehi description field is used to carry LLD specific controller description. Sometimes, it's used without clearing before and LLD description gets printed with exception information one more time. Clear after printing. Signed-off-by: Tejun Heo <htejun@gmail.com> Signed-off-by: Jeff Garzik <jeff@garzik.org>
-rw-r--r--drivers/ata/libata-core.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c
index 519ce586bd13..db760e2dc30b 100644
--- a/drivers/ata/libata-core.c
+++ b/drivers/ata/libata-core.c
@@ -6773,13 +6773,14 @@ int ata_host_register(struct ata_host *host, struct scsi_host_template *sht)
6773 xfer_mask = ata_pack_xfermask(ap->pio_mask, ap->mwdma_mask, 6773 xfer_mask = ata_pack_xfermask(ap->pio_mask, ap->mwdma_mask,
6774 ap->udma_mask); 6774 ap->udma_mask);
6775 6775
6776 if (!ata_port_is_dummy(ap)) 6776 if (!ata_port_is_dummy(ap)) {
6777 ata_port_printk(ap, KERN_INFO, 6777 ata_port_printk(ap, KERN_INFO,
6778 "%cATA max %s %s\n", 6778 "%cATA max %s %s\n",
6779 (ap->flags & ATA_FLAG_SATA) ? 'S' : 'P', 6779 (ap->flags & ATA_FLAG_SATA) ? 'S' : 'P',
6780 ata_mode_string(xfer_mask), 6780 ata_mode_string(xfer_mask),
6781 ap->link.eh_info.desc); 6781 ap->link.eh_info.desc);
6782 else 6782 ata_ehi_clear_desc(&ap->link.eh_info);
6783 } else
6783 ata_port_printk(ap, KERN_INFO, "DUMMY\n"); 6784 ata_port_printk(ap, KERN_INFO, "DUMMY\n");
6784 } 6785 }
6785 6786