diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2013-06-11 21:09:31 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2013-06-25 11:52:05 +0200 |
commit | cd79b13b1356149e4bfe743e1d4d54cd919f6861 (patch) | |
tree | a74c46d5e3d90fad74e323264bb68fa496607470 /drivers/usb/host/ehci-hcd.c | |
parent | a4daf503059d05b5275bd12cade6bcb54e9d4e03 (diff) | |
download | barebox-cd79b13b1356149e4bfe743e1d4d54cd919f6861.tar.gz barebox-cd79b13b1356149e4bfe743e1d4d54cd919f6861.tar.xz |
usb: ehci: Fixup efika hack for devicetree
We used to distinguish which USB port to fixup by pdev->id. This
is < 0 for devicetree probed devices all the time, so this won't
work anymore once we switch to devicetree. Do the fixup on every
port instead, it doesn't hurt.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/usb/host/ehci-hcd.c')
-rw-r--r-- | drivers/usb/host/ehci-hcd.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/usb/host/ehci-hcd.c b/drivers/usb/host/ehci-hcd.c index 7c389aac87..161785a8b2 100644 --- a/drivers/usb/host/ehci-hcd.c +++ b/drivers/usb/host/ehci-hcd.c @@ -443,9 +443,8 @@ void ehci_powerup_fixup(struct ehci_priv *ehci) { void *viewport = (void *)ehci->hcor + 0x30; - if (ehci->dev->id > 0) - ulpi_write(ULPI_OTG_CHRG_VBUS, ULPI_OTGCTL + ULPI_REG_SET, - viewport); + ulpi_write(ULPI_OTG_CHRG_VBUS, ULPI_OTGCTL + ULPI_REG_SET, + viewport); } #else static inline void ehci_powerup_fixup(struct ehci_priv *ehci) |