Commit 94ff3d54 authored by Tejun Heo's avatar Tejun Heo Committed by Jeff Garzik

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: default avatarTejun Heo <htejun@gmail.com>
Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
parent abf6e8ed
...@@ -1868,6 +1868,9 @@ static void ata_eh_link_report(struct ata_link *link) ...@@ -1868,6 +1868,9 @@ static void ata_eh_link_report(struct ata_link *link)
char tries_buf[6]; char tries_buf[6];
int tag, nr_failed = 0; int tag, nr_failed = 0;
if (ehc->i.flags & ATA_EHI_QUIET)
return;
desc = NULL; desc = NULL;
if (ehc->i.desc[0] != '\0') if (ehc->i.desc[0] != '\0')
desc = ehc->i.desc; desc = ehc->i.desc;
......
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