diff options
author | Ansuel Smith <ansuelsmth@gmail.com> | 2022-04-16 02:30:14 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-04-17 15:28:28 +0300 |
commit | 8255212e4130bd2dc1463286a3dddb74797bbdc1 (patch) | |
tree | ff36033db046c360853f683fca0b0387a688114b /drivers/net/dsa/qca8k.h | |
parent | 2b8fd87af7f156942971789abac8ee2bb60c03bc (diff) | |
download | linux-8255212e4130bd2dc1463286a3dddb74797bbdc1.tar.xz |
net: dsa: qca8k: rework and simplify mdiobus logic
In an attempt to reduce qca8k_priv space, rework and simplify mdiobus
logic.
We now declare a mdiobus instead of relying on DSA phy_read/write even
if a mdio node is not present. This is all to make the qca8k ops static
and not switch specific. With a legacy implementation where port doesn't
have a phy map declared in the dts with a mdio node, we declare a
'qca8k-legacy' mdiobus. The conversion logic is used as legacy read and
write ops are used instead of the internal one.
Also drop the legacy_phy_port_mapping as we now declare mdiobus with ops
that already address the workaround.
Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/dsa/qca8k.h')
-rw-r--r-- | drivers/net/dsa/qca8k.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/dsa/qca8k.h b/drivers/net/dsa/qca8k.h index 12d8d090298b..8bbe36f135b5 100644 --- a/drivers/net/dsa/qca8k.h +++ b/drivers/net/dsa/qca8k.h @@ -388,7 +388,6 @@ struct qca8k_priv { * Bit 1: port enabled. Bit 0: port disabled. */ u8 port_enabled_map; - bool legacy_phy_port_mapping; struct qca8k_ports_config ports_config; struct regmap *regmap; struct mii_bus *bus; |