]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: phy: realtek: simplify bogus paged operations
authorDaniel Golle <daniel@makrotopia.org>
Tue, 13 Jan 2026 03:44:42 +0000 (03:44 +0000)
committerJakub Kicinski <kuba@kernel.org>
Sun, 18 Jan 2026 00:12:16 +0000 (16:12 -0800)
commit650e55f224a575cdb18c984b95036109519502d1
treeed9d36c88f289a23efaebfd4876b9ed516493c1e
parent46ff862d376cfadf0f9e36a6edce41a003175708
net: phy: realtek: simplify bogus paged operations

Only registers 0x10~0x17 are affected by the value in the page
selection register 0x1f. Hence there is no point in using paged
operations when accessing any other registers.
Simplify the driver by using the normal phy_read and phy_write
operations for registers which are anyway not affected by paging.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Link: https://patch.msgid.link/0c5cbb66ce3e72a011d76f8c3d61ebcac44483bb.1768275364.git.daniel@makrotopia.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/phy/realtek/realtek_main.c