Skip to contentSkip to conversation

ehci-hcd.c: handle EHCI_HAS_TT in ehci_reset() during startup

PATCH Applied Antony Pavlov 2 participants 2 messages Sep 16, 2011 – Sep 19, 2011

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ehci-hcd.c: handle EHCI_HAS_TT in ehci_reset() during startup

---
 drivers/usb/host/ehci-hcd.c |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)
drivers/usb/host/ehci-hcd.c +1 -4
index 60fc181..bc180af 100644
@@ -922,10 +922,7 @@ static int ehci_probe(struct device_d *dev)
 	host->submit_bulk_msg = submit_bulk_msg;
 
 	if (ehci->flags & EHCI_HAS_TT) {
-		/* Set to host mode */
-		reg = ehci_readl(ehci->hcor + USBMODE);
-		reg |= USBMODE_CM_HC;
-		writel(reg, ehci->hcor + USBMODE);
+		ehci_reset(ehci);
 	}
 
 	usb_register_host(host);
Signature · 7 lines
1.7.5.4


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Applied
#1 lore raw
Quoted 1 line · Antony Pavlov

Applied to next.

Sascha

Quoted 29 lines
---
 drivers/usb/host/ehci-hcd.c |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)
drivers/usb/host/ehci-hcd.c +1 -4
index 60fc181..bc180af 100644
@@ -922,10 +922,7 @@ static int ehci_probe(struct device_d *dev)
 	host->submit_bulk_msg = submit_bulk_msg;
 
 	if (ehci->flags & EHCI_HAS_TT) {
-		/* Set to host mode */
-		reg = ehci_readl(ehci->hcor + USBMODE);
-		reg |= USBMODE_CM_HC;
-		writel(reg, ehci->hcor + USBMODE);
+		ehci_reset(ehci);
 	}
 
 	usb_register_host(host);
Signature · 7 lines
1.7.5.4


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Signature · 9 lines
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox