]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: npcm: Remove own slave addresses 2:10
authorTali Perry <tali.perry1@gmail.com>
Wed, 25 May 2022 03:23:38 +0000 (11:23 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Aug 2022 12:23:18 +0000 (14:23 +0200)
commit1420f5b13952ce4949322ab2681a75c4f6df4026
tree7952a159ab2dcc14102d69482f06b62600251af1
parent2c7c0f6debe0d3cb7249cfa6709215869f6c1df2
i2c: npcm: Remove own slave addresses 2:10

[ Upstream commit 380469126d3270133a604ea54599d62366782d5b ]

NPCM can support up to 10 own slave addresses. In practice, only one
address is actually being used. In order to access addresses 2 and above,
need to switch register banks. The switch needs spinlock.
To avoid using spinlock for this useless feature removed support of SA >=
2. Also fix returned slave event enum.

Remove some comment since the bank selection is not required. The bank
selection is not required since the supported slave addresses are reduced.

Fixes: 58fafb9526b2 ("i2c: npcm7xx: Add Nuvoton NPCM I2C controller driver")
Signed-off-by: Tali Perry <tali.perry1@gmail.com>
Signed-off-by: Tyrone Ting <kfting@nuvoton.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/i2c/busses/i2c-npcm7xx.c