aboutsummaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/intel/ice/ice_devlink.c
diff options
context:
space:
mode:
authorJacob Keller <jacob.e.keller@intel.com>2020-10-01 10:31:42 -0700
committerTony Nguyen <anthony.l.nguyen@intel.com>2021-02-05 11:35:41 -0800
commit1fa95e0120ebe4d8953cb86e1617e3ab1dc5ce89 (patch)
tree15a727d88aab6b0c9d2cde901b9e49f4ad34e7f5 /drivers/net/ethernet/intel/ice/ice_devlink.c
parent74789085d9ce9c626102d267eabfbff01a8cd855 (diff)
downloadlinux-1fa95e0120ebe4d8953cb86e1617e3ab1dc5ce89.tar.gz
linux-1fa95e0120ebe4d8953cb86e1617e3ab1dc5ce89.tar.bz2
linux-1fa95e0120ebe4d8953cb86e1617e3ab1dc5ce89.zip
ice: cache NVM module bank information
The ice flash contains two copies of each of the NVM, Option ROM, and Netlist modules. Each bank has a pointer word and a size word. In order to correctly read from the active flash bank, the driver must calculate the offset manually. During NVM initialization, read the Shadow RAM control word and determine which bank is active for each NVM module. Additionally, cache the size and pointer values for use in calculating the correct offset. Signed-off-by: Jacob Keller <jacob.e.keller@intel.com> Tested-by: Tony Brelinski <tonyx.brelinski@intel.com> Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Diffstat (limited to 'drivers/net/ethernet/intel/ice/ice_devlink.c')
0 files changed, 0 insertions, 0 deletions