Skip to contentSkip to conversation

libata: skip suppress reporting if ATA_EHI_QUIET

PATCH Applied Tejun Heo 2 participants 2 messages Oct 9, 2007 – Oct 10, 2007 libata

lore
Share & tools
lore

Tejun Heo

author
#0 lore raw

PATCH 1/1 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.

---
 drivers/ata/libata-eh.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
drivers/ata/libata-eh.c +3 -0
index 0bd3898..866ac9d 100644
@@ -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;
Signature · 1 line
1.5.0.3
Applied
#1 lore raw
Quoted 7 lines · Tejun Heo

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.

Quoted 6 lines

Skip reporting if ATA_EHI_QUIET is set.

---
 drivers/ata/libata-eh.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

applied