https://github.com/torvalds/linux
Revision 8947efc077168c53b84d039881a7c967086a248a authored by Tali Perry on 20 September 2020, 20:48:09 UTC, committed by Wolfram Sang on 27 September 2020, 18:05:27 UTC
Due to a HW issue, in some scenarios the LAST bit might remain set.
This will cause an unexpected NACK after reading 16 bytes on the next
read.

Example: if user tries to read from a missing device, get a NACK,
then if the next command is a long read ( > 16 bytes),
the master will stop reading after 16 bytes.
To solve this, if a command fails, check if LAST bit is still
set. If it does, reset the module.

Fixes: 56a1485b102e (i2c: npcm7xx: Add Nuvoton NPCM I2C controller driver)
Signed-off-by: Tali Perry <tali.perry1@gmail.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
1 parent a2bd970
History
Tip revision: 8947efc077168c53b84d039881a7c967086a248a authored by Tali Perry on 20 September 2020, 20:48:09 UTC
i2c: npcm7xx: Clear LAST bit after a failed transaction.
Tip revision: 8947efc
File Mode Size
Kconfig -rw-r--r-- 75.2 KB
Makefile -rw-r--r-- 1.2 KB
calibrate.c -rw-r--r-- 8.6 KB
do_mounts.c -rw-r--r-- 14.8 KB
do_mounts.h -rw-r--r-- 908 bytes
do_mounts_initrd.c -rw-r--r-- 3.4 KB
do_mounts_rd.c -rw-r--r-- 7.7 KB
init_task.c -rw-r--r-- 6.0 KB
initramfs.c -rw-r--r-- 13.9 KB
main.c -rw-r--r-- 36.9 KB
noinitramfs.c -rw-r--r-- 813 bytes
version.c -rw-r--r-- 1.3 KB

back to top