ionic: add module eeprom channel data to ionic_if and ethtool
authorShannon Nelson <shannon.nelson@amd.com>
Tue, 15 Apr 2025 23:13:16 +0000 (16:13 -0700)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 22 Apr 2025 10:27:30 +0000 (12:27 +0200)
commit0651c83ea96c4cff739ba9a71a7b7271219700b4
tree8a2ab854444b75efe812aa93fdce0fcb95aa2c6d
parent9c2e17d30b65a940e7d72ce67f2102d0084a93bf
ionic: add module eeprom channel data to ionic_if and ethtool

Make the CMIS module type's page 17 channel data available for
ethtool to request.  As done previously, carve space for this
data from the port_info reserved space.

In the future, if additional pages are needed, a new firmware
AdminQ command will be added for accessing random pages.

Reviewed-by: Brett Creeley <brett.creeley@amd.com>
Signed-off-by: Shannon Nelson <shannon.nelson@amd.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20250415231317.40616-4-shannon.nelson@amd.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/pensando/ionic/ionic_ethtool.c
drivers/net/ethernet/pensando/ionic/ionic_if.h