]> git.karo-electronics.de Git - karo-tx-linux.git/commit
i2c-mux: Add support for device auto-detection
authorJean Delvare <khali@linux-fr.org>
Thu, 13 Sep 2012 23:03:51 +0000 (09:03 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 13 Sep 2012 23:03:51 +0000 (09:03 +1000)
commit4fd2b4a440f8208b26e2d9187900768d32b4b3b8
treeb920853482644e2cb2b49830eb3232c35bf16c1a
parent6a2a2b85db0edf92ace1198a0a35b99ba201388c
i2c-mux: Add support for device auto-detection

Let I2C bus segments behind multiplexers have a class. This allows for
device auto-detection on these segments. As long as parent segments
don't share the same class, it should be fine.

I implemented support in drivers i2c-mux-gpio and i2c-mux-pca954x. I
left i2c-mux-pca9541 and i2c-mux-pinctrl alone for the moment as I
don't know if this feature makes sense for the use cases of these
drivers.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Cc: Peter Korsgaard <peter.korsgaard@barco.com>
Cc: David Daney <david.daney@cavium.com>
Cc: Michael Lawnick <ml.lawnick@gmx.de>
Cc: Rodolfo Giometti <giometti@linux.it>
drivers/i2c/i2c-mux.c
drivers/i2c/muxes/i2c-mux-gpio.c
drivers/i2c/muxes/i2c-mux-pca9541.c
drivers/i2c/muxes/i2c-mux-pca954x.c
drivers/i2c/muxes/i2c-mux-pinctrl.c
include/linux/i2c-mux-gpio.h
include/linux/i2c-mux.h
include/linux/i2c/pca954x.h