summaryrefslogtreecommitdiffstats
path: root/drivers/usb
diff options
context:
space:
mode:
authorRuchika Kharwar <ruchika@ti.com>2012-08-10 09:58:30 +0300
committerSarah Sharp <sarah.a.sharp@linux.intel.com>2012-09-05 12:07:19 -0700
commit319acdfc064169023cd9ada5085b434fbcdacec2 (patch)
tree18fd04a0e102a9dc7f71af3287b84449969bc4f9 /drivers/usb
parent71c731a296f1b08a3724bd1b514b64f1bda87a23 (diff)
downloadop-kernel-dev-319acdfc064169023cd9ada5085b434fbcdacec2.zip
op-kernel-dev-319acdfc064169023cd9ada5085b434fbcdacec2.tar.gz
usb: host: xhci-plat: use ioremap_nocache
Use the ioremap_nocache variant of the ioremap API in order to make sure our memory will be marked uncachable. This patch should be backported to kernels as old as 3.4, that contain the commit 3429e91a661e1f383aecc86c6bbcf65afb15c892 "usb: host: xhci: add platform driver support". Signed-off-by: Ruchika Kharwar <ruchika@ti.com> Signed-off-by: Felipe Balbi <balbi@ti.com> Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com> Cc: stable@vger.kernel.org
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/host/xhci-plat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/host/xhci-plat.c b/drivers/usb/host/xhci-plat.c
index 689bc18..df90fe5 100644
--- a/drivers/usb/host/xhci-plat.c
+++ b/drivers/usb/host/xhci-plat.c
@@ -118,7 +118,7 @@ static int xhci_plat_probe(struct platform_device *pdev)
goto put_hcd;
}
- hcd->regs = ioremap(hcd->rsrc_start, hcd->rsrc_len);
+ hcd->regs = ioremap_nocache(hcd->rsrc_start, hcd->rsrc_len);
if (!hcd->regs) {
dev_dbg(&pdev->dev, "error mapping memory\n");
ret = -EFAULT;
OpenPOWER on IntegriCloud