usb_hub: fix power cycling logic
authorNikita Kiryanov <nikita@compulab.co.il>
Mon, 29 Jul 2013 10:27:39 +0000 (13:27 +0300)
committerMarek Vasut <marex@denx.de>
Mon, 29 Jul 2013 21:01:33 +0000 (23:01 +0200)
commit0adc331b37b71093a047607faf1ed1b60e572017
treefe538ea26cad2ce0bf3be5e1e4d959b51b9095a3
parentbb1f327d0a6ec9236c172fdc0912ace7c8e2ea83
usb_hub: fix power cycling logic

When power cycling the hub ports, a misbehaving port will prevent all ports
from being powered on because we quit at the first sign of trouble.

Skip problematic ports instead of failing the entire power on.

Cc: Marek Vasut <marex@denx.de>
Cc: Igor Grinberg <grinberg@compulab.co.il>
Signed-off-by: Nikita Kiryanov <nikita@compulab.co.il>
common/usb_hub.c