diff options
author | Primoz Fiser <primoz.fiser@norik.com> | 2019-10-01 10:17:59 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2019-10-02 08:58:10 +0200 |
commit | 548625a35077a9b7b5d6c468e26e2cdeb644e80d (patch) | |
tree | 68aac2241087e9689b038b05f13bd9e5e3e57870 /include/usb | |
parent | 3cb8f32cf5b27edf41b21f1733c8443d06826c50 (diff) | |
download | barebox-548625a35077a9b7b5d6c468e26e2cdeb644e80d.tar.gz barebox-548625a35077a9b7b5d6c468e26e2cdeb644e80d.tar.xz |
usb: usb_hub_port_connect_change(): Remove unnecessary delays
Remove two mdelay(200) calls from usb_hub_port_connect_change() before
and after calling hub_port_reset().
These delays don't seem to be necessary since hub_port_reset() already
incorporates delays on its own.
Without patch:
$ time usb
usb: USB: scanning bus for devices...
usb: 17 USB Device(s) found
time: 16355ms
With patch:
$ time usb
usb: USB: scanning bus for devices...
usb: 17 USB Device(s) found
time: 10344ms
Delta: ~6 seconds
Signed-off-by: Primoz Fiser <primoz.fiser@norik.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/usb')
0 files changed, 0 insertions, 0 deletions