net: txgbe: Fix to calculate EEPROM checksum for AML devices
authorJiawen Wu <jiawenwu@trustnetic.com>
Tue, 13 May 2025 02:10:07 +0000 (10:10 +0800)
committerJakub Kicinski <kuba@kernel.org>
Thu, 15 May 2025 02:26:55 +0000 (19:26 -0700)
commit141a8dec88ba257429965f163dd16e005f1a9718
tree7bc13afd48f99e98f10896e4612f12a8c05b3970
parent865ab2461375e3a5a2526f91f9a9f17b8931bc9e
net: txgbe: Fix to calculate EEPROM checksum for AML devices

In the new firmware version, the shadow ram reserves some space to store
I2C information, so the checksum calculation needs to skip this section.
Otherwise, the driver will fail to probe because the invalid EEPROM
checksum.

Fixes: 2e5af6b2ae85 ("net: txgbe: Add basic support for new AML devices")
Signed-off-by: Jiawen Wu <jiawenwu@trustnetic.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/1C6BF7A937237F5A+20250513021009.145708-2-jiawenwu@trustnetic.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/wangxun/txgbe/txgbe_hw.c
drivers/net/ethernet/wangxun/txgbe/txgbe_type.h