From 7a36a5fe04f17b0e06c359fc032db5ee0a55a663 Mon Sep 17 00:00:00 2001 From: Richard Zhao Date: Wed, 11 Jul 2012 11:09:28 +0800 Subject: [PATCH] --- yaml --- r: 317064 b: refs/heads/master c: 925aa46ba963a4da6d8ee6ab1d04a02ffa8db62b h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/drivers/usb/core/hub.c | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 28ca7228c0e6..39dad72ec749 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 0d5ff306582834e3172365d619ec0cfe7a4f79ba +refs/heads/master: 925aa46ba963a4da6d8ee6ab1d04a02ffa8db62b diff --git a/trunk/drivers/usb/core/hub.c b/trunk/drivers/usb/core/hub.c index 3febe54883bd..540f20bf9e22 100644 --- a/trunk/drivers/usb/core/hub.c +++ b/trunk/drivers/usb/core/hub.c @@ -20,6 +20,7 @@ #include #include #include +#include #include #include #include @@ -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". */