]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
net: txgbe: expend SW-FW mailbox buffer size to identify QSFP module
authorJiawen Wu <jiawenwu@trustnetic.com>
Tue, 14 Oct 2025 06:17:24 +0000 (14:17 +0800)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 16 Oct 2025 13:41:34 +0000 (15:41 +0200)
Recent firmware updates introduce additional fields in the mailbox message
to provide more information for identifying 40G and 100G QSFP modules.
To accommodate these new fields, expand the mailbox buffer size by 4 bytes.

Without this change, drivers built against the updated firmware cannot
properly identify modules due to mismatched mailbox message lengths.

The old firmware version that used the smaller mailbox buffer has never
been publicly released, so there are no backward-compatibility concerns.

Signed-off-by: Jiawen Wu <jiawenwu@trustnetic.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://patch.msgid.link/20251014061726.36660-2-jiawenwu@trustnetic.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/wangxun/txgbe/txgbe_type.h

index 41915d7dd372af0ce94c80f95ba4fc0591908fd9..9d53c7413f7b00e1f369cd64fbb4915cc5a1837c 100644 (file)
@@ -352,7 +352,9 @@ struct txgbe_sfp_id {
        u8 vendor_oui0;         /* A0H 0x25 */
        u8 vendor_oui1;         /* A0H 0x26 */
        u8 vendor_oui2;         /* A0H 0x27 */
-       u8 reserved[3];
+       u8 transceiver_type;    /* A0H 0x83 */
+       u8 sff_opt1;            /* A0H 0xC0 */
+       u8 reserved[5];
 };
 
 struct txgbe_hic_i2c_read {