misc: eeprom_93xx46: Add quirk to support Microchip 93LC46B eeprom
authorAswath Govindraju <a-govindraju@ti.com>
Tue, 5 Jan 2021 10:58:12 +0000 (16:28 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Jan 2021 17:52:12 +0000 (18:52 +0100)
commitf6f1f8e6e3eea25f539105d48166e91f0ab46dd1
treec35ff34709cdfb1bf2949e9a289e7632f2c86d4c
parent6805822954f0fd24de4d6febc4c84afdcb6f9baa
misc: eeprom_93xx46: Add quirk to support Microchip 93LC46B eeprom

A dummy zero bit is sent preceding the data during a read transfer by the
Microchip 93LC46B eeprom (section 2.7 of[1]). This results in right shift
of data during a read. In order to ignore this bit a quirk can be added to
send an extra zero bit after the read address.

Add a quirk to ignore the zero bit sent before data by adding a zero bit
after the read address.

[1] - https://www.mouser.com/datasheet/2/268/20001749K-277859.pdf

Signed-off-by: Aswath Govindraju <a-govindraju@ti.com>
Link: https://lore.kernel.org/r/20210105105817.17644-3-a-govindraju@ti.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/eeprom/eeprom_93xx46.c
include/linux/eeprom_93xx46.h