misc: eeprom_93xx46: Add quirk to support Microchip 93LC46B eeprom
commitc52e592d413098e366a18d8e398edaa42971f33b
authorAswath Govindraju <a-govindraju@ti.com>
Tue, 5 Jan 2021 10:58:12 +0000 (5 16:28 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 11 Mar 2021 12:48:03 +0000 (11 13:48 +0100)
tree2392aff5d6658841113935731b74e8fa8dba5f27
parent60fa1eaeb18eb606275c8af402c32d08cbc804f1
misc: eeprom_93xx46: Add quirk to support Microchip 93LC46B eeprom

[ Upstream commit f6f1f8e6e3eea25f539105d48166e91f0ab46dd1 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/misc/eeprom/eeprom_93xx46.c
include/linux/eeprom_93xx46.h