xhci: print warning when HCE was set
authorLongfang Liu <liulongfang@huawei.com>
Wed, 30 Nov 2022 09:19:39 +0000 (11:19 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 Nov 2022 11:10:47 +0000 (12:10 +0100)
commit2a25e66d676dfb9b018abd503deed3d38a892dec
tree9f5b9e973f2fd6fdddb54f3bfba3fd275217d980
parent51daa42d6b86efa366320b99e7bbe29a490ed348
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 <liulongfang@huawei.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Link: https://lore.kernel.org/r/20221130091944.2171610-2-mathias.nyman@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci-ring.c