On 3/26/2021 1:41 AM, Andrew Lunn wrote:
External email: Use caution opening links or attachments
On Thu, Mar 25, 2021 at 04:56:50PM +0200, Moshe Shemesh wrote:
Ethtool supports module EEPROM dumps via the `ethtool -m <dev>` command.
But in current state its functionality is limited - offset and length
parameters, which are used to specify a linear desired region of EEPROM
data to dump, is not enough, considering emergence of complex module
EEPROM layouts such as CMIS 4.0.
Moreover, CMIS 4.0 extends the amount of pages that may be accessible by
introducing another parameter for page addressing - banks.
This is looking much better.
Do you have a version of ethtool using this new API? WIP code is
O.K. I will add basic support to sfp.c and test it out on the devices
i have.
Sure.
Andrew