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 <j...@semihalf.com>
Signed-off-by: Marcin Wojtas <m...@semihalf.com>
Reviewed-by: Gregory CLEMENT <gregory.clem...@free-electrons.com>
---
 drivers/usb/host/ehci-orion.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/usb/host/ehci-orion.c b/drivers/usb/host/ehci-orion.c
index 22e15ca..9d70898 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
-- 
1.8.3.1

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to