]> git.ipfire.org Git - people/ms/u-boot.git/commit
usb: Stop reset procedure when a dev is handed over to a companion hcd
authorHans de Goede <hdegoede@redhat.com>
Sun, 10 May 2015 12:10:16 +0000 (14:10 +0200)
committerSimon Glass <sjg@chromium.org>
Fri, 15 May 2015 00:49:31 +0000 (18:49 -0600)
commit45b9ea1da2f9e5110ced2fe2808aee224183aa54
tree80cd993c0f86e575fbfd22276861a9435211d8b8
parentad84a42fc5143ef66a75550d7465b86cbc787f25
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>
common/usb_hub.c
drivers/usb/host/ehci-hcd.c