]> git.baikalelectronics.ru Git - kernel.git/commit
usb: gadget: renesas_usbhs: disable pipe on top of interrupt
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Tue, 11 Oct 2011 05:05:51 +0000 (22:05 -0700)
committerFelipe Balbi <balbi@ti.com>
Thu, 13 Oct 2011 17:41:46 +0000 (20:41 +0300)
commitd1b64f09b17aa31e2364c4bb7bb5b21a54447bd2
tree8adfa67adf3e32329be391720da2184272b64e3a
parent8fe0ec6426bb9a7bae685f54767016299cf5b638
usb: gadget: renesas_usbhs: disable pipe on top of interrupt

When data read interrupt happened, the pipe is BUF which means "enable".
then, next un-necessary interrupt/token might be
issued again when all data were popped from fifo.
It will cause un-understandable bug.
This patch decides pipe disable on top of read interrupt.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/renesas_usbhs/fifo.c