]> www.infradead.org Git - users/hch/configfs.git/commit
net: phy: realtek: Fix MMD access on RTL8126A-integrated PHY
authorHeiner Kallweit <hkallweit1@gmail.com>
Mon, 7 Oct 2024 09:57:41 +0000 (11:57 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 9 Oct 2024 11:43:46 +0000 (12:43 +0100)
commita6ad589c1d118f9d5b1bc4c6888d42919f830340
tree6c5f3965bfb8e8e2f256db2d9c8fba3f51c9f572
parentff8ee11e778520c5716b7f165d2c7ce14d6a068b
net: phy: realtek: Fix MMD access on RTL8126A-integrated PHY

All MMD reads return 0 for the RTL8126A-integrated PHY. Therefore phylib
assumes it doesn't support EEE, what results in higher power consumption,
and a significantly higher chip temperature in my case.
To fix this split out the PHY driver for the RTL8126A-integrated PHY
and set the read_mmd/write_mmd callbacks to read from vendor-specific
registers.

Fixes: 5befa3728b85 ("net: phy: realtek: add support for RTL8126A-integrated 5Gbps PHY")
Cc: stable@vger.kernel.org
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/realtek.c