Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 317064
b: refs/heads/master
c: 925aa46
h: refs/heads/master
v: v3
  • Loading branch information
Richard Zhao authored and Greg Kroah-Hartman committed Jul 17, 2012
1 parent fbaee8e commit 7a36a5f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0d5ff306582834e3172365d619ec0cfe7a4f79ba
refs/heads/master: 925aa46ba963a4da6d8ee6ab1d04a02ffa8db62b
8 changes: 8 additions & 0 deletions trunk/drivers/usb/core/hub.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#include <linux/usb.h>
#include <linux/usbdevice_fs.h>
#include <linux/usb/hcd.h>
#include <linux/usb/otg.h>
#include <linux/usb/quirks.h>
#include <linux/kthread.h>
#include <linux/mutex.h>
Expand Down Expand Up @@ -4101,6 +4102,13 @@ static void hub_port_connect_change(struct usb_hub *hub, int port1,
}
}

if (hcd->phy && !hdev->parent) {
if (portstatus & USB_PORT_STAT_CONNECTION)
usb_phy_notify_connect(hcd->phy, port1);
else
usb_phy_notify_disconnect(hcd->phy, port1);
}

/* Return now if debouncing failed or nothing is connected or
* the device was "removed".
*/
Expand Down

0 comments on commit 7a36a5f

Please sign in to comment.