aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mfd/omap-usb-host.c
diff options
context:
space:
mode:
authorMichael Welling <mwelling@emacinc.com>2014-07-28 19:01:04 -0400
committerLee Jones <lee.jones@linaro.org>2014-07-29 11:08:49 -0400
commit46de8ff8e80a6546aa3d2fdf58c6776666301a0c (patch)
treedcc6d751c6507b62190436c2415766d098d6f493 /drivers/mfd/omap-usb-host.c
parent30a2af3a320d5c0598cde08ba6e5d22a724f82e4 (diff)
mfd: omap-usb-host: Fix improper mask use.
single-ulpi-bypass is a flag used for older OMAP3 silicon. The flag when set, can excite code that improperly uses the OMAP_UHH_HOSTCONFIG_UPLI_BYPASS define to clear the corresponding bit. Instead it clears all of the other bits disabling all of the ports in the process. Cc: stable@vger.kernel.org Signed-off-by: Michael Welling <mwelling@emacinc.com> Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/mfd/omap-usb-host.c')
-rw-r--r--drivers/mfd/omap-usb-host.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mfd/omap-usb-host.c b/drivers/mfd/omap-usb-host.c
index b48d80c367f9..33a9234b701c 100644
--- a/drivers/mfd/omap-usb-host.c
+++ b/drivers/mfd/omap-usb-host.c
@@ -445,7 +445,7 @@ static unsigned omap_usbhs_rev1_hostconfig(struct usbhs_hcd_omap *omap,
445 445
446 for (i = 0; i < omap->nports; i++) { 446 for (i = 0; i < omap->nports; i++) {
447 if (is_ehci_phy_mode(pdata->port_mode[i])) { 447 if (is_ehci_phy_mode(pdata->port_mode[i])) {
448 reg &= OMAP_UHH_HOSTCONFIG_ULPI_BYPASS; 448 reg &= ~OMAP_UHH_HOSTCONFIG_ULPI_BYPASS;
449 break; 449 break;
450 } 450 }
451 } 451 }