提交 1a9c561a 编写于 作者: P Paul M Stillwell Jr 提交者: Jeff Kirsher

ice: fix PCI device serial number to be lowercase values

Commit ceb2f007 ("ice: Use pci_get_dsn()") changed the code to
use a new function to get the Device Serial Number. It also changed
the case of the filename for loading a package on a specific NIC
from lowercase to uppercase. Change the filename back to
lowercase since that is what we specified.

Fixes: ceb2f007 ("ice: Use pci_get_dsn()")
Signed-off-by: NPaul M Stillwell Jr <paul.m.stillwell.jr@intel.com>
Tested-by: NAndrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: NJeff Kirsher <jeffrey.t.kirsher@intel.com>
上级 ebb462dc
...@@ -3248,7 +3248,7 @@ static char *ice_get_opt_fw_name(struct ice_pf *pf) ...@@ -3248,7 +3248,7 @@ static char *ice_get_opt_fw_name(struct ice_pf *pf)
if (!opt_fw_filename) if (!opt_fw_filename)
return NULL; return NULL;
snprintf(opt_fw_filename, NAME_MAX, "%sice-%016llX.pkg", snprintf(opt_fw_filename, NAME_MAX, "%sice-%016llx.pkg",
ICE_DDP_PKG_PATH, dsn); ICE_DDP_PKG_PATH, dsn);
return opt_fw_filename; return opt_fw_filename;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册