linux-i2c.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC PATCH 0/1] i2c: i2c-mux-pca954x: Add interrupt controller support
@ 2016-07-27  3:05 Phil Reid
  2016-07-27  3:05 ` [RFC PATCH 1/1] " Phil Reid
  0 siblings, 1 reply; 8+ messages in thread
From: Phil Reid @ 2016-07-27  3:05 UTC (permalink / raw)
  To: wsa, peda, linux-i2c; +Cc: Phil Reid

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@schneider-inet.de> 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

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2016-08-01  8:52 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-27  3:05 [RFC PATCH 0/1] i2c: i2c-mux-pca954x: Add interrupt controller support Phil Reid
2016-07-27  3:05 ` [RFC PATCH 1/1] " Phil Reid
2016-07-27  5:32   ` Peter Rosin
2016-07-28  2:44     ` Phil Reid
2016-07-29  5:48       ` Peter Rosin
2016-08-01  6:25         ` Phil Reid
2016-08-01  8:22           ` Peter Rosin
2016-08-01  8:52             ` Phil Reid

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).