]> git.baikalelectronics.ru Git - uboot.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)
commitf5b64ba6d137e7962403c3805e6d8084579f79c1
tree47280929c00bdafb05974176f3154ecd7b7dd4c8
parentd04502068884a207c005a1ce51127c875b52f478
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