aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ata/libata-eh.c
diff options
context:
space:
mode:
authorTejun Heo <htejun@gmail.com>2007-10-09 01:57:56 -0400
committerJeff Garzik <jeff@garzik.org>2007-10-12 14:55:46 -0400
commit94ff3d54080975686a3c41e73b8926030ee0c31f (patch)
tree07bc1b90166697c4783fbe5fbbc5f56b37448ddf /drivers/ata/libata-eh.c
parentabf6e8ed07213bdd9734be2e42639b79310bd81c (diff)
libata: skip suppress reporting if ATA_EHI_QUIET
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>
Diffstat (limited to 'drivers/ata/libata-eh.c')
-rw-r--r--drivers/ata/libata-eh.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/ata/libata-eh.c b/drivers/ata/libata-eh.c
index 0bd3898793a7..866ac9d5530a 100644
--- a/drivers/ata/libata-eh.c
+++ b/drivers/ata/libata-eh.c
@@ -1868,6 +1868,9 @@ static void ata_eh_link_report(struct ata_link *link)
1868 char tries_buf[6]; 1868 char tries_buf[6];
1869 int tag, nr_failed = 0; 1869 int tag, nr_failed = 0;
1870 1870
1871 if (ehc->i.flags & ATA_EHI_QUIET)
1872 return;
1873
1871 desc = NULL; 1874 desc = NULL;
1872 if (ehc->i.desc[0] != '\0') 1875 if (ehc->i.desc[0] != '\0')
1873 desc = ehc->i.desc; 1876 desc = ehc->i.desc;