From: Marcin Wojtas Date: Wed, 12 Nov 2014 23:49:50 +0000 (+0100) Subject: usb: ehci-orion: enable big-endian support X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=782614b80edf97dad35fa93f9981883c3e117c29;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git usb: ehci-orion: enable big-endian support This commit fixes ehci-orion operation in big-endian mode by enabling byteswap when accessing registers using 'rdl' and 'wrl' macros. Signed-off-by: Grzegorz Jaszczyk Signed-off-by: Marcin Wojtas Reviewed-by: Gregory CLEMENT Tested-by: Thomas Petazzoni Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/host/ehci-orion.c b/drivers/usb/host/ehci-orion.c index 36b46576e5b3..3c76489ea61a 100644 --- a/drivers/usb/host/ehci-orion.c +++ b/drivers/usb/host/ehci-orion.c @@ -25,8 +25,8 @@ #include "ehci.h" -#define rdl(off) __raw_readl(hcd->regs + (off)) -#define wrl(off, val) __raw_writel((val), hcd->regs + (off)) +#define rdl(off) readl_relaxed(hcd->regs + (off)) +#define wrl(off, val) writel_relaxed((val), hcd->regs + (off)) #define USB_CMD 0x140 #define USB_MODE 0x1a8