usb: ehci-orion: enable big-endian support
authorMarcin Wojtas <mw@semihalf.com>
Wed, 12 Nov 2014 23:49:50 +0000 (00:49 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 25 Nov 2014 01:22:04 +0000 (17:22 -0800)
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 <jaz@semihalf.com>
Signed-off-by: Marcin Wojtas <mw@semihalf.com>
Reviewed-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
Tested-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/ehci-orion.c

index 36b46576e5b30e703a9efa3d7239795a1ce28443..3c76489ea61adc5b4d7217681d24925693a5dc7e 100644 (file)
@@ -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