]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ionic: use ee->offset when returning sprom data
authorShannon Nelson <shannon.nelson@amd.com>
Thu, 12 Dec 2024 21:31:57 +0000 (13:31 -0800)
committerJakub Kicinski <kuba@kernel.org>
Sun, 15 Dec 2024 22:33:31 +0000 (14:33 -0800)
commitb096d62ba1323391b2db98b7704e2468cf3b1588
tree638d1985bd055bf0b2e357ad160b5f02873de8b0
parent746e6ae2e202b062b9deee7bd86d94937997ecd7
ionic: use ee->offset when returning sprom data

Some calls into ionic_get_module_eeprom() don't use a single
full buffer size, but instead multiple calls with an offset.
Teach our driver to use the offset correctly so we can
respond appropriately to the caller.

Fixes: 4d03e00a2140 ("ionic: Add initial ethtool support")
Signed-off-by: Shannon Nelson <shannon.nelson@amd.com>
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Link: https://patch.msgid.link/20241212213157.12212-4-shannon.nelson@amd.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/pensando/ionic/ionic_ethtool.c