netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC net-next 0/2] Introduce MDIO probe order C45 over C22
@ 2021-05-25  5:58 Wong Vee Khee
  2021-05-25 13:34 ` Andrew Lunn
  0 siblings, 1 reply; 14+ messages in thread
From: Wong Vee Khee @ 2021-05-25  5:58 UTC (permalink / raw)
  To: Andrew Lunn, Heiner Kallweit, Russell King; +Cc: netdev, linux-kernel

Synopsys MAC controller is capable of pairing with external PHY devices
that accessible via Clause-22 and Clause-45.

There is a problem when it is paired with Marvell 88E2110 which returns
PHY ID of 0 using get_phy_c22_id(). We can add this check in that
function, but this will break swphy, as swphy_reg_reg() return 0. [1]

Hence, we introduce MDIOBUS_CAP_C45_C22 which allow us to probe using
Clause-45, if it fails, we then proceed to try with Clause-22.

[1]: https://lkml.org/lkml/2021/3/18/584


Wong Vee Khee (2):
  net: phy: allow mdio bus to probe for c45 devices before c22
  net: stmmac: allow gmac4 to probe for c45 devices before c22

 drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c | 2 +-
 include/linux/phy.h                               | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

-- 
2.25.1


^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2021-06-06  0:55 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-25  5:58 [RFC net-next 0/2] Introduce MDIO probe order C45 over C22 Wong Vee Khee
2021-05-25 13:34 ` Andrew Lunn
2021-06-01 10:47   ` Wong Vee Khee
2021-06-01 13:04     ` Andrew Lunn
2021-06-01 15:44       ` Wong Vee Khee
2021-06-01 22:21         ` Andrew Lunn
2021-06-01 23:03           ` Wong Vee Khee
2021-06-02  2:19             ` Andrew Lunn
2021-06-02 14:15               ` Wong Vee Khee
2021-06-02 15:03                 ` Andrew Lunn
2021-06-02 23:51                   ` Wong Vee Khee
2021-06-05  0:37                     ` Wong Vee Khee
2021-06-05 18:36                       ` Andrew Lunn
2021-06-06  0:54                         ` Wong Vee Khee

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).