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)
commit6ff5d09bd2fd5943f5b16cb1e3453446a1f575e2
tree8adfa67adf3e32329be391720da2184272b64e3a
parent6e6db82ba9bf2d5912897f77ccf6902cb8543372
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