linux/drivers/misc/eeprom
Markus Perkins 4d55fe3cd7 misc: eeprom: Fix EWEN/EWDS/ERAL commands for 93xx56 and 93xx66
[ Upstream commit b54c82d6cb ]

commit 14374fbb3f ("misc: eeprom_93xx46: Add new 93c56 and 93c66
compatible strings") added support for 93xx56 and 93xx66 eeproms, but
didn't take into account that the write enable/disable + erase all
commands are hardcoded for the 6-bit address of the 93xx46.

This commit fixes the command word generation by increasing the number
of shifts as the address field grows, keeping the command intact.

Also, the check for 8-bit or 16-bit mode is no longer required as this
is already taken into account in the edev->addrlen field.

Signed-off-by: Markus Perkins <markus@notsyncing.net>
Link: https://patch.msgid.link/20251202104823.429869-3-markus@notsyncing.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2026-03-04 07:21:24 -05:00
..
at24.c eeprom: at24: Add support for Microchip 24AA025E48/24AA025E64 EEPROMs 2024-07-03 11:55:59 +02:00
at25.c eeprom: at25: drop unneeded MODULE_ALIAS 2024-04-29 11:14:00 +02:00
digsy_mtc_eeprom.c eeprom: digsy_mtc: Make GPIO lookup table match the device 2025-03-13 13:02:16 +01:00
ee1004.c eeprom: ee1004: Check chip before probing 2025-05-29 11:02:43 +02:00
eeprom_93cx6.c misc: eeprom: eeprom_93cx6: Add quirk for extra read clock cycle 2024-12-14 20:04:09 +01:00
eeprom_93xx46.c misc: eeprom: Fix EWEN/EWDS/ERAL commands for 93xx56 and 93xx66 2026-03-04 07:21:24 -05:00
idt_89hpesx.c eeprom: Drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-06-04 17:47:27 +02:00
Kconfig eeprom: ee1004: Add nvmem support 2024-07-04 12:02:56 +02:00
Makefile eeprom: Remove deprecated legacy eeprom driver 2023-10-05 11:09:40 +02:00
max6875.c eeprom: Drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-06-04 17:47:27 +02:00