summaryrefslogtreecommitdiff
path: root/drivers/usb/host/ehci-sead3.c
diff options
context:
space:
mode:
authorSteven J. Hill <sjhill@mips.com>2012-05-11 11:40:25 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-05-11 15:17:30 -0700
commitfdf6e6390a567963e302a62ef676dd648d11661c (patch)
treed3328f7565049ffd1f08e8abda468b382516973f /drivers/usb/host/ehci-sead3.c
parent975dc33b82cb887d75a29b1e3835c8eb063a8e99 (diff)
usb: host: mips: sead3: Fix for big endian.
Fix driver to work properly in big endian mode. Signed-off-by: Steven J. Hill <sjhill@mips.com> Acked-by: Alan Stern <stern@rowland.harvard.edu> Cc: stable <stable@vger.kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/host/ehci-sead3.c')
-rw-r--r--drivers/usb/host/ehci-sead3.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/usb/host/ehci-sead3.c b/drivers/usb/host/ehci-sead3.c
index 4c164308ed20..cc199e87a7a9 100644
--- a/drivers/usb/host/ehci-sead3.c
+++ b/drivers/usb/host/ehci-sead3.c
@@ -28,17 +28,17 @@ static int ehci_sead3_setup(struct usb_hcd *hcd)
ehci->caps = hcd->regs + 0x100;
+#ifdef __BIG_ENDIAN
+ ehci->big_endian_mmio = 1;
+ ehci->big_endian_desc = 1;
+#endif
+
ret = ehci_setup(hcd);
if (ret)
return ret;
ehci->need_io_watchdog = 0;
-#ifdef __BIG_ENDIAN
- ehci->big_endian_mmio = 1;
- ehci->big_endian_desc = 1;
-#endif
-
/* Set burst length to 16 words. */
ehci_writel(ehci, 0x1010, &ehci->regs->reserved[1]);