Commit fdf6e639 authored by Steven J. Hill's avatar Steven J. Hill Committed by Greg Kroah-Hartman

usb: host: mips: sead3: Fix for big endian.

Fix driver to work properly in big endian mode.
Signed-off-by: default avatarSteven J. Hill <sjhill@mips.com>
Acked-by: default avatarAlan Stern <stern@rowland.harvard.edu>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 975dc33b
...@@ -28,17 +28,17 @@ static int ehci_sead3_setup(struct usb_hcd *hcd) ...@@ -28,17 +28,17 @@ static int ehci_sead3_setup(struct usb_hcd *hcd)
ehci->caps = hcd->regs + 0x100; ehci->caps = hcd->regs + 0x100;
#ifdef __BIG_ENDIAN
ehci->big_endian_mmio = 1;
ehci->big_endian_desc = 1;
#endif
ret = ehci_setup(hcd); ret = ehci_setup(hcd);
if (ret) if (ret)
return ret; return ret;
ehci->need_io_watchdog = 0; 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. */ /* Set burst length to 16 words. */
ehci_writel(ehci, 0x1010, &ehci->regs->reserved[1]); ehci_writel(ehci, 0x1010, &ehci->regs->reserved[1]);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment