Re: [PATCH 1/2] regmap: irq: Add support for interrupt type

2013-02-14 Thread Mark Brown
On Thu, Feb 14, 2013 at 04:31:50PM +0530, Laxman Dewangan wrote: > is this mean we should have variable like > .supported_iflags which capture what it is supported or not. > And then irq_type_val[MAX_REGMAP_IRQ_TYPE] as array and define the > REGMAP_IRQ_TYPE_[FALLING/RISING/BOTH] as index and

Re: [PATCH 1/2] regmap: irq: Add support for interrupt type

2013-02-14 Thread Laxman Dewangan
On Wednesday 13 February 2013 07:24 PM, Mark Brown wrote: * PGP Signed by an unknown key On Wed, Feb 13, 2013 at 06:44:49PM +0530, Laxman Dewangan wrote: Most of the MFD module have the GPIO and gpio interrupt is enabled/disabled through the rising/falling edge type. There is no specific mask

Re: [PATCH 1/2] regmap: irq: Add support for interrupt type

2013-02-14 Thread Laxman Dewangan
On Wednesday 13 February 2013 07:24 PM, Mark Brown wrote: * PGP Signed by an unknown key On Wed, Feb 13, 2013 at 06:44:49PM +0530, Laxman Dewangan wrote: Most of the MFD module have the GPIO and gpio interrupt is enabled/disabled through the rising/falling edge type. There is no specific mask

Re: [PATCH 1/2] regmap: irq: Add support for interrupt type

2013-02-14 Thread Mark Brown
On Thu, Feb 14, 2013 at 04:31:50PM +0530, Laxman Dewangan wrote: is this mean we should have variable like .supported_iflags which capture what it is supported or not. And then irq_type_val[MAX_REGMAP_IRQ_TYPE] as array and define the REGMAP_IRQ_TYPE_[FALLING/RISING/BOTH] as index and client

Re: [PATCH 1/2] regmap: irq: Add support for interrupt type

2013-02-13 Thread Mark Brown
On Wed, Feb 13, 2013 at 06:44:49PM +0530, Laxman Dewangan wrote: > Most of the MFD module have the GPIO and gpio interrupt is > enabled/disabled through the rising/falling edge type. There > is no specific mask enable/disable registers for GPIO submodules. > > Extend the regmap irq to support the

[PATCH 1/2] regmap: irq: Add support for interrupt type

2013-02-13 Thread Laxman Dewangan
Most of the MFD module have the GPIO and gpio interrupt is enabled/disabled through the rising/falling edge type. There is no specific mask enable/disable registers for GPIO submodules. Extend the regmap irq to support the irq_set_type() so that gpio submodule of MFD devices can use the

[PATCH 1/2] regmap: irq: Add support for interrupt type

2013-02-13 Thread Laxman Dewangan
Most of the MFD module have the GPIO and gpio interrupt is enabled/disabled through the rising/falling edge type. There is no specific mask enable/disable registers for GPIO submodules. Extend the regmap irq to support the irq_set_type() so that gpio submodule of MFD devices can use the

Re: [PATCH 1/2] regmap: irq: Add support for interrupt type

2013-02-13 Thread Mark Brown
On Wed, Feb 13, 2013 at 06:44:49PM +0530, Laxman Dewangan wrote: Most of the MFD module have the GPIO and gpio interrupt is enabled/disabled through the rising/falling edge type. There is no specific mask enable/disable registers for GPIO submodules. Extend the regmap irq to support the