linux/drivers/misc/eeprom
Markus Perkins b6cfbd4701 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:20:34 -05:00
..
at24.c eeprom: at24: Drop of_match_ptr() and ACPI_PTR() protections 2025-03-03 12:08:24 +01:00
at25.c eeprom: at25: make FRAM device ID error message more precise 2025-09-06 15:58:23 +02:00
digsy_mtc_eeprom.c eeprom: digsy_mtc: Make GPIO lookup table match the device 2025-02-20 15:21:00 +01:00
ee1004.c eeprom: ee1004: Check chip before probing 2025-02-20 15:25:18 +01:00
eeprom_93cx6.c misc: eeprom: eeprom_93cx6: Switch to BIT() macro 2024-10-11 08:42:03 +02:00
eeprom_93xx46.c misc: eeprom: Fix EWEN/EWDS/ERAL commands for 93xx56 and 93xx66 2026-03-04 07:20:34 -05:00
idt_89hpesx.c misc: eeprom/idt_89hpesx: use per-client debugfs directory 2025-04-15 16:14:30 +02:00
Kconfig eeprom: add driver for ST M24LR series RFID/NFC EEPROM chips 2025-08-19 12:51:22 +02:00
m24lr.c misc: eeprom/m24lr: Remove unneeded semicolon 2025-09-06 15:58:18 +02:00
Makefile eeprom: add driver for ST M24LR series RFID/NFC EEPROM chips 2025-08-19 12:51:22 +02:00
max6875.c sysfs: treewide: switch back to bin_attribute::read()/write() 2025-06-17 10:44:13 +02:00