]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ionic: support ethtool get_module_eeprom_by_page
authorShannon Nelson <shannon.nelson@amd.com>
Tue, 15 Apr 2025 23:13:15 +0000 (16:13 -0700)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 22 Apr 2025 10:27:30 +0000 (12:27 +0200)
commit9c2e17d30b65a940e7d72ce67f2102d0084a93bf
treef1e003c4de667aebe057e68634c8b0e58712f088
parentc51ab838f5323a375b7f7334644456b23e7532ca
ionic: support ethtool get_module_eeprom_by_page

Add support for the newer get_module_eeprom_by_page interface.
Only the upper half of the 256 byte page is available for
reading, and the firmware puts the two sections into the
extended sprom buffer, so a union is used over the extended
sprom buffer to make clear which page is to be accessed.

With get_module_eeprom_by_page implemented there is no need
for the older get_module_info or git_module_eeprom interfaces,
so remove them.

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-3-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