]> git.karo-electronics.de Git - karo-tx-linux.git/commit
i2c-mux: Add support for device auto-detection
authorJean Delvare <khali@linux-fr.org>
Tue, 25 Sep 2012 00:30:52 +0000 (10:30 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 25 Sep 2012 00:30:52 +0000 (10:30 +1000)
commitc3b121543d92e1b84b3b5734c27896ba88d6ad2b
treefe9991fe058fdd586d8bab8d05c6b0bbf2b8a57b
parent979570e02981d4a8fc20b3cc8fd651856c98ee9d
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