summaryrefslogtreecommitdiffstats
path: root/drivers/usb/host/xhci-plat.c
diff options
context:
space:
mode:
authorRuchika Kharwar <ruchika@ti.com>2012-08-10 08:58:30 +0200
committerSarah Sharp <sarah.a.sharp@linux.intel.com>2012-09-05 21:07:19 +0200
commit319acdfc064169023cd9ada5085b434fbcdacec2 (patch)
tree18fd04a0e102a9dc7f71af3287b84449969bc4f9 /drivers/usb/host/xhci-plat.c
parentusb: host: xhci: Fix Compliance Mode on SN65LVPE502CP Hardware (diff)
downloadlinux-319acdfc064169023cd9ada5085b434fbcdacec2.tar.xz
linux-319acdfc064169023cd9ada5085b434fbcdacec2.zip
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/host/xhci-plat.c')
-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 689bc18b051d..df90fe51b4aa 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;