usb: xhci: correct return value in case of STS_HCE
authorOliver Neukum <oneukum@suse.com>
Thu, 4 Apr 2024 12:11:05 +0000 (15:11 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 4 Apr 2024 12:54:53 +0000 (14:54 +0200)
commit5bfc311dd6c376d350b39028b9000ad766ddc934
tree8ce7568fdfbbae2d7bda867344dfec1c5ffbedac
parent39cd87c4eb2b893354f3b850f916353f2658ae6f
usb: xhci: correct return value in case of STS_HCE

If we get STS_HCE we give up on the interrupt, but for the purpose
of IRQ handling that still counts as ours. We may return IRQ_NONE
only if we are positive that it wasn't ours. Hence correct the default.

Fixes: 2a25e66d676d ("xhci: print warning when HCE was set")
Cc: stable@vger.kernel.org # v6.2+
Signed-off-by: Oliver Neukum <oneukum@suse.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Link: https://lore.kernel.org/r/20240404121106.2842417-2-mathias.nyman@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci-ring.c