usb: gadget: fusb300_udc: bug fix of not doing idma reset for each time
authorYuan-Hsin Chen <yuanlmm@gmail.com>
Tue, 2 Apr 2013 11:18:08 +0000 (11:18 +0000)
committerFelipe Balbi <balbi@ti.com>
Tue, 2 Apr 2013 13:58:39 +0000 (16:58 +0300)
commit1cb5e9ee033f89d3241013cfff8300cc0195a62d
tree286d5813d94e5f33d097f7f826357efde70b76df
parent9770a16fd9d9c5a91378d53732be1d2ec599bfcf
usb: gadget: fusb300_udc: bug fix of not doing idma reset for each time

Enter IDMA_RESET only when the controller has been reset or
the device has been plugged in to or out from a host. In
IDMA_RESET, we should disable the corresponding PRD interrupt.
Also there is a redundant space eliminated.

fusb300_udc driver is tested on FARADAY platform a369 with
FUSB300 FPGA v1.8

Signed-off-by: Yuan-Hsin Chen <yhchen@faraday-tech.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/fusb300_udc.c