diff options
author | Yuan-Hsin Chen <yuanlmm@gmail.com> | 2013-04-02 11:15:28 +0000 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2013-04-02 16:57:24 +0300 |
commit | 9770a16fd9d9c5a91378d53732be1d2ec599bfcf (patch) | |
tree | 74964d0d6ef538b8f754570e8a49a52e8dd4f27b /drivers/usb/gadget/fusb300_udc.c | |
parent | 19fda7cd59eac8e537f63a4d9bd5973bf78a8c38 (diff) | |
download | op-kernel-dev-9770a16fd9d9c5a91378d53732be1d2ec599bfcf.zip op-kernel-dev-9770a16fd9d9c5a91378d53732be1d2ec599bfcf.tar.gz |
usb: gadget: fusb300_udc: add FUSB300_EPSET0_STL_CLR for clearing EP0 stall
The final version of fusb300 controller adds EPSET0_STL_CLR
for clearing EP0 stall and also removes EPSET0_EPn_TX0BYTE.
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>
Diffstat (limited to 'drivers/usb/gadget/fusb300_udc.c')
-rw-r--r-- | drivers/usb/gadget/fusb300_udc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/fusb300_udc.c b/drivers/usb/gadget/fusb300_udc.c index d053553..db0d291 100644 --- a/drivers/usb/gadget/fusb300_udc.c +++ b/drivers/usb/gadget/fusb300_udc.c @@ -394,7 +394,7 @@ static void fusb300_clear_epnstall(struct fusb300 *fusb300, u8 ep) if (reg & FUSB300_EPSET0_STL) { printk(KERN_DEBUG "EP%d stall... Clear!!\n", ep); - reg &= ~FUSB300_EPSET0_STL; + reg |= FUSB300_EPSET0_STL_CLR; iowrite32(reg, fusb300->reg + FUSB300_OFFSET_EPSET0(ep)); } } |