]> git.ipfire.org Git - people/ms/u-boot.git/commit
usb: hub: Clear port reset before usb_hub_port_connect_change()
authorBin Meng <bmeng.cn@gmail.com>
Mon, 18 Sep 2017 13:40:45 +0000 (06:40 -0700)
committerMarek Vasut <marex@denx.de>
Sun, 1 Oct 2017 14:32:54 +0000 (16:32 +0200)
commitb90203526f2c5bcc05b4a65241ea226b7b9f52d0
tree47280929c00bdafb05974176f3154ecd7b7dd4c8
parentb5aa857b95194c15126245e99a384ec2fd9536e8
usb: hub: Clear port reset before usb_hub_port_connect_change()

During usb_hub_port_connect_change(), a port reset set feature
request is issued to the port, and later a port reset clear feature
is done to the same port before the function returns. However at
the end of usb_scan_port(), we attempt to clear port reset again
on a cached port status change variable, which should not be done.

Adjust the call to clear port reset to right before the call to
usb_hub_port_connect_change().

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
common/usb_hub.c