]> Gentwo Git Trees - linux/.git/commit
net: dsa: yt921x: Fix parsing MIB attributes
authorDavid Yang <mmyangfl@gmail.com>
Wed, 26 Nov 2025 08:40:19 +0000 (16:40 +0800)
committerJakub Kicinski <kuba@kernel.org>
Fri, 28 Nov 2025 01:55:53 +0000 (17:55 -0800)
commit510026a39849ae7066dce17343caba4550e2a977
tree850804fb33e25aa0526b116fb074814d92487d10
parent17e9f841dd227a4dc976b22d000d5f669bc14493
net: dsa: yt921x: Fix parsing MIB attributes

There are hard-to-find unused fields in the MIB table I didn't notice in
the example driver code, causing wrong interpretation of the MIB data.

For some 64-bit attributes, the current (wrong) implementation took the
correct lower 32 bits, but messed up the upper 32 bits, so it would work
accidentally until 32-bit overflows happen. Fix that too.

Fixes: 186623f4aa72 ("net: dsa: yt921x: Add support for Motorcomm YT921x")
Signed-off-by: David Yang <mmyangfl@gmail.com>
Link: https://patch.msgid.link/20251126084024.2843851-2-mmyangfl@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/dsa/yt921x.c