Messages in this thread | | | Subject | Re: [PATCH net-next 1/4] net: dsa: allow switch drivers to override default slave PHY addresses | From | Florian Fainelli <> | Date | Mon, 30 Mar 2020 20:04:44 -0700 |
| |
On 3/30/2020 6:53 AM, Matthias Schiffer wrote: > Avoid having to define a PHY for every physical port when PHY addresses > are fixed, but port index != PHY address. > > Signed-off-by: Matthias Schiffer <matthias.schiffer@ew.tq-group.com>
You could do this much more elegantly by doing this with Device Tree and specifying the built-in PHYs to be hanging off the switch's internal MDIO bus and specifying the port to PHY address mapping, you would only patch #4 then. -- Florian
| |