diff options
author | Subash Patel <subash.rp@samsung.com> | 2012-12-05 10:37:49 +0530 |
---|---|---|
committer | Tushar Behera <tushar.behera@linaro.org> | 2013-01-22 11:41:39 +0530 |
commit | a02b953c59cf244c387487fad8b0a3bc139c5b01 (patch) | |
tree | 9d4756d118ee42bcd08e83f0ee14dcd499e56a8d | |
parent | 5e423b6498eadfdc3504c4f38acb6551a3a15c2a (diff) | |
download | linux-topics-a02b953c59cf244c387487fad8b0a3bc139c5b01.tar.gz |
ARM: exynos: add coherent dma mask
This patch adds the coherent_dma_mask to usb/dwc3 node. This is
needed as check is performed before allocating any coherent buffer
in the dma-mapping framework.
Note: Find a better place to add this change
Signed-off-by: Subash Patel <subash.rp@samsung.com>
-rw-r--r-- | drivers/usb/dwc3/core.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/usb/dwc3/core.c b/drivers/usb/dwc3/core.c index 656a9c9a742..171ca5ec7f7 100644 --- a/drivers/usb/dwc3/core.c +++ b/drivers/usb/dwc3/core.c @@ -435,6 +435,8 @@ static int dwc3_probe(struct platform_device *pdev) dwc->regs = regs; dwc->regs_size = resource_size(res); dwc->dev = dev; + /* set the dma coherent mask */ + dwc->dev->coherent_dma_mask = DMA_BIT_MASK(64); if (!strncmp("super", maximum_speed, 5)) dwc->maximum_speed = DWC3_DCFG_SUPERSPEED; |