diff options
author | Simon Glass <sjg@chromium.org> | 2015-03-25 12:22:04 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2015-04-18 11:11:20 -0600 |
commit | 862e75c0dbb578ec2e1f374794007048f3dd29c6 (patch) | |
tree | 0358873bc0ccfe7219a2aa526f5613d530a335f9 /common/usb_hub.c | |
parent | 53d8aa0f612325abb5754b8cbf33170e89f08b1e (diff) | |
download | u-boot-imx-862e75c0dbb578ec2e1f374794007048f3dd29c6.zip u-boot-imx-862e75c0dbb578ec2e1f374794007048f3dd29c6.tar.gz u-boot-imx-862e75c0dbb578ec2e1f374794007048f3dd29c6.tar.bz2 |
dm: usb: Refactor port resets
Move the port reset code into its own function. Rename usb_hub_reset() to
indicate that is is now a legacy function.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Marek Vasut <marex@denx.de>
Diffstat (limited to 'common/usb_hub.c')
-rw-r--r-- | common/usb_hub.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/usb_hub.c b/common/usb_hub.c index 020cdc6..2277e6f 100644 --- a/common/usb_hub.c +++ b/common/usb_hub.c @@ -149,7 +149,7 @@ static inline char *portspeed(int portstatus) return speed_str; } -int hub_port_reset(struct usb_device *dev, int port, +int legacy_hub_port_reset(struct usb_device *dev, int port, unsigned short *portstat) { int tries; @@ -249,7 +249,7 @@ int usb_hub_port_connect_change(struct usb_device *dev, int port) mdelay(200); /* Reset the port */ - ret = hub_port_reset(dev, port, &portstatus); + ret = legacy_hub_port_reset(dev, port, &portstatus); if (ret < 0) { printf("cannot reset port %i!?\n", port + 1); return ret; |