]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: mux: pca954x: Add interrupt controller support
authorPhil Reid <preid@electromag.com.au>
Wed, 25 Jan 2017 01:31:08 +0000 (09:31 +0800)
committerPeter Rosin <peda@axentia.se>
Fri, 10 Feb 2017 07:23:51 +0000 (08:23 +0100)
commit3fdc928f7d5a951af6e6688ed61df3547c477381
treefa8a69ca6f27bed885bed0005cc6a04cafe1768d
parent02ac212aef8fa0638e8c3f01efd06c6d79e29897
i2c: mux: pca954x: Add interrupt controller support

Various muxes can aggregate multiple interrupts from each i2c bus.
All of the muxes with interrupt support combine the active low irq lines
using an internal 'and' function and generate a combined active low
output. The muxes do provide the ability to read a control register to
determine which irq is active. By making the mux an irq controller isr
latency can potentially be reduced by reading the status register and
then only calling the registered isr on that bus segment.

As there is no irq masking on the mux irq are disabled until irq_unmask is
called at least once.

Signed-off-by: Phil Reid <preid@electromag.com.au>
Signed-off-by: Peter Rosin <peda@axentia.se>
drivers/i2c/muxes/i2c-mux-pca954x.c