]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
eth: fbnic: Fix incorrect minimum firmware version
authorLee Trager <lee@trager.us>
Wed, 2 Jul 2025 19:12:07 +0000 (12:12 -0700)
committerJakub Kicinski <kuba@kernel.org>
Wed, 9 Jul 2025 00:05:45 +0000 (17:05 -0700)
The full minimum version is 0.10.6-0. The six is now correctly defined as
patch and shifted appropriately. 0.10.6-0 is a preproduction version of
firmware which was released over a year and a half ago. All production
devices meet this requirement.

Signed-off-by: Lee Trager <lee@trager.us>
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Link: https://patch.msgid.link/20250702192207.697368-2-lee@trager.us
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/meta/fbnic/fbnic_csr.h
drivers/net/ethernet/meta/fbnic/fbnic_fw.c

index 9c89d53786680b161532e49278a9c4a95a12f7b1..e2b251eddbb3f7e7f8a146062c27f0e75d54dd4c 100644 (file)
 /* Defines the minimum firmware version required by the driver */
 #define MIN_FW_MAJOR_VERSION    0
 #define MIN_FW_MINOR_VERSION    10
-#define MIN_FW_BUILD_VERSION    6
+#define MIN_FW_PATCH_VERSION    6
 #define MIN_FW_VERSION_CODE     (MIN_FW_MAJOR_VERSION * (1u << 24) + \
                                 MIN_FW_MINOR_VERSION * (1u << 16) + \
-                                MIN_FW_BUILD_VERSION)
+                                MIN_FW_PATCH_VERSION * (1u << 8))
 
 #define PCI_DEVICE_ID_META_FBNIC_ASIC          0x0013
 
index 1d220d8369e7397f52fd09d00ccc2ded29cb2dfd..cdc1e2938a647c8411bae157a89f3d4a273fab3d 100644 (file)
@@ -582,7 +582,7 @@ static int fbnic_fw_parse_cap_resp(void *opaque, struct fbnic_tlv_msg **results)
                        running_ver,
                        MIN_FW_MAJOR_VERSION,
                        MIN_FW_MINOR_VERSION,
-                       MIN_FW_BUILD_VERSION);
+                       MIN_FW_PATCH_VERSION);
                /* Disable TX mailbox to prevent card use until firmware is
                 * updated.
                 */