linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mfd: max77693: Fix up bug of wrong interrupt number
@ 2013-10-10  1:05 Chanwoo Choi
  2013-11-04  1:58 ` Chanwoo Choi
  0 siblings, 1 reply; 4+ messages in thread
From: Chanwoo Choi @ 2013-10-10  1:05 UTC (permalink / raw)
  To: sameo, lee.jones; +Cc: linux-kernel, kyungmin.park, Chanwoo Choi

The max77693 MFD device use irq domain method which has hardware interrupt number
and virtual interrupt number getting through irq domain mapping. This patch
use hardware interrupt number instead of virtual interrupt number to get
struct irq_data.

Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
---
 drivers/mfd/max77693-irq.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/mfd/max77693-irq.c b/drivers/mfd/max77693-irq.c
index 1029d01..66b58fe 100644
--- a/drivers/mfd/max77693-irq.c
+++ b/drivers/mfd/max77693-irq.c
@@ -128,7 +128,8 @@ static void max77693_irq_sync_unlock(struct irq_data *data)
 static const inline struct max77693_irq_data *
 irq_to_max77693_irq(struct max77693_dev *max77693, int irq)
 {
-	return &max77693_irqs[irq];
+	struct irq_data *data = irq_get_irq_data(irq);
+	return &max77693_irqs[data->hwirq];
 }
 
 static void max77693_irq_mask(struct irq_data *data)
-- 
1.8.0


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

* Re: [PATCH] mfd: max77693: Fix up bug of wrong interrupt number
  2013-10-10  1:05 [PATCH] mfd: max77693: Fix up bug of wrong interrupt number Chanwoo Choi
@ 2013-11-04  1:58 ` Chanwoo Choi
  2013-11-04  8:42   ` Samuel Ortiz
  0 siblings, 1 reply; 4+ messages in thread
From: Chanwoo Choi @ 2013-11-04  1:58 UTC (permalink / raw)
  To: Chanwoo Choi; +Cc: sameo, lee.jones, linux-kernel, kyungmin.park

Ping!

Thanks,
Chanwoo Choi

On 10/10/2013 10:05 AM, Chanwoo Choi wrote:
> The max77693 MFD device use irq domain method which has hardware interrupt number
> and virtual interrupt number getting through irq domain mapping. This patch
> use hardware interrupt number instead of virtual interrupt number to get
> struct irq_data.
> 
> Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
> ---
>  drivers/mfd/max77693-irq.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/drivers/mfd/max77693-irq.c b/drivers/mfd/max77693-irq.c
> index 1029d01..66b58fe 100644
> --- a/drivers/mfd/max77693-irq.c
> +++ b/drivers/mfd/max77693-irq.c
> @@ -128,7 +128,8 @@ static void max77693_irq_sync_unlock(struct irq_data *data)
>  static const inline struct max77693_irq_data *
>  irq_to_max77693_irq(struct max77693_dev *max77693, int irq)
>  {
> -	return &max77693_irqs[irq];
> +	struct irq_data *data = irq_get_irq_data(irq);
> +	return &max77693_irqs[data->hwirq];
>  }
>  
>  static void max77693_irq_mask(struct irq_data *data)
> 


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

* Re: [PATCH] mfd: max77693: Fix up bug of wrong interrupt number
  2013-11-04  1:58 ` Chanwoo Choi
@ 2013-11-04  8:42   ` Samuel Ortiz
  2013-11-04 10:01     ` Chanwoo Choi
  0 siblings, 1 reply; 4+ messages in thread
From: Samuel Ortiz @ 2013-11-04  8:42 UTC (permalink / raw)
  To: Chanwoo Choi; +Cc: lee.jones, linux-kernel, kyungmin.park

Hi Chanwoo,

On Mon, Nov 04, 2013 at 10:58:20AM +0900, Chanwoo Choi wrote:
> Ping!
> 
> Thanks,
> Chanwoo Choi
> 
> On 10/10/2013 10:05 AM, Chanwoo Choi wrote:
> > The max77693 MFD device use irq domain method which has hardware interrupt number
> > and virtual interrupt number getting through irq domain mapping. This patch
> > use hardware interrupt number instead of virtual interrupt number to get
> > struct irq_data.
> > 
> > Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
> > Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
> > ---
> >  drivers/mfd/max77693-irq.c | 3 ++-
> >  1 file changed, 2 insertions(+), 1 deletion(-)
Patch applied, thanks.

Cheers,
Samuel.

-- 
Intel Open Source Technology Centre
http://oss.intel.com/

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

* Re: [PATCH] mfd: max77693: Fix up bug of wrong interrupt number
  2013-11-04  8:42   ` Samuel Ortiz
@ 2013-11-04 10:01     ` Chanwoo Choi
  0 siblings, 0 replies; 4+ messages in thread
From: Chanwoo Choi @ 2013-11-04 10:01 UTC (permalink / raw)
  To: Samuel Ortiz; +Cc: lee.jones, linux-kernel, kyungmin.park

On 11/04/2013 05:42 PM, Samuel Ortiz wrote:
> Hi Chanwoo,
> 
> On Mon, Nov 04, 2013 at 10:58:20AM +0900, Chanwoo Choi wrote:
>> Ping!
>>
>> Thanks,
>> Chanwoo Choi
>>
>> On 10/10/2013 10:05 AM, Chanwoo Choi wrote:
>>> The max77693 MFD device use irq domain method which has hardware interrupt number
>>> and virtual interrupt number getting through irq domain mapping. This patch
>>> use hardware interrupt number instead of virtual interrupt number to get
>>> struct irq_data.
>>>
>>> Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
>>> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
>>> ---
>>>  drivers/mfd/max77693-irq.c | 3 ++-
>>>  1 file changed, 2 insertions(+), 1 deletion(-)
> Patch applied, thanks.
> 

Thanks,

Best Regards,
Chanwoo Choi


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

end of thread, other threads:[~2013-11-04 10:01 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-10-10  1:05 [PATCH] mfd: max77693: Fix up bug of wrong interrupt number Chanwoo Choi
2013-11-04  1:58 ` Chanwoo Choi
2013-11-04  8:42   ` Samuel Ortiz
2013-11-04 10:01     ` Chanwoo Choi

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