]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
usb: chipidea: udc: handle USB Error Interrupt if IOC not set
authorXu Yang <xu.yang_2@nxp.com>
Thu, 26 Sep 2024 02:29:04 +0000 (10:29 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 14 Dec 2024 19:04:07 +0000 (20:04 +0100)
commit37065eee084e3b57003c08b304fe357700c96cd5
treea31a45639d8169b0f426fcfbd96869a993cc257d
parentf14e63cf8649bd2ae3228fd1a0a1b188f0c194a3
usb: chipidea: udc: handle USB Error Interrupt if IOC not set

[ Upstream commit 548f48b66c0c5d4b9795a55f304b7298cde2a025 ]

As per USBSTS register description about UEI:

  When completion of a USB transaction results in an error condition, this
  bit is set by the Host/Device Controller. This bit is set along with the
  USBINT bit, if the TD on which the error interrupt occurred also had its
  interrupt on complete (IOC) bit set.

UI is set only when IOC set. Add checking UEI to fix miss call
isr_tr_complete_handler() when IOC have not set and transfer error happen.

Acked-by: Peter Chen <peter.chen@kernel.com>
Signed-off-by: Xu Yang <xu.yang_2@nxp.com>
Link: https://lore.kernel.org/r/20240926022906.473319-1-xu.yang_2@nxp.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/usb/chipidea/udc.c