usb: chipidea: udc: .pullup is valid only when vbus is there
authorPeter Chen <peter.chen@freescale.com>
Wed, 14 Aug 2013 09:44:15 +0000 (12:44 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Aug 2013 19:37:20 +0000 (12:37 -0700)
commit4a64783b66bbeed06a1f10ab56a1dd401dd5bfba
tree828fd98e8de7898115f586a2b36b14e01151d6e0
parentd268e9bc23f5df4a2f4167da246d277c2a468d3d
usb: chipidea: udc: .pullup is valid only when vbus is there

For chipidea, the IP must know vbus before the controller
begins to run. So the .pullup should only be called when
the vbus is there.

Tested-by: Marek Vasut <marex@denx.de>
Signed-off-by: Peter Chen <peter.chen@freescale.com>
Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/chipidea/udc.c