[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <6a306ad4-c029-03a3-7a1c-0fdadc13d386@gmail.com>
Date: Mon, 30 Mar 2020 20:04:44 -0700
From: Florian Fainelli <f.fainelli@...il.com>
To: Matthias Schiffer <matthias.schiffer@...tq-group.com>,
andrew@...n.ch, vivien.didelot@...il.com, davem@...emloft.net,
kuba@...nel.org
Cc: netdev@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH net-next 1/4] net: dsa: allow switch drivers to override
default slave PHY addresses
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@...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
Powered by blists - more mailing lists