]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: phy: micrel: Fix lan8814_config_init
authorHoratiu Vultur <horatiu.vultur@microchip.com>
Thu, 25 Sep 2025 06:47:02 +0000 (08:47 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 24 Nov 2025 09:36:08 +0000 (10:36 +0100)
commitc45a1db3bec6c27357ea80d42fa78dd0669c2420
treec07132b46d1343c708cd4149faf44e9a60fef203
parent6dce43433e0635e7b00346bc937b69ce48ea71bb
net: phy: micrel: Fix lan8814_config_init

commit bf91f4bc9c1dfba75e457e6a5f11e3cda658729a upstream.

The blamed commit introduced the function lanphy_modify_page_reg which
as name suggests it, it modifies the registers. In the same commit we
have started to use this function inside the drivers. The problem is
that in the function lan8814_config_init we passed the wrong page number
when disabling the aneg towards host side. We passed extended page number
4(LAN8814_PAGE_COMMON_REGS) instead of extended page
5(LAN8814_PAGE_PORT_REGS)

Fixes: a0de636ed7a264 ("net: phy: micrel: Introduce lanphy_modify_page_reg")
Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20250925064702.3906950-1-horatiu.vultur@microchip.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/phy/micrel.c