kernel: net: phy: realtek: improve RealTek 2.5G PHY driver
authorDaniel Golle <daniel@makrotopia.org>
Sat, 22 Apr 2023 00:52:04 +0000 (01:52 +0100)
committerDaniel Golle <daniel@makrotopia.org>
Sat, 22 Apr 2023 03:08:41 +0000 (04:08 +0100)
commit998b9731577dedc7747dcfa412e4543dabaaa131
treecdfb9272d251a4b8095e39b63a0de18592d21f77
parentb64c471b8ee3dd7ddfa3b11bf3f1414258c41c94
kernel: net: phy: realtek: improve RealTek 2.5G PHY driver

 * use interface mode switching only when operating in C45 mode
   Linux prevents switching the interface mode when using C22 MDIO,
   hence use rate-adapter mode in case the PHY controlled via C22.

 * use phy_read_paged where appropriate

 * use existing generic inline functions to handle 10GbE advertisements
   instead of redundantly defining register macros in realtek.c which
   are not actually vendor-specific.

 * make sure 10GbE advertisement is valid, preventing false-positive
   warning "Downshift occurred from negotiated speed 2.5Gbps to actual
   speed 1Gbps, check cabling!" with some link-partners using 1G mode.

 * Support Link Down Power Saving Mode (ALDPS)

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
target/linux/generic/pending-5.15/721-net-phy-realtek-rtl8221-allow-to-configure-SERDES-mo.patch
target/linux/generic/pending-5.15/722-net-phy-realtek-support-switching-between-SGMII-and-.patch
target/linux/generic/pending-5.15/724-net-phy-realtek-use-genphy_soft_reset-for-2.5G-PHYs.patch
target/linux/generic/pending-5.15/725-net-phy-realtek-disable-SGMII-in-band-AN-for-2-5G-PHYs.patch
target/linux/generic/pending-5.15/726-net-phy-realtek-use-phy_read_paged-instead-of-open-c.patch [new file with mode: 0644]
target/linux/generic/pending-5.15/727-net-phy-realtek-use-inline-functions-for-10GbE-adver.patch [new file with mode: 0644]
target/linux/generic/pending-5.15/728-net-phy-realtek-check-validity-of-10GbE-link-partner.patch [new file with mode: 0644]
target/linux/generic/pending-5.15/729-net-phy-realtek-introduce-rtl822x_probe.patch [new file with mode: 0644]