usb: chipidea: host: turn on vbus before add hcd if early vbus on is required
authorLi Jun <b47624@freescale.com>
Wed, 11 Feb 2015 04:45:02 +0000 (12:45 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Mar 2015 15:19:12 +0000 (16:19 +0100)
commit6594591741883e004aaba105951337878698b054
tree7ef13ec6ae9fe91f8436dc4dae66d4881f74433c
parent6adb9b7b5fb64be3c3e4d57578ea1446da91a8f9
usb: chipidea: host: turn on vbus before add hcd if early vbus on is required

If CI_HDRC_TURN_VBUS_EARLY_ON is set, turn on vbus before adding hcd, so it
will not set reg_vbus of ehci_ci_priv, then vbus will not be handled by ehci core.

Signed-off-by: Li Jun <jun.li@freescale.com>
Signed-off-by: Peter Chen <peter.chen@freescale.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/chipidea/host.c