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 latenct can potentially be reduced by reading the status register and then only calling the registered isr on that bus segment. In addition an additional enable mask is added to work around devices that assert irq immediately before being setup by disabling the irq from the mux until all devices are registered. Changes from v4: - p4: Change definition of irq_mask_enable to an array. - p4: Removed acks due to change requested by Peter - p5: Parse array of enables. Currently only supports 1 chip But dt specification will allow expansion to handle multple irq consume chips to be registered on a bus segment - p5: Fix up logic related to enabling and disable irq's. Use a flag to indicate when irq has been enabled. Changes from v3: - p3: Add spin lock to irq mask / unmask. - p4: Add Rob's ack. Changes from v2: - p1: Added Acked-by - p5: fixup 2 typos Changes from v1: - Update for new ACPI table - Fix typo in documentation - Fix typo in function names - Fix typo in irq name - Added spaces around '+' / '=' - Change goto label names - Change property name from i2c-mux-irq-mask-en to nxp,irq-mask-enable - Change variable name irq_mask_en to irq_mask_enable - Add commentt about irq_mask_enable - Added Acked-By's Phil Reid (5): i2c: mux: pca954x: Add missing pca9542 definition to chip_desc dt: bindings: i2c-mux-pca954x: Add documentation for interrupt controller i2c: mux: pca954x: Add interrupt controller support dt: bindings: i2c-mux-pca954x: Add documentation for nxp,irq-mask-enable i2c: mux: pca954x: Add irq-mask-enable to delay enabling irqs .../devicetree/bindings/i2c/i2c-mux-pca954x.txt | 17 +- drivers/i2c/muxes/i2c-mux-pca954x.c | 177 ++++++++++++++++++++- 2 files changed, 189 insertions(+), 5 deletions(-) -- 1.8.3.1 -- To unsubscribe from this list: send the line "unsubscribe linux-i2c" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html