aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/host
diff options
context:
space:
mode:
authorSteven J. Hill <sjhill@mips.com>2012-05-11 12:40:25 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-05-11 18:17:30 -0400
commitfdf6e6390a567963e302a62ef676dd648d11661c (patch)
treed3328f7565049ffd1f08e8abda468b382516973f /drivers/usb/host
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')
-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 4c164308ed2..cc199e87a7a 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)
28 28
29 ehci->caps = hcd->regs + 0x100; 29 ehci->caps = hcd->regs + 0x100;
30 30
31#ifdef __BIG_ENDIAN
32 ehci->big_endian_mmio = 1;
33 ehci->big_endian_desc = 1;
34#endif
35
31 ret = ehci_setup(hcd); 36 ret = ehci_setup(hcd);
32 if (ret) 37 if (ret)
33 return ret; 38 return ret;
34 39
35 ehci->need_io_watchdog = 0; 40 ehci->need_io_watchdog = 0;
36 41
37#ifdef __BIG_ENDIAN
38 ehci->big_endian_mmio = 1;
39 ehci->big_endian_desc = 1;
40#endif
41
42 /* Set burst length to 16 words. */ 42 /* Set burst length to 16 words. */
43 ehci_writel(ehci, 0x1010, &ehci->regs->reserved[1]); 43 ehci_writel(ehci, 0x1010, &ehci->regs->reserved[1]);
44 44