* [PATCH] MXC_NAND: Add correct dev_id parameter to free_irq() calls.
@ 2009-05-08 19:57 Magnus Lilja
2009-05-14 7:53 ` Sascha Hauer
2009-05-15 12:15 ` Artem Bityutskiy
0 siblings, 2 replies; 4+ messages in thread
From: Magnus Lilja @ 2009-05-08 19:57 UTC (permalink / raw)
To: linux-mtd; +Cc: s.hauer
Make sure to pass the same dev_id data to free_irq() that was
used when calling request_irq(), otherwise we get a warning about
freeing an already free IRQ.
Signed-off-by: Magnus Lilja <lilja.magnus@gmail.com>
---
For -rc perhaps?
Got the following warning prior to fixing this:
WARNING: at /opt/git/linux-2.6/kernel/irq/manage.c:736 __free_irq+0x88/
0x1ac()
Trying to free already-free IRQ 33
Modules linked in: mxc_nand(-)
[<c0025660>] (unwind_backtrace+0x0/0xd4) from [<c0036860>] (warn_slowpath+0x68/0
x8c)
[<c0036860>] (warn_slowpath+0x68/0x8c) from [<c0060324>] (__free_irq+0x88/0x1ac)
[<c0060324>] (__free_irq+0x88/0x1ac) from [<c0060454>] (free_irq+0xc/0x18)
[<c0060454>] (free_irq+0xc/0x18) from [<bf000c24>] (mxcnd_remove+0x30/0x48 [mxc_
nand])
unwind: Index not found bf000c24
drivers/mtd/nand/mxc_nand.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/mtd/nand/mxc_nand.c b/drivers/mtd/nand/mxc_nand.c
index f3548d0..8a93913 100644
--- a/drivers/mtd/nand/mxc_nand.c
+++ b/drivers/mtd/nand/mxc_nand.c
@@ -981,7 +981,7 @@ static int __init mxcnd_probe(struct platform_device *pdev)
return 0;
escan:
- free_irq(host->irq, NULL);
+ free_irq(host->irq, host);
eirq:
iounmap(host->regs);
eres:
@@ -1001,7 +1001,7 @@ static int __devexit mxcnd_remove(struct platform_device *pdev)
platform_set_drvdata(pdev, NULL);
nand_release(&host->mtd);
- free_irq(host->irq, NULL);
+ free_irq(host->irq, host);
iounmap(host->regs);
kfree(host);
--
1.5.6
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] MXC_NAND: Add correct dev_id parameter to free_irq() calls.
2009-05-08 19:57 [PATCH] MXC_NAND: Add correct dev_id parameter to free_irq() calls Magnus Lilja
@ 2009-05-14 7:53 ` Sascha Hauer
2009-05-15 12:16 ` Artem Bityutskiy
2009-05-15 12:15 ` Artem Bityutskiy
1 sibling, 1 reply; 4+ messages in thread
From: Sascha Hauer @ 2009-05-14 7:53 UTC (permalink / raw)
To: Magnus Lilja; +Cc: linux-mtd
Artem,
Can you pickup this one aswell?
Sascha
On Fri, May 08, 2009 at 09:57:47PM +0200, Magnus Lilja wrote:
> Make sure to pass the same dev_id data to free_irq() that was
> used when calling request_irq(), otherwise we get a warning about
> freeing an already free IRQ.
>
> Signed-off-by: Magnus Lilja <lilja.magnus@gmail.com>
> ---
>
> For -rc perhaps?
>
> Got the following warning prior to fixing this:
> WARNING: at /opt/git/linux-2.6/kernel/irq/manage.c:736 __free_irq+0x88/
> 0x1ac()
> Trying to free already-free IRQ 33
> Modules linked in: mxc_nand(-)
> [<c0025660>] (unwind_backtrace+0x0/0xd4) from [<c0036860>] (warn_slowpath+0x68/0
> x8c)
> [<c0036860>] (warn_slowpath+0x68/0x8c) from [<c0060324>] (__free_irq+0x88/0x1ac)
> [<c0060324>] (__free_irq+0x88/0x1ac) from [<c0060454>] (free_irq+0xc/0x18)
> [<c0060454>] (free_irq+0xc/0x18) from [<bf000c24>] (mxcnd_remove+0x30/0x48 [mxc_
> nand])
> unwind: Index not found bf000c24
>
> drivers/mtd/nand/mxc_nand.c | 4 ++--
> 1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/mtd/nand/mxc_nand.c b/drivers/mtd/nand/mxc_nand.c
> index f3548d0..8a93913 100644
> --- a/drivers/mtd/nand/mxc_nand.c
> +++ b/drivers/mtd/nand/mxc_nand.c
> @@ -981,7 +981,7 @@ static int __init mxcnd_probe(struct platform_device *pdev)
> return 0;
>
> escan:
> - free_irq(host->irq, NULL);
> + free_irq(host->irq, host);
> eirq:
> iounmap(host->regs);
> eres:
> @@ -1001,7 +1001,7 @@ static int __devexit mxcnd_remove(struct platform_device *pdev)
> platform_set_drvdata(pdev, NULL);
>
> nand_release(&host->mtd);
> - free_irq(host->irq, NULL);
> + free_irq(host->irq, host);
> iounmap(host->regs);
> kfree(host);
>
> --
> 1.5.6
>
>
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] MXC_NAND: Add correct dev_id parameter to free_irq() calls.
2009-05-08 19:57 [PATCH] MXC_NAND: Add correct dev_id parameter to free_irq() calls Magnus Lilja
2009-05-14 7:53 ` Sascha Hauer
@ 2009-05-15 12:15 ` Artem Bityutskiy
1 sibling, 0 replies; 4+ messages in thread
From: Artem Bityutskiy @ 2009-05-15 12:15 UTC (permalink / raw)
To: Magnus Lilja; +Cc: s.hauer, linux-mtd
On Fri, 2009-05-08 at 21:57 +0200, Magnus Lilja wrote:
> Make sure to pass the same dev_id data to free_irq() that was
> used when calling request_irq(), otherwise we get a warning about
> freeing an already free IRQ.
>
> Signed-off-by: Magnus Lilja <lilja.magnus@gmail.com>
Taken to l2-mtd-2.6.git
--
Best regards,
Artem Bityutskiy (Битюцкий Артём)
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-05-15 12:16 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-08 19:57 [PATCH] MXC_NAND: Add correct dev_id parameter to free_irq() calls Magnus Lilja
2009-05-14 7:53 ` Sascha Hauer
2009-05-15 12:16 ` Artem Bityutskiy
2009-05-15 12:15 ` Artem Bityutskiy
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox