Commit:     abf6e8ed07213bdd9734be2e42639b79310bd81c
Parent:     a01f48b8e7f5ca1000d662fe205e6fe884e0d132
Author:     Tejun Heo <[EMAIL PROTECTED]>
AuthorDate: Tue Oct 9 14:57:25 2007 +0900
Committer:  Jeff Garzik <[EMAIL PROTECTED]>
CommitDate: Fri Oct 12 14:55:46 2007 -0400

    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 <[EMAIL PROTECTED]>
    Signed-off-by: Jeff Garzik <[EMAIL PROTECTED]>
 drivers/ata/libata-core.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c
index 519ce58..db760e2 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)
                xfer_mask = ata_pack_xfermask(ap->pio_mask, ap->mwdma_mask,
-               if (!ata_port_is_dummy(ap))
+               if (!ata_port_is_dummy(ap)) {
                        ata_port_printk(ap, KERN_INFO,
                                        "%cATA max %s %s\n",
                                        (ap->flags & ATA_FLAG_SATA) ? 'S' : 'P',
-               else
+                       ata_ehi_clear_desc(&ap->link.eh_info);
+               } else
                        ata_port_printk(ap, KERN_INFO, "DUMMY\n");
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to