net/ice/base: allow flash read with arbitrary size
authorQi Zhang <qi.z.zhang@intel.com>
Tue, 15 Dec 2020 02:29:16 +0000 (10:29 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 8 Jan 2021 15:03:06 +0000 (16:03 +0100)
commitc897f535e3a7899a4cbe0cdaaa8ba88761b95038
tree82bc614926063d1e897aea151714ac3092cf1d75
parentf44382091895ae9a477247e995811bc940fdecdb
net/ice/base: allow flash read with arbitrary size

Refactor ice_read_flash_module so that it takes a size and a length
value, rather than always reading in 2-byte increments. The
ice_read_nvm_module and ice_read_orom_module wrapper functions will
still read a u16 with the byte-swapping enabled.

This will be used in a future change to implement reading of the CIVD
data from the Option ROM module.

Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Signed-off-by: Qi Zhang <qi.z.zhang@intel.com>
Acked-by: Qiming Yang <qiming.yang@intel.com>
drivers/net/ice/base/ice_nvm.c