]> exis.tech > repos - linux.git/commit
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)
commit0068940907d33217ae01217f84910a5cde606c17
treeaa2ce14e471e9d7d586d306e7e1cad4466719489
parentb59873c9c40d0cbc16df86cf6cb5430330a0ac74
parent47f848aac4e79bdb197f849fa86e71fff1ad36ef
Merge branch 'net-txgbe-fix-module-identification'

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>