mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 08:42:12 +02:00
usb: Stop reset procedure when a dev is handed over to a companion hcd
Short circuit the retry loop in legacy_hub_port_reset() by returning an error from usb_control_msg() when a device was handed over to a companion by the ehci code. This avoids trying to reset low / fullspeed devices 5 times needlessly. Also do not print an error when a device has been handed over. Signed-off-by: Hans de Goede <hdegoede@redhat.com>
This commit is contained in:
committed by
Simon Glass
parent
ad84a42fc5
commit
45b9ea1da2
@@ -271,7 +271,8 @@ int usb_hub_port_connect_change(struct usb_device *dev, int port)
|
||||
/* Reset the port */
|
||||
ret = legacy_hub_port_reset(dev, port, &portstatus);
|
||||
if (ret < 0) {
|
||||
printf("cannot reset port %i!?\n", port + 1);
|
||||
if (ret != -ENXIO)
|
||||
printf("cannot reset port %i!?\n", port + 1);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user