Re: [RFC v2] regmap: regmap-irq: Add main status register support

2018-12-18 Thread Matti Vaittinen
On Mon, Dec 17, 2018 at 05:32:44PM +, Mark Brown wrote: > On Fri, Dec 14, 2018 at 04:08:12PM +0200, Matti Vaittinen wrote: > > > This is draft for approach proposed by Mark here: > > http://lkml.iu.edu/hypermail/linux/kernel/1812.1/07117.html > > > Pretty untested and diff is done against

Re: [RFC v2] regmap: regmap-irq: Add main status register support

2018-12-17 Thread Mark Brown
On Fri, Dec 14, 2018 at 04:08:12PM +0200, Matti Vaittinen wrote: > This is draft for approach proposed by Mark here: > http://lkml.iu.edu/hypermail/linux/kernel/1812.1/07117.html > Pretty untested and diff is done against tree where the level active IRQ > support for regmap-irq was added. So

[RFC v2] regmap: regmap-irq: Add main status register support

2018-12-14 Thread Matti Vaittinen
There is bunch of devices with multiple logical blocks which can generate interrupts. It's not a rare case that the interrupt reason registers are arranged so that there is own status/ack/mask register for each logical block. In some devices there is also a 'main interrupt