Skip to content

Commit

Permalink
libata: skip suppress reporting if ATA_EHI_QUIET
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Tejun Heo authored and Jeff Garzik committed Oct 12, 2007
1 parent abf6e8e commit 94ff3d5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/ata/libata-eh.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 94ff3d5

Please sign in to comment.