]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: txgbe: initialize PHY interface to 0
authorJiawen Wu <jiawenwu@trustnetic.com>
Mon, 8 Jun 2026 07:08:42 +0000 (15:08 +0800)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 11 Jun 2026 08:55:14 +0000 (10:55 +0200)
commit47f848aac4e79bdb197f849fa86e71fff1ad36ef
treeaa2ce14e471e9d7d586d306e7e1cad4466719489
parentf2df54ddbfb04a006ee326a5d8270434a414e0af
net: txgbe: initialize PHY interface to 0

DECLARE_PHY_INTERFACE_MASK() does not guarantee zeroed contents. Add a
new macro DECLARE_PHY_INTERFACE_MASK_ZERO(), make the stack variable to
be zeroed before setting supported interfaces.

Fixes: 57d39faed4c9 ("net: txgbe: improve functions of AML 40G devices")
Signed-off-by: Jiawen Wu <jiawenwu@trustnetic.com>
Link: https://patch.msgid.link/20260608070842.36504-4-jiawenwu@trustnetic.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/wangxun/txgbe/txgbe_aml.c
drivers/net/ethernet/wangxun/txgbe/txgbe_type.h