]> git.karo-electronics.de Git - karo-tx-linux.git/commit
i2c-mux: Add support for device auto-detection
authorJean Delvare <khali@linux-fr.org>
Mon, 10 Sep 2012 00:08:48 +0000 (10:08 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 10 Sep 2012 00:10:05 +0000 (10:10 +1000)
commit93deac05917862c8baebd589fe0d3825a5a9dd6e
tree46616516742e8f691ed38d030f5e4d64c15a0fe1
parent7b1a7c79087790755ca372a3ae03e9cd204758c4
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