]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: realtek: add support for the 2.5Gbps PHY in RTL8125
authorHeiner Kallweit <hkallweit1@gmail.com>
Fri, 9 Aug 2019 18:45:14 +0000 (20:45 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 12 Aug 2019 04:24:32 +0000 (21:24 -0700)
commit217cc03dda11363f2367cb809d67ae1037d8545b
treee045fbcdf75e4584c35f5d4341b276986c556f23
parentd8ff3c4cc22d3ef1c248207ad492c2403d37bbd2
net: phy: realtek: add support for the 2.5Gbps PHY in RTL8125

This adds support for the integrated 2.5Gbps PHY in Realtek RTL8125.
Advertisement of 2.5Gbps mode is done via a vendor-specific register.
Same applies to reading NBase-T link partner advertisement.
Unfortunately this 2.5Gbps PHY shares the PHY ID with the integrated
1Gbps PHY's in other Realtek network chips and so far no method is
known to differentiate them. As a workaround use a dedicated fake PHY ID
that is set by the network driver by intercepting the MDIO PHY ID read.

v2:
- Create dedicated PHY driver and use a fake PHY ID that is injected by
  the network driver. Suggested by Andrew Lunn.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/realtek.c