forked fromtorvalds/linux
- Notifications
You must be signed in to change notification settings - Fork0
Commit8947efc
i2c: npcm7xx: Clear LAST bit after a failed transaction.
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 nextread.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 stillset. If it does, reset the module.Fixes:56a1485 (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 parenta2bd970 commit8947efc
1 file changed
+9
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2163 | 2163 | | |
2164 | 2164 | | |
2165 | 2165 | | |
| 2166 | + | |
| 2167 | + | |
| 2168 | + | |
| 2169 | + | |
| 2170 | + | |
| 2171 | + | |
| 2172 | + | |
| 2173 | + | |
| 2174 | + | |
2166 | 2175 | | |
2167 | 2176 | | |
2168 | 2177 | | |
| |||
0 commit comments
Comments
(0)