diff options
author | Anton Tikhomirov <av.tikhomirov@samsung.com> | 2012-03-06 05:08:29 (GMT) |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2012-04-10 16:11:45 (GMT) |
commit | 70fa030ffb652ace81dd5bcab01255b49723caec (patch) | |
tree | 5ed20b7480f31519e2bdd74943c0706aa3c43e36 /drivers/usb | |
parent | 659ad60cb9128345d0a6b9093dda9b0e366b7937 (diff) | |
download | linux-fsl-qoriq-70fa030ffb652ace81dd5bcab01255b49723caec.tar.xz |
usb: s3c-hsotg: Avoid TxFIFO corruption in DMA mode
Writing to TxFIFO relates only to Slave mode and leads to
TxFIFO corruption in DMA mode.
Signed-off-by: Anton Tikhomirov <av.tikhomirov@samsung.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/gadget/s3c-hsotg.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/usb/gadget/s3c-hsotg.c b/drivers/usb/gadget/s3c-hsotg.c index 03de169..8db2366 100644 --- a/drivers/usb/gadget/s3c-hsotg.c +++ b/drivers/usb/gadget/s3c-hsotg.c @@ -1921,7 +1921,8 @@ static void s3c_hsotg_epint(struct s3c_hsotg *hsotg, unsigned int idx, ints & S3C_DIEPMSK_TxFIFOEmpty) { dev_dbg(hsotg->dev, "%s: ep%d: TxFIFOEmpty\n", __func__, idx); - s3c_hsotg_trytx(hsotg, hs_ep); + if (!using_dma(hsotg)) + s3c_hsotg_trytx(hsotg, hs_ep); } } } |