From: Marek Vasut Date: Sat, 23 Jan 2016 20:04:46 +0000 (+0100) Subject: usb: ehci: Clear USBMODE_BE on LE MMIO X-Git-Tag: v2016.03-rc3~20^2~6 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=7ab0d35543004b6f9dca990625fa3fa21b7bc9d6;p=u-boot usb: ehci: Clear USBMODE_BE on LE MMIO If the USB EHCI is configured for little endian MMIO, make sure to clear the USBMODE_BE flag from the USBMODE register. Signed-off-by: Marek Vasut Cc: Daniel Schwierzeck Cc: Hans de Goede --- diff --git a/drivers/usb/host/ehci-hcd.c b/drivers/usb/host/ehci-hcd.c index b3eb08d506..8f259bee4f 100644 --- a/drivers/usb/host/ehci-hcd.c +++ b/drivers/usb/host/ehci-hcd.c @@ -134,6 +134,8 @@ static void ehci_set_usbmode(struct ehci_ctrl *ctrl) tmp |= USBMODE_CM_HC; #if defined(CONFIG_EHCI_MMIO_BIG_ENDIAN) tmp |= USBMODE_BE; +#else + tmp &= ~USBMODE_BE; #endif ehci_writel(reg_ptr, tmp); }