summaryrefslogtreecommitdiff
path: root/drivers/usb/class/cdc-acm.c
diff options
context:
space:
mode:
authorZCHLABB47624-01 <b47624@b47624.ap.freescale.net>2014-05-15 18:50:30 +0800
committerPeng Fushi <fushi.peng@freescale.com>2014-08-29 14:30:36 +0800
commite314064d431d32a5a81da6681f57cdb3c20cad5b (patch)
treefc771d02c1c4d04de8ad3efd0b6ca6c222183903 /drivers/usb/class/cdc-acm.c
parentdec81b660c750177ed8907cf0ff12d8e55e2abb2 (diff)
ENGR00313729 usb: class: acm: use nonbufferable memory for rx dma buffer
use dma_pool_alloc_nonbufferable for rx buf instead of dma_alloc_coherent for usb host cdc-acm to fix data coherent issue. Signed-off-by: Li Jun <b47624@freescale.com>
Diffstat (limited to 'drivers/usb/class/cdc-acm.c')
-rw-r--r--drivers/usb/class/cdc-acm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/class/cdc-acm.c b/drivers/usb/class/cdc-acm.c
index 84e69ea2309b..5a97ff143fc3 100644
--- a/drivers/usb/class/cdc-acm.c
+++ b/drivers/usb/class/cdc-acm.c
@@ -1134,8 +1134,8 @@ made_compressed_probe:
struct acm_rb *rb = &(acm->read_buffers[i]);
struct urb *urb;
- rb->base = usb_alloc_coherent(acm->dev, readsize, GFP_KERNEL,
- &rb->dma);
+ rb->base = usb_alloc_nonbufferable(acm->dev, readsize,
+ GFP_KERNEL, &rb->dma);
if (!rb->base) {
dev_err(&intf->dev, "out of memory "
"(read bufs usb_alloc_coherent)\n");