]> 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 18:51:42 +0000 (19:51 +0100)
commitda4809b05b657dba20cc55a76fac44076f0ae7cf
tree66a90eb99284b971c85ed88d517c5121a079f0f1
parent2d98fa2a50b8058de52ada168fa5dbabb574711b
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