[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Ya/iRAAN8OXC57Ph@lunn.ch>
Date: Tue, 7 Dec 2021 23:37:56 +0100
From: Andrew Lunn <andrew@...n.ch>
To: Vladimir Oltean <olteanv@...il.com>
Cc: Florian Fainelli <f.fainelli@...il.com>,
Ansuel Smith <ansuelsmth@...il.com>,
Vivien Didelot <vivien.didelot@...il.com>,
"David S. Miller" <davem@...emloft.net>,
Jakub Kicinski <kuba@...nel.org>, linux-kernel@...r.kernel.org,
netdev@...r.kernel.org
Subject: Re: [net-next RFC PATCH 0/6] Add support for qca8k mdio rw in
Ethernet packet
> This raises interesting questions. I see two distinct cases:
>
> 1. "dual I/O": the switch probes initially over a standard bus (MDIO,
> SPI, I2C) then at some point transitions towards I/O through the
> tagger. This would be the case when there is some preparation work
> to be done (maybe the CPU port needs to be brought up, maybe there is
> a firmware to be uploaded to the switch's embedded microcontroller
> such that the expected remote management protocol is supported, etc).
> It would also be the case when multiple CPU ports are supported (and
> changing between CPU ports), because we could end up bringing a
> certain CPU port down, and the register I/O would need to be
> temporarily done over MDIO before bringing the other CPU port up.
mv88e6xxx is very likely to take this path. You need to program some
registers to enable RMU. It is possible to enable this via EEPROM
configuration, but i've never seen any hardware with the necessary
EEPROM configuration. And you have the old chicken/egg, in order to be
able to program the EEPROM, you need access to the switch, or a header
and a cable.
> 2. "single I/O": the switch needs no such configuration, and in this
> case, it could in principle probe over an "Ethernet bus" rather than
> a standard bus as mentioned above.
>
> I don't know which case is going to be more common, honestly.
Given the history, i think MDIO startup, and then transition to
Ethernet is going to be a lot more common. If there was a lot of
hardware out there which could do Ethernet from the beginning, we
would of had patches or at least requests for it by now.
I would keep it KISS.
Andrew
Powered by blists - more mailing lists