linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ARM: plat-mxc: ehci: Fix inverted logic of OC bit
@ 2011-02-24 15:55 David Jander
  0 siblings, 0 replies; only message in thread
From: David Jander @ 2011-02-24 15:55 UTC (permalink / raw)
  To: linux-arm-kernel

If MXC_EHCI_POWER_PINS_ENABLED is set, MXC_OTG_PHYCTRL_OC_DIS_BIT
must be cleared, not set.

Signed-off-by: David Jander <david@protonic.nl>
---
 arch/arm/plat-mxc/ehci.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/arch/arm/plat-mxc/ehci.c b/arch/arm/plat-mxc/ehci.c
index 8772ce3..5f01d9c 100644
--- a/arch/arm/plat-mxc/ehci.c
+++ b/arch/arm/plat-mxc/ehci.c
@@ -288,11 +288,11 @@ int mxc_initialize_usb_hw(int port, unsigned int flags)
 				v = __raw_readl(usbother_base + MXC_USB_PHY_CTR_FUNC_OFFSET);
 
 				if (flags & MXC_EHCI_POWER_PINS_ENABLED) {
-					/* OC/USBPWR is not used */
-					v |= MXC_OTG_PHYCTRL_OC_DIS_BIT;
-				} else {
 					/* OC/USBPWR is used */
 					v &= ~MXC_OTG_PHYCTRL_OC_DIS_BIT;
+				} else {
+					/* OC/USBPWR is not used */
+					v |= MXC_OTG_PHYCTRL_OC_DIS_BIT;
 				}
 				__raw_writel(v, usbother_base + MXC_USB_PHY_CTR_FUNC_OFFSET);
 
-- 
1.7.0.4

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2011-02-24 15:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-24 15:55 [PATCH] ARM: plat-mxc: ehci: Fix inverted logic of OC bit David Jander

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).