mirror of
git://git.openwrt.org/openwrt/openwrt.git
synced 2025-12-12 15:42:11 -05:00
Currently phy packages (like RTL8214x/RTL8218x) are patched and initialized as soon as the first phy of the package is found. In this situation the shared structure is not finalized because devm_phy_package_join() has only been called for the first phy. This is no issue as the patching directly hammers the bus addresses for the follow-up phys. In the future we want to simplify the package handling and allow to access all phy_device structures from only one phy_device of the package. With this we can use normal phy_read/phy_write. Switch the probing logic to "late patching". With this we will initialize the firmware of the package when the last phy of the package has been found and thus the shared structure is complete. Provide get_base_phy() as the first package helper that allows to determine the first phy of the package from any other phy. While we are here drop the shared structure that only repeats the phy name and has no other use. Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de> Link: https://github.com/openwrt/openwrt/pull/19810 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> |
||
|---|---|---|
| .. | ||
| dsa/rtl83xx | ||
| ethernet | ||
| phy | ||