]> git.baikalelectronics.ru Git - kernel.git/commit
USB: phy: nop: Defer probe if device needs VCC/RESET
authorRoger Quadros <rogerq@ti.com>
Tue, 12 Mar 2013 11:24:26 +0000 (13:24 +0200)
committerFelipe Balbi <balbi@ti.com>
Mon, 18 Mar 2013 09:15:18 +0000 (11:15 +0200)
commit2a89248ed56e28469e0a74898962a43b906b2cf8
treec498f3088cf73b86eba44c3bed3e1f5776ed0363
parent029ab81237edc0456949526c17f616b0ec2a06a7
USB: phy: nop: Defer probe if device needs VCC/RESET

Add 2 flags, needs_vcc and needs_reset to platform data.
If the flag is set and the regulator couldn't be found
then we bail out with -EPROBE_DEFER.

For device tree boot we depend on presensce of vcc-supply/
reset-supply properties to decide if we should bail out
with -EPROBE_DEFER or just continue in case the regulator
can't be found.

This is required for proper functionality in cases where the
regulator is needed but is probed later than the PHY device.

Signed-off-by: Roger Quadros <rogerq@ti.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/otg/nop-usb-xceiv.c