]> git.dujemihanovic.xyz Git - u-boot.git/commit
net: phy: xilinx-gmii2rgmii: Removed hardcoded phy address 0 for bridge
authorTejas Bhumkar <tejas.arvind.bhumkar@amd.com>
Fri, 15 Sep 2023 04:50:43 +0000 (10:20 +0530)
committerMichal Simek <michal.simek@amd.com>
Thu, 21 Sep 2023 11:20:11 +0000 (13:20 +0200)
commite31d707d8b591973560cb656d152a154993b1d74
treece00d9c8a42ae71afea4c3e7658355cf8ed993f2
parent1ae4a07c2bac18663b2cff003b360256bbb758dc
net: phy: xilinx-gmii2rgmii: Removed hardcoded phy address 0 for bridge

Current code expects bridge phy address at 0 which is not correct
expectation because bridge phy address is configurable.
That's why update the code to read reg property to figure it out
where bridge is and use it in phy creation code.

Signed-off-by: Tejas Bhumkar <tejas.arvind.bhumkar@amd.com>
Signed-off-by: Michal Simek <michal.simek@amd.com>
Link: https://lore.kernel.org/r/20230915045043.4167628-1-tejas.arvind.bhumkar@amd.com
drivers/net/phy/phy.c