phy: phy-core: allow specifying supply at port level
authorDmitry Torokhov <dtor@chromium.org>
Wed, 22 Apr 2015 23:14:37 +0000 (16:14 -0700)
committerKishon Vijay Abraham I <kishon@ti.com>
Mon, 11 May 2015 16:12:25 +0000 (21:42 +0530)
commit87006dd600e36e05a2bd978c112a0aa883713c00
tree4956eada9cf1015d395142627dfa1444c9e2901a
parenta666f7d097486bb74f9b02d6d049c1e5a765fa61
phy: phy-core: allow specifying supply at port level

Multi-port phys may have per port power supplies. Let's change phy
core to look for supply at the port level when multiple ports are
specified. To keep compatibility with the existing device tree board
descriptions for single-port phys we will continue looking up the
power supply at the parent node level

Signed-off-by: Dmitry Torokhov <dtor@chromium.org>
Signed-off-by: Arun Ramamurthy <arun.ramamurthy@broadcom.com>
Reviewed-by: Ray Jui <rjui@broadcom.com>
Reviewed-by: Scott Branden <sbranden@broadcom.com>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
drivers/phy/phy-core.c