phy: ti: gmii-sel: Allow parent to not be syscon node
authorAndrew Davis <afd@ti.com>
Thu, 13 Jul 2023 20:09:57 +0000 (15:09 -0500)
committerVinod Koul <vkoul@kernel.org>
Fri, 14 Jul 2023 12:54:31 +0000 (18:24 +0530)
commit1fdfa7cccd35519d97a1f301b8143ea4196b2d16
treebaa0486c3ce1fafd0762efc91b13518209ec2dfc
parent76009ee76e05e30e29aade02e788aebe9ce9ffd2
phy: ti: gmii-sel: Allow parent to not be syscon node

If the parent node is not a syscon type, then fallback and check
if we can get a regmap from our own node. This no longer forces
us to make the parent of this node a syscon node when that might
not be appropriate.

Signed-off-by: Andrew Davis <afd@ti.com>
Reviewed-by: Roger Quadros <rogerq@ti.com>
Reviewed-by: Siddharth Vadapalli <s-vadapalli@ti.com>
Link: https://lore.kernel.org/r/20230713200957.134480-1-afd@ti.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/ti/phy-gmii-sel.c