]> git.baikalelectronics.ru Git - kernel.git/commit
ice: handle E822 generic device ID in PLDM header
authorPaul M Stillwell Jr <paul.m.stillwell.jr@intel.com>
Wed, 8 Jun 2022 21:09:52 +0000 (14:09 -0700)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Tue, 12 Jul 2022 16:25:34 +0000 (09:25 -0700)
commit67c93afbf8cdd4963327eef971abea0a515add12
treeaf73ca500524e1f0ecc728cb5a9e51ed9b988a72
parentef692a38e5d61c5040e298f3c94ccb44fe14a95d
ice: handle E822 generic device ID in PLDM header

The driver currently presumes that the record data in the PLDM header
of the firmware image will match the device ID of the running device.
This is true for E810 devices. It appears that for E822 devices that
this is not guaranteed to be true.

Fix this by adding a check for the generic E822 device.

Fixes: a2e4db181311 ("ice: implement device flash update via devlink")
Signed-off-by: Paul M Stillwell Jr <paul.m.stillwell.jr@intel.com>
Tested-by: Gurucharan <gurucharanx.g@intel.com> (A Contingent worker at Intel)
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/ice/ice_devids.h
drivers/net/ethernet/intel/ice/ice_fw_update.c
drivers/net/ethernet/intel/ice/ice_main.c