Commit abf6e8ed authored by Tejun Heo's avatar Tejun Heo Committed by Jeff Garzik

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: default avatarTejun Heo <htejun@gmail.com>
Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
parent a01f48b8
...@@ -6773,13 +6773,14 @@ int ata_host_register(struct ata_host *host, struct scsi_host_template *sht) ...@@ -6773,13 +6773,14 @@ int ata_host_register(struct ata_host *host, struct scsi_host_template *sht)
xfer_mask = ata_pack_xfermask(ap->pio_mask, ap->mwdma_mask, xfer_mask = ata_pack_xfermask(ap->pio_mask, ap->mwdma_mask,
ap->udma_mask); ap->udma_mask);
if (!ata_port_is_dummy(ap)) if (!ata_port_is_dummy(ap)) {
ata_port_printk(ap, KERN_INFO, ata_port_printk(ap, KERN_INFO,
"%cATA max %s %s\n", "%cATA max %s %s\n",
(ap->flags & ATA_FLAG_SATA) ? 'S' : 'P', (ap->flags & ATA_FLAG_SATA) ? 'S' : 'P',
ata_mode_string(xfer_mask), ata_mode_string(xfer_mask),
ap->link.eh_info.desc); ap->link.eh_info.desc);
else ata_ehi_clear_desc(&ap->link.eh_info);
} else
ata_port_printk(ap, KERN_INFO, "DUMMY\n"); ata_port_printk(ap, KERN_INFO, "DUMMY\n");
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment