diff options
author | Peter Chen <peter.chen@freescale.com> | 2013-06-08 15:55:25 +0800 |
---|---|---|
committer | Peter Chen <peter.chen@freescale.com> | 2013-06-19 18:13:58 +0800 |
commit | 9b52d426d5ff603167c65be9f589d8daf884ce62 (patch) | |
tree | 0a9db0a23abec7ab527a3d4341908009958002ef | |
parent | 00f4dad1eaf0d7109c91f8ccf91077aca6f69cc4 (diff) |
ENGR00266285-1 usb: gadget: using non-buffer & non-cache memory for dma buffer
It is the same issue with ENGR00217721, and it is also needed
for normal usb case.
Signed-off-by: Peter Chen <peter.chen@freescale.com>
-rwxr-xr-x | drivers/usb/gadget/arcotg_udc.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/usb/gadget/arcotg_udc.c b/drivers/usb/gadget/arcotg_udc.c index 7f554de3ebbe..087350a73ce4 100755 --- a/drivers/usb/gadget/arcotg_udc.c +++ b/drivers/usb/gadget/arcotg_udc.c @@ -959,11 +959,8 @@ static struct ep_td_struct *fsl_build_dtd(struct fsl_req *req, unsigned *length, (unsigned)EP_MAX_LENGTH_TRANSFER); if (NEED_IRAM(req->ep)) *length = min(*length, g_iram_size); -#ifdef CONFIG_FSL_UTP + dtd = dma_pool_alloc_nonbufferable(udc_controller->td_pool, GFP_ATOMIC, dma); -#else - dtd = dma_pool_alloc(udc_controller->td_pool, GFP_ATOMIC, dma); -#endif if (dtd == NULL) return dtd; |