From: eric@eukrea.com (Eric Bénard)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] imx: move gpio init after to irq init
Date: Fri, 23 Jul 2010 16:02:00 +0200 [thread overview]
Message-ID: <4C49A0D8.307@eukrea.com> (raw)
In-Reply-To: <1279026162-6634-5-git-send-email-jason77.wang@gmail.com>
Hi,
Le 13/07/2010 15:02, Jason Wang a ?crit :
> The commit 9a763bf "get rid of mxc_gpio_init" changed gpio_init
> and irq_init sequence. Usually we will call set_irq_chained_handler
> in gpio_init functions, this should be called after the irq_init
> called, otherwise the chained irq can't get propoer irq_chip and this
> irq will remain masked even we called set_irq_chained_handler.
>
> Signed-off-by: Jason Wang<jason77.wang@gmail.com>
> ---
> arch/arm/mach-imx/mm-imx1.c | 2 +-
> arch/arm/mach-imx/mm-imx21.c | 2 +-
> arch/arm/mach-imx/mm-imx27.c | 2 +-
> arch/arm/mach-mx25/mm.c | 2 +-
> arch/arm/mach-mx3/mm.c | 2 +-
> arch/arm/mach-mx5/mm.c | 2 +-
> 6 files changed, 6 insertions(+), 6 deletions(-)
>
> diff --git a/arch/arm/mach-imx/mm-imx1.c b/arch/arm/mach-imx/mm-imx1.c
> index 117ebf6..9be92b9 100644
> --- a/arch/arm/mach-imx/mm-imx1.c
> +++ b/arch/arm/mach-imx/mm-imx1.c
> @@ -45,6 +45,6 @@ int imx1_register_gpios(void);
>
> void __init mx1_init_irq(void)
> {
> - imx1_register_gpios();
> mxc_init_irq(MX1_IO_ADDRESS(MX1_AVIC_BASE_ADDR));
> + imx1_register_gpios();
> }
> diff --git a/arch/arm/mach-imx/mm-imx21.c b/arch/arm/mach-imx/mm-imx21.c
> index 68aa5d2..12faeea 100644
> --- a/arch/arm/mach-imx/mm-imx21.c
> +++ b/arch/arm/mach-imx/mm-imx21.c
> @@ -81,6 +81,6 @@ int imx21_register_gpios(void);
>
> void __init mx21_init_irq(void)
> {
> - imx21_register_gpios();
> mxc_init_irq(MX21_IO_ADDRESS(MX21_AVIC_BASE_ADDR));
> + imx21_register_gpios();
> }
> diff --git a/arch/arm/mach-imx/mm-imx27.c b/arch/arm/mach-imx/mm-imx27.c
> index bcedce9..a246229 100644
> --- a/arch/arm/mach-imx/mm-imx27.c
> +++ b/arch/arm/mach-imx/mm-imx27.c
> @@ -81,6 +81,6 @@ int imx27_register_gpios(void);
>
> void __init mx27_init_irq(void)
> {
> - imx27_register_gpios();
> mxc_init_irq(MX27_IO_ADDRESS(MX27_AVIC_BASE_ADDR));
> + imx27_register_gpios();
> }
> diff --git a/arch/arm/mach-mx25/mm.c b/arch/arm/mach-mx25/mm.c
> index 593e145..bb67711 100644
> --- a/arch/arm/mach-mx25/mm.c
> +++ b/arch/arm/mach-mx25/mm.c
> @@ -69,7 +69,7 @@ int imx25_register_gpios(void);
>
> void __init mx25_init_irq(void)
> {
> - imx25_register_gpios();
> mxc_init_irq((void __iomem *)MX25_AVIC_BASE_ADDR_VIRT);
> + imx25_register_gpios();
> }
>
> diff --git a/arch/arm/mach-mx3/mm.c b/arch/arm/mach-mx3/mm.c
> index a378fba..20e48c0 100644
> --- a/arch/arm/mach-mx3/mm.c
> +++ b/arch/arm/mach-mx3/mm.c
> @@ -97,8 +97,8 @@ int imx3x_register_gpios(void);
>
> void __init mx31_init_irq(void)
> {
> - imx3x_register_gpios();
> mxc_init_irq(IO_ADDRESS(AVIC_BASE_ADDR));
> + imx3x_register_gpios();
> }
>
> void __init mx35_init_irq(void)
> diff --git a/arch/arm/mach-mx5/mm.c b/arch/arm/mach-mx5/mm.c
> index 2f79722..bc3f30d 100644
> --- a/arch/arm/mach-mx5/mm.c
> +++ b/arch/arm/mach-mx5/mm.c
> @@ -81,6 +81,6 @@ void __init mx51_init_irq(void)
> if (!tzic_virt)
> panic("unable to map TZIC interrupt controller\n");
>
> - imx51_register_gpios();
> tzic_init_irq(tzic_virt);
> + imx51_register_gpios();
> }
Tested-by: Eric B?nard <eric@eukrea.com>
on i.MX51 : this patch seems necessary to get gpio IRQ working.
Eric
next prev parent reply other threads:[~2010-07-23 14:02 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-13 13:02 [PATCH 0/3]Add imx51_3ds platform support Jason Wang
2010-07-13 13:02 ` [PATCH 1/3] mx51_3ds: Add support for the imx51 3-stack board Jason Wang
2010-07-13 13:02 ` [PATCH 2/3] mx51: add imx_keypad device definition for mx51 platforms Jason Wang
2010-07-13 13:02 ` [PATCH 3/3] mx51_3ds: add keypad support on 3ds platform Jason Wang
2010-07-13 13:02 ` [PATCH] imx: move gpio init after to irq init Jason Wang
2010-07-13 14:24 ` Amit Kucheria
2010-07-23 14:02 ` Eric Bénard [this message]
2010-07-14 6:56 ` [PATCH 1/3] mx51_3ds: Add support for the imx51 3-stack board Sascha Hauer
2010-07-14 13:33 ` Uwe Kleine-König
2010-07-13 14:39 ` [PATCH 0/3]Add imx51_3ds platform support Amit Kucheria
2010-07-14 6:58 ` Sascha Hauer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4C49A0D8.307@eukrea.com \
--to=eric@eukrea.com \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).