|
@@ -101,11 +101,11 @@ struct usb_linux_config_descriptor {
|
|
|
} __attribute__ ((packed));
|
|
|
|
|
|
#if defined CONFIG_EHCI_DESC_BIG_ENDIAN
|
|
|
-#define ehci_readl(x) cpu_to_be32(readl(x))
|
|
|
-#define ehci_writel(a, b) writel(cpu_to_be32(b), a)
|
|
|
+#define ehci_readl(x) be32_to_cpu(__raw_readl(x))
|
|
|
+#define ehci_writel(a, b) __raw_writel(cpu_to_be32(b), a)
|
|
|
#else
|
|
|
-#define ehci_readl(x) cpu_to_le32(readl(x))
|
|
|
-#define ehci_writel(a, b) writel(cpu_to_le32(b), a)
|
|
|
+#define ehci_readl(x) readl(x)
|
|
|
+#define ehci_writel(a, b) writel(b, a)
|
|
|
#endif
|
|
|
|
|
|
#if defined CONFIG_EHCI_MMIO_BIG_ENDIAN
|