projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
659ad60
)
usb: s3c-hsotg: Avoid TxFIFO corruption in DMA mode
author
Anton Tikhomirov
<av.tikhomirov@samsung.com>
Tue, 6 Mar 2012 05:08:29 +0000
(14:08 +0900)
committer
Felipe Balbi
<balbi@ti.com>
Tue, 10 Apr 2012 16:11:45 +0000
(19:11 +0300)
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>
drivers/usb/gadget/s3c-hsotg.c
patch
|
blob
|
history
diff --git
a/drivers/usb/gadget/s3c-hsotg.c
b/drivers/usb/gadget/s3c-hsotg.c
index 03de169ab3651b826d3def9e5e388d7ff11050b6..8db23660b5e2d42dab04c85efa7eda2f3f804a8c 100644
(file)
--- 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);
}
}
}