Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 98658
b: refs/heads/master
c: 1236edf
h: refs/heads/master
v: v3
  • Loading branch information
Alan Stern authored and Greg Kroah-Hartman committed Jul 4, 2008
1 parent 0fc81f0 commit e8f8615
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 12 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: de85422b94ddb23c021126815ea49414047c13dc
refs/heads/master: 1236edf1c70107a0d31b3fba0b2a8783615d0d24
15 changes: 4 additions & 11 deletions trunk/drivers/usb/core/hub.c
Original file line number Diff line number Diff line change
Expand Up @@ -713,18 +713,11 @@ static void hub_restart(struct usb_hub *hub, int type)
}

/* Was the power session lost while we were suspended? */
switch (type) {
case HUB_RESET_RESUME:
portstatus = 0;
portchange = USB_PORT_STAT_C_CONNECTION;
break;
status = hub_port_status(hub, port1, &portstatus, &portchange);

case HUB_RESET:
case HUB_RESUME:
status = hub_port_status(hub, port1,
&portstatus, &portchange);
break;
}
/* If the device is gone, khubd will handle it later */
if (status == 0 && !(portstatus & USB_PORT_STAT_CONNECTION))
continue;

/* For "USB_PERSIST"-enabled children we must
* mark the child device for reset-resume and
Expand Down

0 comments on commit e8f8615

Please sign in to comment.