]> Pileus Git - ~andy/linux/commitdiff
libata: skip suppress reporting if ATA_EHI_QUIET
authorTejun Heo <htejun@gmail.com>
Tue, 9 Oct 2007 05:57:56 +0000 (14:57 +0900)
committerJeff Garzik <jeff@garzik.org>
Fri, 12 Oct 2007 18:55:46 +0000 (14:55 -0400)
ATA_EHI_NO_AUTOPSY and ATA_EHI_QUIET are used during initial probing
to skip exception analysis and reporting.  Usually, there's nothing to
report but on some allowed but rare corner cases (e.g. phy status
changed interrupt when IRQ is enabled on frozen port - this happens if
IRQ pending status isn't cleared in the IRQ router or controller)
exception messages get printed.

Skip reporting if ATA_EHI_QUIET is set.

Signed-off-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/ata/libata-eh.c

index 0bd3898793a7fb439311b10df6ab765cdab47dd8..866ac9d5530a60f77634752d9a8013c234268de9 100644 (file)
@@ -1868,6 +1868,9 @@ static void ata_eh_link_report(struct ata_link *link)
        char tries_buf[6];
        int tag, nr_failed = 0;
 
+       if (ehc->i.flags & ATA_EHI_QUIET)
+               return;
+
        desc = NULL;
        if (ehc->i.desc[0] != '\0')
                desc = ehc->i.desc;