Skip to content

Commit 2a25e66

Browse files
Longfang Liugregkh
authored andcommitted
xhci: print warning when HCE was set
When HCE(Host Controller Error) is set, it means that the xhci hardware controller has an error at this time, but the current xhci driver software does not log this event. By adding an HCE event detection in the xhci interrupt processing interface, a warning log is output to the system, which is convenient for system device status tracking. Signed-off-by: Longfang Liu <[email protected]> Signed-off-by: Mathias Nyman <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 51daa42 commit 2a25e66

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

drivers/usb/host/xhci-ring.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3031,6 +3031,11 @@ irqreturn_t xhci_irq(struct usb_hcd *hcd)
30313031
if (!(status & STS_EINT))
30323032
goto out;
30333033

3034+
if (status & STS_HCE) {
3035+
xhci_warn(xhci, "WARNING: Host Controller Error\n");
3036+
goto out;
3037+
}
3038+
30343039
if (status & STS_FATAL) {
30353040
xhci_warn(xhci, "WARNING: Host System Error\n");
30363041
xhci_halt(xhci);

0 commit comments

Comments
 (0)