aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/core
diff options
context:
space:
mode:
authorPeter Chen <peter.chen@freescale.com>2012-11-08 20:44:44 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-11-15 20:44:51 -0500
commitac96511bb5cf92bad97ffc2249f75e45eb70301d (patch)
tree4558028534ad7aa6c508c9485c3435c1cdb8c60c /drivers/usb/core
parentb76baa8154335a906be85f2b32d6bd1876900133 (diff)
usb: phy: change phy notify connect/disconnect API
The old parameter "port" is useless for phy notify, as one usb phy is only for one usb port. New parameter "speed" stands for the device's speed which is on the port, this "speed" parameter is needed at some platforms which will do some phy operations according to device's speed. Signed-off-by: Peter Chen <peter.chen@freescale.com> Tested-by: Mike Thompson <mpthompson@gmail.com> Acked-by: Alan Stern <stern@rowland.harvard.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/core')
-rw-r--r--drivers/usb/core/hub.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/core/hub.c b/drivers/usb/core/hub.c
index 8391538d688b..a815fd2cc5e7 100644
--- a/drivers/usb/core/hub.c
+++ b/drivers/usb/core/hub.c
@@ -4039,7 +4039,7 @@ hub_port_init (struct usb_hub *hub, struct usb_device *udev, int port1,
4039 goto fail; 4039 goto fail;
4040 4040
4041 if (hcd->phy && !hdev->parent) 4041 if (hcd->phy && !hdev->parent)
4042 usb_phy_notify_connect(hcd->phy, port1); 4042 usb_phy_notify_connect(hcd->phy, udev->speed);
4043 4043
4044 /* 4044 /*
4045 * Some superspeed devices have finished the link training process 4045 * Some superspeed devices have finished the link training process
@@ -4238,7 +4238,7 @@ static void hub_port_connect_change(struct usb_hub *hub, int port1,
4238 if (udev) { 4238 if (udev) {
4239 if (hcd->phy && !hdev->parent && 4239 if (hcd->phy && !hdev->parent &&
4240 !(portstatus & USB_PORT_STAT_CONNECTION)) 4240 !(portstatus & USB_PORT_STAT_CONNECTION))
4241 usb_phy_notify_disconnect(hcd->phy, port1); 4241 usb_phy_notify_disconnect(hcd->phy, udev->speed);
4242 usb_disconnect(&hub->ports[port1 - 1]->child); 4242 usb_disconnect(&hub->ports[port1 - 1]->child);
4243 } 4243 }
4244 clear_bit(port1, hub->change_bits); 4244 clear_bit(port1, hub->change_bits);