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
Documentation
LICENSES
arch
block
certs
crypto
drivers
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
usr
virt
.clang-format -rw-r--r-- 16.2 KB
.cocciconfig -rw-r--r-- 59 bytes
.get_maintainer.ignore -rw-r--r-- 71 bytes
.gitattributes -rw-r--r-- 62 bytes
.gitignore -rw-r--r-- 1.8 KB
.mailmap -rw-r--r-- 17.1 KB
COPYING -rw-r--r-- 496 bytes
CREDITS -rw-r--r-- 97.4 KB
Kbuild -rw-r--r-- 1.3 KB
Kconfig -rw-r--r-- 555 bytes
MAINTAINERS -rw-r--r-- 557.1 KB
Makefile -rw-r--r-- 61.7 KB
README -rw-r--r-- 727 bytes

README

back to top