Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 235325
b: refs/heads/master
c: bcf4081
h: refs/heads/master
i:
  235323: 1dbe146
v: v3
  • Loading branch information
Matthieu CASTET authored and Greg Kroah-Hartman committed Feb 17, 2011
1 parent d350398 commit f4806a5
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e2904ee43c7009e6c4fc18738f15051312f22483
refs/heads/master: bcf40815e0cda371cecc242398fe39b873bb1047
7 changes: 6 additions & 1 deletion trunk/drivers/usb/host/ehci-hcd.c
Original file line number Diff line number Diff line change
Expand Up @@ -679,7 +679,12 @@ static int ehci_run (struct usb_hcd *hcd)
hcd->uses_new_polling = 1;

/* EHCI spec section 4.1 */
if ((retval = ehci_reset(ehci)) != 0) {
/*
* TDI driver does the ehci_reset in their reset callback.
* Don't reset here, because configuration settings will
* vanish.
*/
if (!ehci_is_TDI(ehci) && (retval = ehci_reset(ehci)) != 0) {
ehci_mem_cleanup(ehci);
return retval;
}
Expand Down
5 changes: 3 additions & 2 deletions trunk/drivers/usb/host/ehci-orion.c
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,8 @@ static int ehci_orion_setup(struct usb_hcd *hcd)
struct ehci_hcd *ehci = hcd_to_ehci(hcd);
int retval;

ehci_reset(ehci);
hcd->has_tt = 1;

retval = ehci_halt(ehci);
if (retval)
return retval;
Expand All @@ -117,7 +118,7 @@ static int ehci_orion_setup(struct usb_hcd *hcd)
if (retval)
return retval;

hcd->has_tt = 1;
ehci_reset(ehci);

ehci_port_power(ehci, 0);

Expand Down

0 comments on commit f4806a5

Please sign in to comment.