[RFC PATCH 0/1] i2c: i2c-mux-pca954x: Add interrupt controller support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



G'day All,

I'm seeking some feedback on this. Not really happy with it but can't think
of a good solution.  

This patch adds support to read the irq status register from the a PCA9543
i2c mux. This chip has two active low interrupt inputs with are combined    
into a single active low interrupt output. It does not provide the ability 
to mask interrupts. Only to read which interrupt line is active.

On the hardware I'm interfacing too I have an ltc1760 sbs manager on each 
multiplexed bus. On booting these may assert there SMBALERT irq outputs 
immediately, again these devices have no ability to mask there interrupt. 
So the irq is asserted during boot until the ltc1760 driver is started.
And there's no way to mask it. My work around is to enable the irq until both
irq pins are unmasked. Not sure what else to do. The masking could be a dts
property to make it configurable.

ltc1760 driver is currently being review for submission in 
Karl-Heinz Schneider <karl-heinz@xxxxxxxxxxxxxxxxx> patch series.

Appreciate any feedback on what could be done here.


Phil Reid (1):
  i2c: i2c-mux-pca954x: Add interrupt controller support.

 drivers/i2c/muxes/i2c-mux-pca954x.c | 116 ++++++++++++++++++++++++++++++++++++
 1 file changed, 116 insertions(+)

-- 
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



[Index of Archives]     [Linux GPIO]     [Linux SPI]     [Linux Hardward Monitoring]     [LM Sensors]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux