linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: haojian.zhuang@gmail.com (Haojian Zhuang)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v7 04/11] ARM: pxa: rename gpio_to_irq and irq_to_gpio
Date: Mon, 14 Nov 2011 18:34:06 +0800	[thread overview]
Message-ID: <CAN1soZymQH5Be2V85bEr3vPZSEe-S=MQxYK3B+ExPSm+cfkNzw@mail.gmail.com> (raw)
In-Reply-To: <20111114103225.GB25150@n2100.arm.linux.org.uk>

On Mon, Nov 14, 2011 at 6:32 PM, Russell King - ARM Linux
<linux@arm.linux.org.uk> wrote:
> On Mon, Nov 14, 2011 at 06:28:23PM +0800, Haojian Zhuang wrote:
>> On Mon, Nov 14, 2011 at 6:09 PM, Russell King - ARM Linux
>> <linux@arm.linux.org.uk> wrote:
>> > On Wed, Nov 09, 2011 at 10:47:24AM +0800, Haojian Zhuang wrote:
>> >> diff --git a/arch/arm/mach-pxa/cm-x2xx-pci.c b/arch/arm/mach-pxa/cm-x2xx-pci.c
>> >> index ebd9259..e79e081 100644
>> >> --- a/arch/arm/mach-pxa/cm-x2xx-pci.c
>> >> +++ b/arch/arm/mach-pxa/cm-x2xx-pci.c
>> >> @@ -43,9 +43,9 @@ void __cmx2xx_pci_init_irq(int irq_gpio)
>> >>
>> >> ? ? ? cmx2xx_it8152_irq_gpio = irq_gpio;
>> >>
>> >> - ? ? irq_set_irq_type(gpio_to_irq(irq_gpio), IRQ_TYPE_EDGE_RISING);
>> >> + ? ? irq_set_irq_type(PXA_GPIO_TO_IRQ(irq_gpio), IRQ_TYPE_EDGE_RISING);
>> >>
>> >> - ? ? irq_set_chained_handler(gpio_to_irq(irq_gpio),
>> >> + ? ? irq_set_chained_handler(PXA_GPIO_TO_IRQ(irq_gpio),
>> >> ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? cmx2xx_it8152_irq_demux);
>> >
>> > The only comment remaining from the previous review of these patches is
>> > that these changes to the runtime usage of gpio_to_irq() should not be
>> > necessary.
>> >
>> > If gpiolib is implemented correctly, when running on PXA,
>> > PXA_GPIO_TO_IRQ(gpio) should be the same as gpio_to_irq(gpio).
>> >
>>
>> Yes, it seems that this patch is unnecessary. So will you merge rest
>> of those gpio patches into your git tree?
>
> Some of this patch is required - all the places where gpio_to_irq() is
> used as an initializer need to be fixed. ?Those places where it is used
> at run-time should not be fixed up though.
>

OK. I'll submit a new patch series again.

Thanks
Haojian

  reply	other threads:[~2011-11-14 10:34 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-09  2:47 [PATCH v7 00/11] change pxa gpio to platform driver Haojian Zhuang
2011-11-09  2:47 ` [PATCH v7 01/11] ARM: mmp: fix build error on gpio Haojian Zhuang
2011-11-14  5:34   ` Eric Miao
2011-11-17 15:16   ` Arnd Bergmann
2011-11-17 15:33     ` Eric Miao
2011-11-17 17:00       ` Arnd Bergmann
2011-11-17 17:04         ` Russell King - ARM Linux
2011-11-09  2:47 ` [PATCH v7 02/11] ARM: pxa: rename IRQ_GPIO to PXA_GPIO_TO_IRQ Haojian Zhuang
2011-11-09  2:47 ` [PATCH v7 03/11] ARM: pxa: use chained interrupt for GPIO0 and GPIO1 Haojian Zhuang
2011-11-09  2:47 ` [PATCH v7 04/11] ARM: pxa: rename gpio_to_irq and irq_to_gpio Haojian Zhuang
2011-11-14 10:09   ` Russell King - ARM Linux
2011-11-14 10:28     ` Haojian Zhuang
2011-11-14 10:32       ` Russell King - ARM Linux
2011-11-14 10:34         ` Haojian Zhuang [this message]
2011-11-14 10:37           ` Russell King - ARM Linux
2011-11-09  2:47 ` [PATCH v7 05/11] ARM: pxa: recognize gpio number and type Haojian Zhuang
2011-11-09  2:47 ` [PATCH v7 06/11] ARM: pxa: rename NR_BUILTIN_GPIO Haojian Zhuang
2011-11-09  2:47 ` [PATCH v7 07/11] ARM: pxa: use little endian read write in gpio driver Haojian Zhuang
2011-11-09  2:47 ` [PATCH v7 08/11] ARM: pxa: use generic gpio operation instead of gpio register Haojian Zhuang
2011-11-09  2:47 ` [PATCH v7 09/11] ARM: pxa: change gpio to platform device Haojian Zhuang
2012-04-06  4:04   ` Chris Ball
2012-04-06  4:49     ` Chris Ball
2012-04-06  5:55       ` Haojian Zhuang
2012-04-09  1:26         ` Chris Ball
2011-11-09  2:47 ` [PATCH v7 10/11] ARM: mmp: clear gpio edge detect Haojian Zhuang
2011-11-09  2:47 ` [PATCH v7 11/11] ARM: pxa: add clk support in gpio driver Haojian Zhuang
2011-11-14 10:33 ` [PATCH v7 00/11] change pxa gpio to platform driver Russell King - ARM Linux

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='CAN1soZymQH5Be2V85bEr3vPZSEe-S=MQxYK3B+ExPSm+cfkNzw@mail.gmail.com' \
    --to=haojian.zhuang@gmail.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).