* [PATCH] net: phy: micrel: Advance register data pointer in write loop
@ 2026-09-16 23:19 Abhishek Ojha
2026-09-16 23:42 ` Andrew Lunn
2026-09-19 0:50 ` patchwork-bot+netdevbpf
0 siblings, 2 replies; 3+ messages in thread
From: Abhishek Ojha @ 2026-09-16 23:19 UTC (permalink / raw)
To: andrew, hkallweit1
Cc: linux, davem, edumazet, kuba, pabeni, rmk+kernel, horatiu.vultur,
netdev, linux-kernel, Abhishek Ojha, stable
lanphy_write_reg_data() does not advance the data pointer while iterating
over the register table. As a result, it writes the first entry num times
and leaves the remaining errata registers unconfigured.
Single-entry tables are unaffected, but tables with multiple entries
leave every entry after the first unapplied.
Advance the data pointer after each successful write so every table entry
is applied in order.
Fixes: c8732e933925 ("net: phy: micrel: lan8842 errata")
Cc: stable@vger.kernel.org
Signed-off-by: Abhishek Ojha <abhishek.ojha@savoirfairelinux.com>
---
drivers/net/phy/micrel.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/net/phy/micrel.c b/drivers/net/phy/micrel.c
index ae830781824b..5c8461db7b4b 100644
--- a/drivers/net/phy/micrel.c
+++ b/drivers/net/phy/micrel.c
@@ -6344,6 +6344,7 @@ static int lanphy_write_reg_data(struct phy_device *phydev,
data->val);
if (ret)
break;
+ data++;
}
return ret;
--
2.43.0
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] net: phy: micrel: Advance register data pointer in write loop
2026-09-16 23:19 [PATCH] net: phy: micrel: Advance register data pointer in write loop Abhishek Ojha
@ 2026-09-16 23:42 ` Andrew Lunn
2026-09-19 0:50 ` patchwork-bot+netdevbpf
1 sibling, 0 replies; 3+ messages in thread
From: Andrew Lunn @ 2026-09-16 23:42 UTC (permalink / raw)
To: Abhishek Ojha
Cc: hkallweit1, linux, davem, edumazet, kuba, pabeni, rmk+kernel,
horatiu.vultur, netdev, linux-kernel, stable
On Wed, Sep 16, 2026 at 07:19:28PM -0400, Abhishek Ojha wrote:
> lanphy_write_reg_data() does not advance the data pointer while iterating
> over the register table. As a result, it writes the first entry num times
> and leaves the remaining errata registers unconfigured.
>
> Single-entry tables are unaffected, but tables with multiple entries
> leave every entry after the first unapplied.
>
> Advance the data pointer after each successful write so every table entry
> is applied in order.
>
> Fixes: c8732e933925 ("net: phy: micrel: lan8842 errata")
> Cc: stable@vger.kernel.org
> Signed-off-by: Abhishek Ojha <abhishek.ojha@savoirfairelinux.com>
Makes you wounder if the short_center_tap errata has any value.
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Andrew
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] net: phy: micrel: Advance register data pointer in write loop
2026-09-16 23:19 [PATCH] net: phy: micrel: Advance register data pointer in write loop Abhishek Ojha
2026-09-16 23:42 ` Andrew Lunn
@ 2026-09-19 0:50 ` patchwork-bot+netdevbpf
1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+netdevbpf @ 2026-09-19 0:50 UTC (permalink / raw)
To: Abhishek Ojha
Cc: andrew, hkallweit1, linux, davem, edumazet, kuba, pabeni,
rmk+kernel, horatiu.vultur, netdev, linux-kernel, stable
Hello:
This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@kernel.org>:
On Wed, 16 Sep 2026 19:19:28 -0400 you wrote:
> lanphy_write_reg_data() does not advance the data pointer while iterating
> over the register table. As a result, it writes the first entry num times
> and leaves the remaining errata registers unconfigured.
>
> Single-entry tables are unaffected, but tables with multiple entries
> leave every entry after the first unapplied.
>
> [...]
Here is the summary with links:
- net: phy: micrel: Advance register data pointer in write loop
https://git.kernel.org/netdev/net/c/95c4d54ed022
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-09-19 0:51 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-16 23:19 [PATCH] net: phy: micrel: Advance register data pointer in write loop Abhishek Ojha
2026-09-16 23:42 ` Andrew Lunn
2026-09-19 0:50 ` patchwork-bot+netdevbpf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®