HID: intel-ish-hid: loader: Add PRODUCT_FAMILY-based firmware matching
Subsystems (3)
PATCH v3 1/2 HID: intel-ish-hid: loader: Add PRODUCT_FAMILY-based firmware matching
Add support for firmware filenames that include the CRC32 checksum of the DMI product_family field. Several OEMs ship ISH firmware variants shared across a product family while product_name or product_sku may differ. This intermediate matching granularity reduces duplication and improves firmware selection for vendor-customized platforms.
The newly supported filename forms are checked before existing patterns:
ish_${gen}_${vendor}_${family}_${name}_${sku}.bin
ish_${gen}_${vendor}_${family}_${sku}.bin
ish_${gen}_${vendor}_${family}_${name}.bin
ish_${gen}_${vendor}_${family}.binThe legacy product_name/product_sku rules remain unchanged and continue to provide fallback matching.
ISH_FW_FILENAME_LEN_MAX is changed to 72 to accommodate the product_family.
Tested with X9 series and X1 series.
---
Changes in v3
- Removed the duplicate defenition of ISH_FW_FILE_VENDOR_FAMILY_FMT
---
Changes in v2
- Indent corrected
- More comments added
--- drivers/hid/intel-ish-hid/ishtp/loader.c | 58 +++++++++++++++++++++++- 1 file changed, 56 insertions(+), 2 deletions(-)
drivers/hid/intel-ish-hid/ishtp/loader.c +56 -2
@@ -195,13 +195,19 @@ static int prepare_dma_bufs(struct ishtp_device *dev,return 0 ; } +/* Patterns with PRODUCT_FAMILY */ +#define ISH_FW_FILE_VENDOR_FAMILY_NAME_SKU_FMT "intel/ish/ish_%s_%08x_%08x_%08x_%08x.bin" +#define ISH_FW_FILE_VENDOR_FAMILY_SKU_FMT "intel/ish/ish_%s_%08x_%08x_%08x.bin" +#define ISH_FW_FILE_VENDOR_FAMILY_NAME_FMT "intel/ish/ish_%s_%08x_%08x_%08x.bin" +#define ISH_FW_FILE_VENDOR_FAMILY_FMT "intel/ish/ish_%s_%08x_%08x.bin" +#define ISH_FW_FILE_VENDOR_NAME_SKU_FMT "intel/ish/ish_%s_%08x_%08x_%08x.bin"#define ISH_FW_FILE_VENDOR_SKU_FMT "intel/ish/ish_%s_%08x_%08x.bin"#define ISH_FW_FILE_VENDOR_NAME_FMT "intel/ish/ish_%s_%08x_%08x.bin"#define ISH_FW_FILE_VENDOR_FMT "intel/ish/ish_%s_%08x.bin"#define ISH_FW_FILE_DEFAULT_FMT "intel/ish/ish_%s.bin" -#define ISH_FW_FILENAME_LEN_MAX 56 +#define ISH_FW_FILENAME_LEN_MAX 72#define ISH_CRC_INIT (~0u)#define ISH_CRC_XOROUT (~0u)
@@ -228,6 +234,12 @@ static int _request_ish_firmware(const struct firmware **firmware_p,* for the given device in the following order, prioritizing custom firmware * with more precise matching patterns: * +* ish_${fw_generation}_${SYS_VENDOR_CRC32}_$(PRODUCT_FAMILY_CRC32) +* _$(PRODUCT_NAME_CRC32)_${PRODUCT_SKU_CRC32}.bin +* +* ish_${fw_generation}_${SYS_VENDOR_CRC32}_$(PRODUCT_FAMILY_CRC32)_${PRODUCT_SKU_CRC32}.bin +* ish_${fw_generation}_${SYS_VENDOR_CRC32}_$(PRODUCT_FAMILY_CRC32)_$(PRODUCT_NAME_CRC32).bin +* ish_${fw_generation}_${SYS_VENDOR_CRC32}_$(PRODUCT_FAMILY_CRC32).bin * ish_${fw_generation}_${SYS_VENDOR_CRC32}_$(PRODUCT_NAME_CRC32)_${PRODUCT_SKU_CRC32}.bin * ish_${fw_generation}_${SYS_VENDOR_CRC32}_${PRODUCT_SKU_CRC32}.bin * ish_${fw_generation}_${SYS_VENDOR_CRC32}_$(PRODUCT_NAME_CRC32).bin
@@ -256,8 +268,9 @@ static int request_ish_firmware(const struct firmware **firmware_p, struct device *dev) {const char *gen, *sys_vendor, *product_name, *product_sku; +const char *product_family;struct ishtp_device *ishtp =dev_get_drvdata (dev); -u32 vendor_crc, name_crc, sku_crc; +u32 vendor_crc, name_crc, sku_crc, family_crc;char filename[ISH_FW_FILENAME_LEN_MAX ];int ret;
@@ -265,14 +278,55 @@ static int request_ish_firmware(const struct firmware **firmware_p, sys_vendor =dmi_get_system_info (DMI_SYS_VENDOR ); product_name =dmi_get_system_info (DMI_PRODUCT_NAME ); product_sku =dmi_get_system_info (DMI_PRODUCT_SKU ); + product_family =dmi_get_system_info (DMI_PRODUCT_FAMILY );if (sys_vendor) vendor_crc =crc32 (ISH_CRC_INIT , sys_vendor,strlen (sys_vendor)) ^ISH_CRC_XOROUT ; +if (product_family) + family_crc =crc32 (ISH_CRC_INIT , product_family, +strlen (product_family)) ^ISH_CRC_XOROUT ;if (product_name) name_crc =crc32 (ISH_CRC_INIT , product_name,strlen (product_name)) ^ISH_CRC_XOROUT ;if (product_sku) sku_crc =crc32 (ISH_CRC_INIT , product_sku,strlen (product_sku)) ^ISH_CRC_XOROUT ; +/* PRODUCT_FAMILY-extended matching */ +if (sys_vendor && product_family && product_name && product_sku) { +snprintf (filename,sizeof (filename), +ISH_FW_FILE_VENDOR_FAMILY_NAME_SKU_FMT , + gen, vendor_crc, family_crc, name_crc, sku_crc); + ret =_request_ish_firmware (firmware_p, filename, dev); +if (!ret) +return 0 ; + } + +if (sys_vendor && product_family && product_sku) { +snprintf (filename,sizeof (filename), +ISH_FW_FILE_VENDOR_FAMILY_SKU_FMT , + gen, vendor_crc, family_crc, sku_crc); + ret =_request_ish_firmware (firmware_p, filename, dev); +if (!ret) +return 0 ; + } + +if (sys_vendor && product_family && product_name) { +snprintf (filename,sizeof (filename), +ISH_FW_FILE_VENDOR_FAMILY_NAME_FMT , + gen, vendor_crc, family_crc, name_crc); + ret =_request_ish_firmware (firmware_p, filename, dev); +if (!ret) +return 0 ; + } + +if (sys_vendor && product_family) { +snprintf (filename,sizeof (filename), +ISH_FW_FILE_VENDOR_FAMILY_FMT , + gen, vendor_crc, family_crc); + ret =_request_ish_firmware (firmware_p, filename, dev); +if (!ret) +return 0 ; +} +if (sys_vendor && product_name && product_sku) {snprintf (filename,sizeof (filename),ISH_FW_FILE_VENDOR_NAME_SKU_FMT , gen, vendor_crc, name_crc, sku_crc);
Signature · 1 line
2.51.0
PATCH v3 2/2 Documentation: hid: intel-ish-hid: Document PRODUCT_FAMILY firmware matching
Document the ISH firmware filename matching rules, including the new PRODUCT_FAMILY-based patterns and their search order.
This aligns the documentation with the driver behavior and provides clear guidance for vendors supplying custom ISH firmware.
--- Documentation/hid/intel-ish-hid.rst | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-)
Documentation/hid/intel-ish-hid.rst +14 -5
@@ -413,6 +413,10 @@ Vendors who wish to upstream their custom firmware should follow these guideline - The firmware filename should use one of the following patterns: + - ``ish_${intel_plat_gen}_${SYS_VENDOR_CRC32}_${PRODUCT_FAMILY_CRC32}_${PRODUCT_NAME_CRC32}_${PRODUCT_SKU_CRC32}.bin`` + - ``ish_${intel_plat_gen}_${SYS_VENDOR_CRC32}_${PRODUCT_FAMILY_CRC32}_${PRODUCT_SKU_CRC32}.bin`` + - ``ish_${intel_plat_gen}_${SYS_VENDOR_CRC32}_${PRODUCT_FAMILY_CRC32}_${PRODUCT_NAME_CRC32}.bin`` + - ``ish_${intel_plat_gen}_${SYS_VENDOR_CRC32}_${PRODUCT_FAMILY_CRC32}.bin`` - ``ish_${intel_plat_gen}_${SYS_VENDOR_CRC32}_${PRODUCT_NAME_CRC32}_${PRODUCT_SKU_CRC32}.bin`` - ``ish_${intel_plat_gen}_${SYS_VENDOR_CRC32}_${PRODUCT_SKU_CRC32}.bin`` - ``ish_${intel_plat_gen}_${SYS_VENDOR_CRC32}_${PRODUCT_NAME_CRC32}.bin``
@@ -420,16 +424,21 @@ Vendors who wish to upstream their custom firmware should follow these guideline - ``${intel_plat_gen}`` indicates the Intel platform generation (e.g., ``lnlm`` for Lunar Lake) and must not exceed 8 characters in length. - ``${SYS_VENDOR_CRC32}`` is the CRC32 checksum of the ``sys_vendor`` value from the DMI field ``DMI_SYS_VENDOR``. +- ``${PRODUCT_FAMILY_CRC32}`` is the CRC32 checksum of the ``product_family`` value from the DMI field ``DMI_PRODUCT_FAMILY``. - ``${PRODUCT_NAME_CRC32}`` is the CRC32 checksum of the ``product_name`` value from the DMI field ``DMI_PRODUCT_NAME``. - ``${PRODUCT_SKU_CRC32}`` is the CRC32 checksum of the ``product_sku`` value from the DMI field ``DMI_PRODUCT_SKU``. During system boot, the ISH Linux driver will attempt to load the firmware in the following order, prioritizing custom firmware with more precise matching patterns: -1. ``intel/ish/ish_${intel_plat_gen}_${SYS_VENDOR_CRC32}_${PRODUCT_NAME_CRC32}_${PRODUCT_SKU_CRC32}.bin`` -2. ``intel/ish/ish_${intel_plat_gen}_${SYS_VENDOR_CRC32}_${PRODUCT_SKU_CRC32}.bin`` -3. ``intel/ish/ish_${intel_plat_gen}_${SYS_VENDOR_CRC32}_${PRODUCT_NAME_CRC32}.bin`` -4. ``intel/ish/ish_${intel_plat_gen}_${SYS_VENDOR_CRC32}.bin`` -5. ``intel/ish/ish_${intel_plat_gen}.bin`` +1. ``intel/ish/ish_${intel_plat_gen}_${SYS_VENDOR_CRC32}_${PRODUCT_FAMILY_CRC32}_${PRODUCT_NAME_CRC32}_${PRODUCT_SKU_CRC32}.bin`` +2. ``intel/ish/ish_${intel_plat_gen}_${SYS_VENDOR_CRC32}_${PRODUCT_FAMILY_CRC32}_${PRODUCT_SKU_CRC32}.bin`` +3. ``intel/ish/ish_${intel_plat_gen}_${SYS_VENDOR_CRC32}_${PRODUCT_FAMILY_CRC32}_${PRODUCT_NAME_CRC32}.bin`` +4. ``intel/ish/ish_${intel_plat_gen}_${SYS_VENDOR_CRC32}_${PRODUCT_FAMILY_CRC32}.bin`` +5. ``intel/ish/ish_${intel_plat_gen}_${SYS_VENDOR_CRC32}_${PRODUCT_NAME_CRC32}_${PRODUCT_SKU_CRC32}.bin`` +6. ``intel/ish/ish_${intel_plat_gen}_${SYS_VENDOR_CRC32}_${PRODUCT_SKU_CRC32}.bin`` +7. ``intel/ish/ish_${intel_plat_gen}_${SYS_VENDOR_CRC32}_${PRODUCT_NAME_CRC32}.bin`` +8. ``intel/ish/ish_${intel_plat_gen}_${SYS_VENDOR_CRC32}.bin`` +9. ``intel/ish/ish_${intel_plat_gen}.bin`` The driver will load the first matching firmware and skip the rest. If no matching firmware is found, it will proceed to the next pattern in the specified order. If all searches fail, the default Intel firmware, listed last in the order above, will be loaded.
Signature · 1 line
2.51.0
Re: [PATCH v3 2/2] Documentation: hid: intel-ish-hid: Document PRODUCT_FAMILY firmware matching
Quoted 7 lines · Vishnu Sankar
Document the ISH firmware filename matching rules, including the new PRODUCT_FAMILY-based patterns and their search order.
This aligns the documentation with the driver behavior and provides clear guidance for vendors supplying custom ISH firmware.
Signed-off-by Vishnu Sankar <[email protected]>
Quoted 94 lines
---
Documentation/hid/intel-ish-hid.rst | 19 ++++++++++++++-----1 file changed, 14 insertions(+), 5 deletions(-)Documentation/hid/intel-ish-hid.rst +0
-0@@ -413,6 +413,10 @@ Vendors who wish to upstream their customfirmware should follow these guideline
- The firmware filename should use one of the following patterns:
+ - ``ish_${intel_plat_gen}_${SYS_VENDOR_CRC32}_${PRODUCT_FAMILY_CRC32}_$ {PRODUCT_NAME_CRC32}_${PRODUCT_SKU_CRC32}.bin``
+ - ``ish_${intel_plat_gen}_${SYS_VENDOR_CRC32}_${PRODUCT_FAMILY_CRC32}_$ {PRODUCT_SKU_CRC32}.bin``
+ - ``ish_${intel_plat_gen}_${SYS_VENDOR_CRC32}_${PRODUCT_FAMILY_CRC32}_$ {PRODUCT_NAME_CRC32}.bin``
+ - ``ish_${intel_plat_gen}_${SYS_VENDOR_CRC32}_${PRODUCT_FAMILY_CRC32}.b in``
- ``ish_${intel_plat_gen}_${SYS_VENDOR_CRC32}_${PRODUCT_NAME_CRC32}_${P RODUCT_SKU_CRC32}.bin``
- ``ish_${intel_plat_gen}_${SYS_VENDOR_CRC32}_${PRODUCT_SKU_CRC32}.bin` `
- ``ish_${intel_plat_gen}_${SYS_VENDOR_CRC32}_${PRODUCT_NAME_CRC32}.bin ``Documentation/hid/intel-ish-hid.rst +0
-0@@ -420,16 +424,21 @@ Vendors who wish to upstream their customfirmware should follow these guideline
- ``${intel_plat_gen}`` indicates the Intel platform generation (e.g., ``lnlm`` for Lunar Lake) and must not exceed 8 characters in length.
- ``${SYS_VENDOR_CRC32}`` is the CRC32 checksum of the ``sys_vendor`` value from the DMI field ``DMI_SYS_VENDOR``. +- ``${PRODUCT_FAMILY_CRC32}`` is the CRC32 checksum of the ``product_family`` value from the DMI field ``DMI_PRODUCT_FAMILY``.
- ``${PRODUCT_NAME_CRC32}`` is the CRC32 checksum of the ``product_name`` value from the DMI field ``DMI_PRODUCT_NAME``.
- ``${PRODUCT_SKU_CRC32}`` is the CRC32 checksum of the ``product_sku`` value from the DMI field ``DMI_PRODUCT_SKU``.
During system boot, the ISH Linux driver will attempt to load the firmware in the following order, prioritizing custom firmware with more precise matching patterns:
-1. ``intel/ish/ish_${intel_plat_gen}_${SYS_VENDOR_CRC32}_${PRODUCT_NAME_ CRC32}_${PRODUCT_SKU_CRC32}.bin``
-2. ``intel/ish/ish_${intel_plat_gen}_${SYS_VENDOR_CRC32}_${PRODUCT_SKU_C RC32}.bin``
-3. ``intel/ish/ish_${intel_plat_gen}_${SYS_VENDOR_CRC32}_${PRODUCT_NAME_ CRC32}.bin``
-4. ``intel/ish/ish_${intel_plat_gen}_${SYS_VENDOR_CRC32}.bin`` -5. ``intel/ish/ish_${intel_plat_gen}.bin``
+1. ``intel/ish/ish_${intel_plat_gen}_${SYS_VENDOR_CRC32}_${PRODUCT_FAMIL Y_CRC32}_${PRODUCT_NAME_CRC32}_${PRODUCT_SKU_CRC32}.bin`` +2. ``intel/ish/ish_${intel_plat_gen}_${SYS_VENDOR_CRC32}_${PRODUCT_FAMIL Y_CRC32}_${PRODUCT_SKU_CRC32}.bin``
+3. ``intel/ish/ish_${intel_plat_gen}_${SYS_VENDOR_CRC32}_${PRODUCT_FAMIL Y_CRC32}_${PRODUCT_NAME_CRC32}.bin``
+4. ``intel/ish/ish_${intel_plat_gen}_${SYS_VENDOR_CRC32}_${PRODUCT_FAMIL Y_CRC32}.bin``
+5. ``intel/ish/ish_${intel_plat_gen}_${SYS_VENDOR_CRC32}_${PRODUCT_NAME_ CRC32}_${PRODUCT_SKU_CRC32}.bin``
+6. ``intel/ish/ish_${intel_plat_gen}_${SYS_VENDOR_CRC32}_${PRODUCT_SKU_C RC32}.bin``
+7. ``intel/ish/ish_${intel_plat_gen}_${SYS_VENDOR_CRC32}_${PRODUCT_NAME_ CRC32}.bin``
+8. ``intel/ish/ish_${intel_plat_gen}_${SYS_VENDOR_CRC32}.bin`` +9. ``intel/ish/ish_${intel_plat_gen}.bin``
The driver will load the first matching firmware and skip the rest. If no matching firmware is found, it will proceed to the next pattern in the specified order. If all searches fail, the default Intel firmware, listed last in the order above, will be loaded.
Quoted 22 lines · Vishnu Sankar
Add support for firmware filenames that include the CRC32 checksum of the
DMIproduct_familyfield. Several OEMs ship ISH firmware variants shared
across a product family whileproduct_nameorproduct_skumay differ. This
intermediate matching granularity reduces duplication and improves firmware
selection for vendor-customized platforms.The newly supported filename forms are checked before existing patterns:
ish_${gen}_${vendor}_${family}_${name}_${sku}.bin ish_${gen}_${vendor}_${family}_${sku}.bin ish_${gen}_${vendor}_${family}_${name}.bin ish_${gen}_${vendor}_${family}.bin
The legacy product_name/product_sku rules remain unchanged and continue
to provide fallback matching.
Quoted 8 lines
ISH_FW_FILENAME_LEN_MAXis changed to 72 to accommodate theproduct_family.Tested with X9 series and X1 series.
Reviewed-by Mark Pearson <[email protected]>Tested-by Richie Roy Jayme <[email protected]>Signed-off-by Vishnu Sankar <[email protected]>
Quoted 149 lines
---
Changes in v3
- Removed the duplicate defenition ofISH_FW_FILE_VENDOR_FAMILY_FMT
---
Changes in v2
- Indent corrected
- More comments added
---
drivers/hid/intel-ish-hid/ishtp/loader.c | 58
+++++++++++++++++++++++-1 file changed, 56 insertions(+), 2 deletions(-)drivers/hid/intel-ish-hid/ishtp/loader.c +0
-0@@ -195,13 +195,19 @@ static int prepare_dma_bufs(struct ishtp_device *dev, return 0; }drivers/hid/intel-ish-hid/ishtp/loader.c +2
-0+/* Patterns with PRODUCT_FAMILY */ +#define ISH_FW_FILE_VENDOR_FAMILY_NAME_SKU_FMT "intel/ish/ish_%s_%08x_%08x_%08x_%08x.bin"
+#defineISH_FW_FILE_VENDOR_FAMILY_SKU_FMT"intel/ish/ish_%s_%08x_%08x_%08x.bin"
+#defineISH_FW_FILE_VENDOR_FAMILY_NAME_FMT"intel/ish/ish_%s_%08x_%08x_%08x.bin"
+#defineISH_FW_FILE_VENDOR_FAMILY_FMT"intel/ish/ish_%s_%08x_%08x.bin"
+
#defineISH_FW_FILE_VENDOR_NAME_SKU_FMT"intel/ish/ish_%s_%08x_%08x_%08x.bin"
#defineISH_FW_FILE_VENDOR_SKU_FMT"intel/ish/ish_%s_%08x_%08x.bin" #defineISH_FW_FILE_VENDOR_NAME_FMT"intel/ish/ish_%s_%08x_%08x.bin" #defineISH_FW_FILE_VENDOR_FMT"intel/ish/ish_%s_%08x.bin" #defineISH_FW_FILE_DEFAULT_FMT"intel/ish/ish_%s.bin"drivers/hid/intel-ish-hid/ishtp/loader.c +1
-1-#define ISH_FW_FILENAME_LEN_MAX 56 +#define ISH_FW_FILENAME_LEN_MAX 72
#defineISH_CRC_INIT(~0u)
#defineISH_CRC_XOROUT(~0u)drivers/hid/intel-ish-hid/ishtp/loader.c +0
-0@@ -228,6 +234,12 @@ static int _request_ish_firmware(const structfirmware **firmware_p, * for the given device in the following order, prioritizing customfirmware
* with more precise matching patterns:
*
+ * ish_${fw_generation}_${SYS_VENDOR_CRC32}_$(PRODUCT_FAMILY_CRC32)
+ * _$(PRODUCT_NAME_CRC32)_${PRODUCT_SKU_CRC32}.bin
+ *
+ * ish_${fw_generation}_${SYS_VENDOR_CRC32}_$(PRODUCT_FAMILY_CRC32)_${PR ODUCT_SKU_CRC32}.bin
+ * ish_${fw_generation}_${SYS_VENDOR_CRC32}_$(PRODUCT_FAMILY_CRC32)_$(PR ODUCT_NAME_CRC32).bin
+ * ish_${fw_generation}_${SYS_VENDOR_CRC32}_$(PRODUCT_FAMILY_CRC32).bin * ish_${fw_generation}_${SYS_VENDOR_CRC32}_$(PRODUCT_NAME_CRC32)_${PROD UCT_SKU_CRC32}.bin
* ish_${fw_generation}_${SYS_VENDOR_CRC32}_${PRODUCT_SKU_CRC32}.bin * ish_${fw_generation}_${SYS_VENDOR_CRC32}_$(PRODUCT_NAME_CRC32).bindrivers/hid/intel-ish-hid/ishtp/loader.c +2
-1@@ -256,8 +268,9 @@ static int request_ish_firmware(const struct firmware **firmware_p, struct device *dev) { const char *gen, *sys_vendor, *product_name, *product_sku; +const char *product_family; struct ishtp_device *ishtp = dev_get_drvdata(dev); -u32 vendor_crc, name_crc, sku_crc; +u32 vendor_crc, name_crc, sku_crc, family_crc; char filename[ISH_FW_FILENAME_LEN_MAX]; int ret;drivers/hid/intel-ish-hid/ishtp/loader.c +1
-0@@ -265,14 +278,55 @@ static int request_ish_firmware(const structfirmware **firmware_p, sys_vendor = dmi_get_system_info(DMI_SYS_VENDOR); product_name = dmi_get_system_info(DMI_PRODUCT_NAME); product_sku = dmi_get_system_info(DMI_PRODUCT_SKU); + product_family =dmi_get_system_info (DMI_PRODUCT_FAMILY );
if (sys_vendor)
vendor_crc=crc32(ISH_CRC_INIT, sys_vendor, strlen(sys_vendor))^ISH_CRC_XOROUT;drivers/hid/intel-ish-hid/ishtp/loader.c +3
-0+if (product_family) + family_crc =crc32 (ISH_CRC_INIT , product_family, + strlen(product_family)) ^
ISH_CRC_XOROUT;
if (product_name)
name_crc=crc32(ISH_CRC_INIT, product_name, strlen(product_name))^ISH_CRC_XOROUT;
if (product_sku)
sku_crc=crc32(ISH_CRC_INIT, product_sku, strlen(product_sku))^ISH_CRC_XOROUT;drivers/hid/intel-ish-hid/ishtp/loader.c +2
-0+/* PRODUCT_FAMILY-extended matching */ + if (sys_vendor && product_family && product_name &&
product_sku) {drivers/hid/intel-ish-hid/ishtp/loader.c +3
-0+ snprintf(filename, sizeof(filename), + ISH_FW_FILE_VENDOR_FAMILY_NAME_SKU_FMT, + gen, vendor_crc, family_crc, name_crc,
sku_crc);drivers/hid/intel-ish-hid/ishtp/loader.c +1
-0+ ret = _request_ish_firmware(firmware_p, filename,dev);
drivers/hid/intel-ish-hid/ishtp/loader.c +9
-0+if (!ret) +return 0 ; + } + +if (sys_vendor && product_family && product_sku) { +snprintf (filename,sizeof (filename), +ISH_FW_FILE_VENDOR_FAMILY_SKU_FMT , + gen, vendor_crc, family_crc, sku_crc); + ret = _request_ish_firmware(firmware_p, filename,dev);
drivers/hid/intel-ish-hid/ishtp/loader.c +9
-0+if (!ret) +return 0 ; + } + +if (sys_vendor && product_family && product_name) { +snprintf (filename,sizeof (filename), +ISH_FW_FILE_VENDOR_FAMILY_NAME_FMT , + gen, vendor_crc, family_crc, name_crc); + ret = _request_ish_firmware(firmware_p, filename,dev);
drivers/hid/intel-ish-hid/ishtp/loader.c +9
-0+if (!ret) +return 0 ; + } + +if (sys_vendor && product_family) { +snprintf (filename,sizeof (filename), +ISH_FW_FILE_VENDOR_FAMILY_FMT , + gen, vendor_crc, family_crc); + ret = _request_ish_firmware(firmware_p, filename,dev);
drivers/hid/intel-ish-hid/ishtp/loader.c +4
-0+if (!ret) +return 0 ; +} +if (
sys_vendor&&product_name&&product_sku) {snprintf(filename, sizeof(filename), ISH_FW_FILE_VENDOR_NAME_SKU_FMT, gen, vendor_crc, name_crc, sku_crc);
Quoted 16 lines · Vishnu Sankar
Add support for firmware filenames that include the CRC32 checksum of the DMI
product_familyfield. Several OEMs ship ISH firmware variants shared across a product family whileproduct_nameorproduct_skumay differ. This intermediate matching granularity reduces duplication and improves firmware selection for vendor-customized platforms.The newly supported filename forms are checked before existing patterns:
ish_${gen}_${vendor}_${family}_${name}_${sku}.bin ish_${gen}_${vendor}_${family}_${sku}.bin ish_${gen}_${vendor}_${family}_${name}.bin ish_${gen}_${vendor}_${family}.binThe legacy product_name/product_sku rules remain unchanged and continue to provide fallback matching.
Quoted 7 lines
ISH_FW_FILENAME_LEN_MAXis changed to 72 to accommodate theproduct_family.Tested with X9 series and X1 series.
Reviewed-by Mark Pearson <[email protected]>Tested-by Richie Roy Jayme <[email protected]>Signed-off-by Vishnu Sankar <[email protected]>
Applied both to hid.git#for-6.20/intel-ish, thanks.
Signature · 2 lines
Jiri Kosina SUSE Labs
Jiri,
Thank you.
Quoted 33 lines · Jiri Kosina
Quoted 16 lines · Vishnu Sankar
Add support for firmware filenames that include the CRC32 checksum of the DMI
product_familyfield. Several OEMs ship ISH firmware variants shared across a product family whileproduct_nameorproduct_skumay differ. This intermediate matching granularity reduces duplication and improves firmware selection for vendor-customized platforms.The newly supported filename forms are checked before existing patterns:
ish_${gen}_${vendor}_${family}_${name}_${sku}.bin ish_${gen}_${vendor}_${family}_${sku}.bin ish_${gen}_${vendor}_${family}_${name}.bin ish_${gen}_${vendor}_${family}.binThe legacy product_name/product_sku rules remain unchanged and continue to provide fallback matching.
Quoted 7 lines
ISH_FW_FILENAME_LEN_MAXis changed to 72 to accommodate theproduct_family.Tested with X9 series and X1 series.
Reviewed-by Mark Pearson <[email protected]>Tested-by Richie Roy Jayme <[email protected]>Signed-off-by Vishnu Sankar <[email protected]>Applied both to hid.git#for-6.20/intel-ish, thanks.
--
Jiri Kosina
SUSE Labs
Signature · 4 lines
Regards,
Vishnu Sankar
+817015150407 (Japan)