diff options
author | Bruce Allan | 2018-12-19 19:03:24 +0100 |
---|---|---|
committer | Jeff Kirsher | 2019-01-15 19:20:43 +0100 |
commit | 4c98ab550cc624eb94b0cdb32f5deb1ebbb4f593 (patch) | |
tree | a98f179de164d41d69855f56d3172a0ff96e4434 /drivers/tty/n_tracesink.h | |
parent | ice: Add ethtool set_phys_id handler (diff) | |
download | kernel-qcow2-linux-4c98ab550cc624eb94b0cdb32f5deb1ebbb4f593.tar.gz kernel-qcow2-linux-4c98ab550cc624eb94b0cdb32f5deb1ebbb4f593.tar.xz kernel-qcow2-linux-4c98ab550cc624eb94b0cdb32f5deb1ebbb4f593.zip |
ice: Implement support for normal get_eeprom[_len] ethtool ops
Add support for get_eeprom and get_eeprom_len ethtool ops
Specification states that PF software accesses NVM (shadow-ram) via AQ
commands (e.g. NVM Read, NVM Write) in the range 0x000000-0x00FFFF (64KB),
so the get_eeprom_len op should return 64KB. If additional regions of the
16MB NVM must be read, another access method must be used.
The ethtool kernel code, by default, will ask for multiple page-size hunks
of the NVM not to exceed the value returned by ice_get_eeprom_len().
ice_read_sr_buf() deals with arch page sizes different than 4KB.
Signed-off-by: Bruce Allan <bruce.w.allan@intel.com>
Signed-off-by: Anirudh Venkataramanan <anirudh.venkataramanan@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/tty/n_tracesink.h')
0 files changed, 0 insertions, 0 deletions