]> git.baikalelectronics.ru Git - kernel.git/commit
usb: gadget: s3c-hsotg: fix interrupt configuration in dedicated-fifo mode
authorRobert Baldyga <r.baldyga@samsung.com>
Thu, 19 Sep 2013 09:50:23 +0000 (11:50 +0200)
committerFelipe Balbi <balbi@ti.com>
Tue, 15 Oct 2013 13:45:50 +0000 (08:45 -0500)
commitcebe91b154258b9979626b5596076540ec49ac34
tree43892f1ed534e3bc34ea133ddc0bc7c36e09bbb4
parentbecb28257d2f5299daf9b996dcd0ce8260a96209
usb: gadget: s3c-hsotg: fix interrupt configuration in dedicated-fifo mode

In dedicated-fifo mode TxFIFOEmpty interrupt should be asserted when TxFIFO
for this endpoint is completly empty, so NPTxFEmpLvl and PTxFEmpLvl bits are
set in GAHBCFG register.
In DIEPMSK register INTknTXFEmpMsk is set, becouse it's needed to indicate
FIFO Empty state.

Signed-off-by: Robert Baldyga <r.baldyga@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/s3c-hsotg.c