summaryrefslogtreecommitdiff
path: root/include/linux/usb
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 /include/linux/usb
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 'include/linux/usb')
-rw-r--r--include/linux/usb/hcd.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/usb/hcd.h b/include/linux/usb/hcd.h
index c0ecc5a2ef9e..fae56f96f0bc 100644
--- a/include/linux/usb/hcd.h
+++ b/include/linux/usb/hcd.h
@@ -405,6 +405,8 @@ void hcd_buffer_destroy(struct usb_hcd *hcd);
void *hcd_buffer_alloc(struct usb_bus *bus, size_t size,
gfp_t mem_flags, dma_addr_t *dma);
+void *hcd_buffer_alloc_nonbufferable(struct usb_bus *bus, size_t size,
+ gfp_t mem_flags, dma_addr_t *dma);
void hcd_buffer_free(struct usb_bus *bus, size_t size,
void *addr, dma_addr_t dma);