]> git.baikalelectronics.ru Git - kernel.git/commit
usb: dwc3: gadget: move AcceptU1Ena and AcceptU2Ena to Reset IRQ
authorGerard CAUVY <g-cauvy1@ti.com>
Thu, 24 May 2012 09:47:36 +0000 (12:47 +0300)
committerFelipe Balbi <balbi@ti.com>
Sun, 3 Jun 2012 20:08:26 +0000 (23:08 +0300)
commitedeeb5a40724a83eaee76ee93cc36cead16f8127
treef1d1a6993993f79b8561d8648ea3e9dae83c0972
parent2e34e4129ebdf212cc4260ad86dc1852832151f2
usb: dwc3: gadget: move AcceptU1Ena and AcceptU2Ena to Reset IRQ

According to the databook, the DWC3 Core will
reset those bits to 0 on USB Bus Reset. This
means we must re-enable those bits on every
reset interrupt.

Because we will always get a Reset interrupt
after loading a gadget driver, we can, instead
of re-enabling something that was just lost,
move the handling of those bits to the Reset
Interrupt.

This patch fixes USB30CV U1/U2 Test.

Signed-off-by: Gerard CAUVY <g-cauvy1@ti.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/dwc3/gadget.c