Эх сурвалжийг харах

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 <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>
Marcin Wojtas 10 жил өмнө
parent
commit
782614b80e

+ 2 - 2
drivers/usb/host/ehci-orion.c

@@ -25,8 +25,8 @@
 
 
 #include "ehci.h"
 #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_CMD			0x140
 #define USB_MODE		0x1a8
 #define USB_MODE		0x1a8