summaryrefslogtreecommitdiff
path: root/mm/util.c
diff options
context:
space:
mode:
authorTony Lindgren <tony@atomide.com>2018-08-29 18:00:24 +0300
committerDavid S. Miller <davem@davemloft.net>2018-09-02 23:52:13 +0300
commit18eb8aea7fb2fb4490e578b1b8a1096c34b2fc48 (patch)
tree03abd4532d0309263471330a9939f5c5f4bc59f5 /mm/util.c
parent10d7fac4c52618d94a42d701d28f114147291ecc (diff)
downloadlinux-18eb8aea7fb2fb4490e578b1b8a1096c34b2fc48.tar.xz
net: ethernet: cpsw-phy-sel: prefer phandle for phy sel
The cpsw-phy-sel device is not a child of the cpsw interconnect target module. It lives in the system control module. Let's fix this issue by trying to use cpsw-phy-sel phandle first if it exists and if not fall back to current usage of trying to find the cpsw-phy-sel child. That way the phy sel driver can be a child of the system control module where it belongs in the device tree. Without this fix, we cannot have a proper interconnect target module hierarchy in device tree for things like genpd. Note that deferred probe is mostly not supported by cpsw and this patch does not attempt to fix that. In case deferred probe support is needed, this could be added to cpsw_slave_open() and phy_connect() so they start handling and returning errors. For documenting it, looks like the cpsw-phy-sel is used for all cpsw device tree nodes. It's missing the related binding documentation, so let's also update the binding documentation accordingly. Cc: devicetree@vger.kernel.org Cc: Andrew Lunn <andrew@lunn.ch> Cc: Grygorii Strashko <grygorii.strashko@ti.com> Cc: Ivan Khoronzhuk <ivan.khoronzhuk@linaro.org> Cc: Mark Rutland <mark.rutland@arm.com> Cc: Murali Karicheri <m-karicheri2@ti.com> Cc: Rob Herring <robh+dt@kernel.org> Signed-off-by: Tony Lindgren <tony@atomide.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'mm/util.c')
0 files changed, 0 insertions, 0 deletions