]> Gentwo Git Trees - linux/.git/commit
net: phy: micrel: Introduce lanphy_modify_page_reg
authorHoratiu Vultur <horatiu.vultur@microchip.com>
Mon, 18 Aug 2025 07:51:19 +0000 (09:51 +0200)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 21 Aug 2025 08:42:30 +0000 (10:42 +0200)
commita0de636ed7a264a329c6a9c7d50727af02138536
treefd5939f4464b38305f5670ea13d9aa9404ef954b
parent54e974c71524c1bc2c5f158d9178b9c3e999e1be
net: phy: micrel: Introduce lanphy_modify_page_reg

As the name suggests this function modifies the register in an
extended page. It has the same parameters as phy_modify_mmd.
This function was introduce because there are many places in the
code where the registers was read then the value was modified and
written back. So replace all this code with this function to make
it clear.

Reviewed-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com>
Link: https://patch.msgid.link/20250818075121.1298170-3-horatiu.vultur@microchip.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/phy/micrel.c