OSDN Git Service

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>
Thu, 11 Mar 2021 13:05:02 +0000 (14:05 +0100)
commit3399db28b4957a3229c67d080225d5203f849b2b
tree0b7b52e8a6861bd5fe3cc500a49d603592ed0e15
parent545bb7b5639838d87a31ce4d5bef1a979ed16c83
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