Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 348684
b: refs/heads/master
c: 65bdac5
h: refs/heads/master
v: v3
  • Loading branch information
Sarah Sharp committed Jan 3, 2013
1 parent 6dc3f61 commit 5d247d6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 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: 4f43447e62b37ee19c82a13f72f35b1ca60a74d3
refs/heads/master: 65bdac5effd15d6af619b3b7218627ef4d84ed6a
12 changes: 11 additions & 1 deletion trunk/drivers/usb/core/hub.c
Original file line number Diff line number Diff line change
Expand Up @@ -2597,6 +2597,11 @@ static int hub_port_wait_reset(struct usb_hub *hub, int port1,
return 0;
}
} else {
if (!(portstatus & USB_PORT_STAT_CONNECTION) ||
hub_port_warm_reset_required(hub,
portstatus))
return -ENOTCONN;

return 0;
}

Expand Down Expand Up @@ -4694,9 +4699,14 @@ static void hub_events(void)
* SS.Inactive state.
*/
if (hub_port_warm_reset_required(hub, portstatus)) {
int status;

dev_dbg(hub_dev, "warm reset port %d\n", i);
hub_port_reset(hub, i, NULL,
status = hub_port_reset(hub, i, NULL,
HUB_BH_RESET_TIME, true);
if (status < 0)
hub_port_disable(hub, i, 1);
connect_change = 0;
}

if (connect_change)
Expand Down

0 comments on commit 5d247d6

Please sign in to comment.