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)
committerWolfram Sang <wsa@kernel.org>
Wed, 8 Jun 2022 20:01:04 +0000 (22:01 +0200)
commit47d506d1a28fd10a9fb1f33df5622d88fae72095
tree327e9176985a0353181c73a3880b3d493666c443
parent29d2bff1c34ad3e413bcdaa81b88e209b308031d
i2c: npcm: Remove own slave addresses 2:10

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: 56a1485b102e ("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>
drivers/i2c/busses/i2c-npcm7xx.c