[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20230116-net-next-remove-probe-capabilities-v2-0-15513b05e1f4@walle.cc>
Date: Wed, 18 Jan 2023 11:01:35 +0100
From: Michael Walle <michael@...le.cc>
To: Heiner Kallweit <hkallweit1@...il.com>,
Russell King <linux@...linux.org.uk>,
"David S. Miller" <davem@...emloft.net>,
Eric Dumazet <edumazet@...gle.com>,
Jakub Kicinski <kuba@...nel.org>,
Paolo Abeni <pabeni@...hat.com>, Felix Fietkau <nbd@....name>,
John Crispin <john@...ozen.org>,
Sean Wang <sean.wang@...iatek.com>,
Mark Lee <Mark-MC.Lee@...iatek.com>,
Lorenzo Bianconi <lorenzo@...nel.org>,
Matthias Brugger <matthias.bgg@...il.com>,
Bryan Whitehead <bryan.whitehead@...rochip.com>,
UNGLinuxDriver@...rochip.com,
Giuseppe Cavallaro <peppe.cavallaro@...com>,
Alexandre Torgue <alexandre.torgue@...s.st.com>,
Jose Abreu <joabreu@...opsys.com>,
Maxime Coquelin <mcoquelin.stm32@...il.com>,
Joel Stanley <joel@....id.au>, Andrew Jeffery <andrew@...id.au>
Cc: netdev@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org,
linux-mediatek@...ts.infradead.org,
linux-stm32@...md-mailman.stormreply.com,
linux-aspeed@...ts.ozlabs.org, Andrew Lunn <andrew@...n.ch>,
Michael Walle <michael@...le.cc>,
Jesse Brandeburg <jesse.brandeburg@...el.com>
Subject: [PATCH net-next v2 0/6] net: phy: Remove probe_capabilities
With all the drivers which used .probe_capabilities converted to the
new c45 MDIO access methods, we can now decide based upon these whether
a bus driver supports c45 and we can get rid of the not widely used
probe_capabilites.
Unfortunately, due to a now broader support of c45 scans, this will
trigger a bug on some boards with a (c22-only) Micrel PHY. These PHYs
don't ignore c45 accesses correctly, thinking they are addressed
themselves and distrupt the MDIO access. To avoid this, a blacklist
for c45 scans is introduced.
To: Heiner Kallweit <hkallweit1@...il.com>
To: Russell King <linux@...linux.org.uk>
To: "David S. Miller" <davem@...emloft.net>
To: Eric Dumazet <edumazet@...gle.com>
To: Jakub Kicinski <kuba@...nel.org>
To: Paolo Abeni <pabeni@...hat.com>
To: Felix Fietkau <nbd@....name>
To: John Crispin <john@...ozen.org>
To: Sean Wang <sean.wang@...iatek.com>
To: Mark Lee <Mark-MC.Lee@...iatek.com>
To: Lorenzo Bianconi <lorenzo@...nel.org>
To: Matthias Brugger <matthias.bgg@...il.com>
To: Bryan Whitehead <bryan.whitehead@...rochip.com>
To: UNGLinuxDriver@...rochip.com
To: Giuseppe Cavallaro <peppe.cavallaro@...com>
To: Alexandre Torgue <alexandre.torgue@...s.st.com>
To: Jose Abreu <joabreu@...opsys.com>
To: Maxime Coquelin <mcoquelin.stm32@...il.com>
To: Joel Stanley <joel@....id.au>
To: Andrew Jeffery <andrew@...id.au>
Cc: netdev@...r.kernel.org
Cc: linux-kernel@...r.kernel.org
Cc: linux-arm-kernel@...ts.infradead.org
Cc: linux-mediatek@...ts.infradead.org
Cc: linux-stm32@...md-mailman.stormreply.com
Cc: linux-aspeed@...ts.ozlabs.org
Cc: Andrew Lunn <andrew@...n.ch>
Signed-off-by: Michael Walle <michael@...le.cc>
---
- Link to v1: https://lore.kernel.org/r/20230116-net-next-remove-probe-capabilities-v1-0-5aa29738a023@walle.cc
---
Andrew Lunn (6):
net: mdio: Move mdiobus_scan() within file
net: mdio: Rework scanning of bus ready for quirks
net: mdio: Add workaround for Micrel PHYs which are not C45 compatible
net: mdio: scan bus based on bus capabilities for C22 and C45
net: phy: Decide on C45 capabilities based on presence of method
net: phy: Remove probe_capabilities
drivers/net/ethernet/adi/adin1110.c | 1 -
drivers/net/ethernet/freescale/xgmac_mdio.c | 1 -
drivers/net/ethernet/marvell/pxa168_eth.c | 2 +-
drivers/net/ethernet/mediatek/mtk_eth_soc.c | 1 -
drivers/net/ethernet/microchip/lan743x_main.c | 2 -
drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c | 3 -
drivers/net/mdio/mdio-aspeed.c | 1 -
drivers/net/phy/mdio_bus.c | 197 +++++++++++++++-------
drivers/net/phy/phy_device.c | 2 +-
include/linux/micrel_phy.h | 2 +
include/linux/phy.h | 10 +-
11 files changed, 140 insertions(+), 82 deletions(-)
---
base-commit: c12e2e5b76b2e739ccdf196bee960412b45d5f85
change-id: 20230116-net-next-remove-probe-capabilities-03d401439fc6
Best regards,
--
Michael Walle <michael@...le.cc>
Powered by blists - more mailing lists