]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net: lan743x: Modify the EEPROM and OTP size for PCI1xxxx devices
authorRengarajan S <rengarajan.s@microchip.com>
Fri, 23 May 2025 17:33:26 +0000 (23:03 +0530)
committerJakub Kicinski <kuba@kernel.org>
Wed, 28 May 2025 01:18:50 +0000 (18:18 -0700)
commit3b9935586a9b54d2da27901b830d3cf46ad66a1e
treeccb17b305f77e88e188f6d0080edb34bdc986e1c
parent7a91722e0dd47bc5d1b4b8416966bf993c93a72f
net: lan743x: Modify the EEPROM and OTP size for PCI1xxxx devices

Maximum OTP and EEPROM size for hearthstone PCI1xxxx devices are 8 Kb
and 64 Kb respectively. Adjust max size definitions and return correct
EEPROM length based on device. Also prevent out-of-bound read/write.

Signed-off-by: Rengarajan S <rengarajan.s@microchip.com>
Link: https://patch.msgid.link/20250523173326.18509-1-rengarajan.s@microchip.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/microchip/lan743x_ethtool.c