Backport of Intel ISH HID patches to support sensors on Lenovo platforms
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}.bin
The 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.
Reviewed-by: Mark Pearson mpearson-lenovo@squebb.ca Tested-by: Richie Roy Jayme rjayme.jp@gmail.com Signed-off-by: Vishnu Sankar vishnuocv@gmail.com
Upstream Status: hid/hid.git (cherry picked from commit 043251b2)
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2428677 Signed-off-by: Mark Pearson mpearson-lenovo@squebb.ca