]> www.infradead.org Git - users/jedix/linux-maple.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>
Fri, 4 Oct 2024 13:14:09 +0000 (15:14 +0200)
commit548f48b66c0c5d4b9795a55f304b7298cde2a025
treed6fc525c07a1620a69ed1811c190ee7c6e3633ba
parentedfcc455c85ccc5855f0c329ca5a2d85cc9fc6c6
usb: chipidea: udc: handle USB Error Interrupt if IOC not set

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>
drivers/usb/chipidea/udc.c