Re: [PATCH V4 1/6] regmap: irq: add apis to unmap the mapped irq

2016-02-09 Thread Laxman Dewangan
On Tuesday 09 February 2016 04:57 PM, Mark Brown wrote: * PGP Signed by an unknown key On Tue, Feb 09, 2016 at 02:38:28PM +0530, Laxman Dewangan wrote: On Tuesday 09 February 2016 10:46 AM, Laxman Dewangan wrote: Do we need to dispose all virtual irq in regmap_del_irq_chip() before actually r

Re: [PATCH V4 1/6] regmap: irq: add apis to unmap the mapped irq

2016-02-09 Thread Mark Brown
On Tue, Feb 09, 2016 at 02:38:28PM +0530, Laxman Dewangan wrote: > On Tuesday 09 February 2016 10:46 AM, Laxman Dewangan wrote: > >Do we need to dispose all virtual irq in regmap_del_irq_chip() before > >actually removing domain? > >This means we need to store the created virq in regmap_irq_chip_

Re: [PATCH V4 1/6] regmap: irq: add apis to unmap the mapped irq

2016-02-09 Thread Laxman Dewangan
On Tuesday 09 February 2016 10:46 AM, Laxman Dewangan wrote: On Monday 08 February 2016 11:49 PM, Mark Brown wrote: * PGP Signed by an unknown key On Mon, Feb 08, 2016 at 10:26:20PM +0530, Laxman Dewangan wrote: So fix need to go in the irq_domain_remove() to unamp before actually destroyin

Re: [PATCH V4 1/6] regmap: irq: add apis to unmap the mapped irq

2016-02-08 Thread Laxman Dewangan
On Monday 08 February 2016 11:49 PM, Mark Brown wrote: * PGP Signed by an unknown key On Mon, Feb 08, 2016 at 10:26:20PM +0530, Laxman Dewangan wrote: So fix need to go in the irq_domain_remove() to unamp before actually destroying the irq domain? That's one option, but you could also do thi

Re: [PATCH V4 1/6] regmap: irq: add apis to unmap the mapped irq

2016-02-08 Thread Mark Brown
On Mon, Feb 08, 2016 at 10:26:20PM +0530, Laxman Dewangan wrote: > Adding Thomas in the discussion. > >This does not explain why anyone would ever want to use this interface > >(which was my question), why would anyone ever want to do this as a > >separate step? > OK, so you want to say that irq_

Re: [PATCH V4 1/6] regmap: irq: add apis to unmap the mapped irq

2016-02-08 Thread Laxman Dewangan
Adding Thomas in the discussion. On Monday 08 February 2016 10:29 PM, Mark Brown wrote: * PGP Signed by an unknown key On Mon, Feb 08, 2016 at 10:08:28PM +0530, Laxman Dewangan wrote: On Monday 08 February 2016 08:25 PM, Mark Brown wrote: On Sat, Feb 06, 2016 at 08:07:22PM +0530, Laxman Dewan

Re: [PATCH V4 1/6] regmap: irq: add apis to unmap the mapped irq

2016-02-08 Thread Mark Brown
On Mon, Feb 08, 2016 at 10:08:28PM +0530, Laxman Dewangan wrote: > On Monday 08 February 2016 08:25 PM, Mark Brown wrote: > >On Sat, Feb 06, 2016 at 08:07:22PM +0530, Laxman Dewangan wrote: > >>Before removing irq domains, it is require to unmap all > >>mapped interrupt from that domain. Currently

Re: [PATCH V4 1/6] regmap: irq: add apis to unmap the mapped irq

2016-02-08 Thread Laxman Dewangan
On Monday 08 February 2016 08:25 PM, Mark Brown wrote: * PGP Signed by an unknown key On Sat, Feb 06, 2016 at 08:07:22PM +0530, Laxman Dewangan wrote: Before removing irq domains, it is require to unmap all mapped interrupt from that domain. Currently there is API to map the interrupt on chip

Re: [PATCH V4 1/6] regmap: irq: add apis to unmap the mapped irq

2016-02-08 Thread Mark Brown
On Sat, Feb 06, 2016 at 08:07:22PM +0530, Laxman Dewangan wrote: > Before removing irq domains, it is require to unmap all > mapped interrupt from that domain. Currently there is API > to map the interrupt on chip as regmap_irq_get_virq() for > creating mapping. Add equivalent API to dispose the m

[PATCH V4 1/6] regmap: irq: add apis to unmap the mapped irq

2016-02-06 Thread Laxman Dewangan
Before removing irq domains, it is require to unmap all mapped interrupt from that domain. Currently there is API to map the interrupt on chip as regmap_irq_get_virq() for creating mapping. Add equivalent API to dispose the mapped irq in irq domains. Signed-off-by: Laxman Dewangan CC: Krzysztof K