
14 Dec
2020
14 Dec
'20
4:49 p.m.
Hi Chris,
On Sat, 12 Dec 2020 at 11:51, Chris Packham judge.packham@gmail.com wrote:
On Sun, 13 Dec 2020, 4:44 AM Simon Glass, sjg@chromium.org wrote:
Hi Joseph,
On Tue, 8 Dec 2020 at 00:32, Joseph Liu maxdog988@gmail.com wrote:
From: Joseph Liu kwliu@nuvoton.com
If DM_I2C is used, the command "i2c dev" will not reassign gd->cur_i2c_bus.
Add this bus option to change the active I2C bus.
Signed-off-by: Joseph Liu kwliu@nuvoton.com
drivers/gpio/pca953x.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-)
This driver should be converted to driver model.
It has been. See drivers/gpio/pca953x_gpio.c
I mean that it should use dm_i2c_read() instead of i2c_read(), so that the problems of an 'active' i2c bus go away. Also it should use devicetree.
Regards, Simon