]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
Merge branch 'net-txgbe-fix-module-identification'
authorPaolo Abeni <pabeni@redhat.com>
Thu, 11 Jun 2026 08:55:15 +0000 (10:55 +0200)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 11 Jun 2026 08:55:16 +0000 (10:55 +0200)
Jiawen Wu says:

====================
net: txgbe: fix module identification

For AML devices, there are some issues where the wrong module
indentified then configure PHY failed.

The module info buffers should be initialized to 0 before the firmware
returns information. And DECLARE_PHY_INTERFACE_MASK() does not guarantee
zeroed contents, so explicitly clear the temporary interface masks before
setting supported interfaces.

Rework txgbe_identify_module() to validate module identifiers through
explicit type checks instead of relying on transceiver_type heuristics.
When using the SFP module, transceiver_type could be a random value,
because it was read from an invalid register.
====================

Link: https://patch.msgid.link/20260608070842.36504-1-jiawenwu@trustnetic.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>

Trivial merge