Commit f08d1c08 authored by Heiko Stuebner's avatar Heiko Stuebner Committed by Vinod Koul
Browse files

phy: phy-rockchip-samsung-hdptx: Don't use dt aliases to determine phy-id



The phy needs to know its identity in the system (phy0 or phy1 on rk3588)
for some actions and the driver currently contains code abusing of_alias
for that.

Devicetree aliases are always optional and should not be used for core
device functionality, so instead keep a list of phys on a soc in the
of_device_data and find the phy-id by comparing against the mapped
register-base.

Fixes: c4b09c56 ("phy: phy-rockchip-samsung-hdptx: Add clock provider support")
Signed-off-by: default avatarHeiko Stuebner <heiko.stuebner@cherry.de>
Reviewed-by: default avatarCristian Ciocaltea <cristian.ciocaltea@collabora.com>
Reviewed-by: default avatarSebastian Reichel <sebastian.reichel@collabora.com>
Link: https://lore.kernel.org/r/20241206103401.1780416-3-heiko@sntech.de


Signed-off-by: default avatarVinod Koul <vkoul@kernel.org>
parent c8f7d65c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment