linux/drivers/i2c/muxes
Robert Shearman f1fb64b04b i2c: mux: pca954x: allow management of device idle state via sysfs
The behaviour, by default, to not deselect after each transfer is
unsafe when there is a device with an address that conflicts with
another device on another mux on the same parent bus, and it
may not be convenient to use devicetree to set the deselect mux,
e.g. when running on x86_64 when ACPI is used to discover most of the
device hierarchy.

Therefore, provide the ability to set the idle state behaviour using a
new sysfs file, idle_state as a complement to the method of
instantiating the device via sysfs. The possible behaviours are
disconnect, i.e. to deselect all channels from the mux, as-is (the
default), i.e. leave the last channel selected, and set a
predetermined channel.

The current behaviour of leaving the channel as-is after each
transaction is preserved.

Signed-off-by: Robert Shearman <robert.shearman@att.com>
Signed-off-by: Peter Rosin <peda@axentia.se>
2019-04-21 23:44:37 +02:00
..
Kconfig i2c: mux: pca954x: add support for NXP PCA984x family 2017-12-30 23:12:34 +01:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
i2c-arb-gpio-challenge.c i2c: arb: gpio-challenge: stop double error reporting 2017-04-03 14:07:32 +02:00
i2c-demux-pinctrl.c i2c: mux: demux-pinctrl: use proper parent device for demux adapter 2018-05-24 13:45:04 +02:00
i2c-mux-gpio.c gpiolib: Pass array info to get/set array functions 2018-09-13 11:16:54 +02:00
i2c-mux-gpmux.c i2c: Convert to using %pOFn instead of device_node.name 2018-10-05 14:10:40 +02:00
i2c-mux-ltc4306.c i2c: mux: ltc4306: simplify code to reach the adapter 2018-10-08 23:44:27 +02:00
i2c-mux-mlxcpld.c i2c: mux: mlxcpld: simplify code to reach the adapter 2018-10-08 23:44:28 +02:00
i2c-mux-pca954x.c i2c: mux: pca954x: allow management of device idle state via sysfs 2019-04-21 23:44:37 +02:00
i2c-mux-pca9541.c i2c: mux: pca9541: remove support for unused platform data 2019-04-21 23:44:37 +02:00
i2c-mux-pinctrl.c i2c: mux: pinctrl: potential NULL dereference on error 2017-08-17 14:19:56 +02:00
i2c-mux-reg.c Merge branch 'i2c/for-4.18' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux 2018-06-14 16:21:46 +09:00