lkml.org 
[lkml]   [2012]   [Sep]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[ 166/262] usb: host: xhci-plat: use ioremap_nocache
    Date
    From: Greg KH <gregkh@linuxfoundation.org>

    3.5-stable review patch. If anyone has any objections, please let me know.

    ------------------

    From: Ruchika Kharwar <ruchika@ti.com>

    commit 319acdfc064169023cd9ada5085b434fbcdacec2 upstream.

    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>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

    ---
    drivers/usb/host/xhci-plat.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    --- a/drivers/usb/host/xhci-plat.c
    +++ b/drivers/usb/host/xhci-plat.c
    @@ -118,7 +118,7 @@ static int xhci_plat_probe(struct platfo
    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;



    \
     
     \ /
      Last update: 2012-09-29 00:01    [W:4.026 / U:0.172 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site