* [PATCH v2 0/4] ARM: S5P: Support gpio interrupts
@ 2010-06-11 8:33 Joonyoung Shim
2010-06-23 7:50 ` Kukjin Kim
0 siblings, 1 reply; 5+ messages in thread
From: Joonyoung Shim @ 2010-06-11 8:33 UTC (permalink / raw)
To: linux-arm-kernel
This patch v2 set is to support gpio interrupts of samsung s5p cpus, and
the GPIOlib gpio_to_irq goes to plat-samsung gpiolib, so patch v2 set
has four commit smaller than v1.
Changes since v1:
- Add irq_base to s3c_gpio_chip struct
- GPIOlib gpio_to_irq() is implemented to samsung_gpiolib_to_irq() of
plat-samsung gpiolib
Joonyoung Shim (4):
ARM: S5PV210: Add gpio interrupt support
ARM: S5PC100: Use S5P gpio interrupts interface
ARM: S5PC100: Move external interrupt defines
ARM: SAMSUNG: Add GPIOlib gpio_to_irq
arch/arm/mach-s5pc100/Makefile | 2 +-
arch/arm/mach-s5pc100/gpiolib.c | 70 ++-----
arch/arm/mach-s5pc100/include/mach/gpio.h | 7 -
arch/arm/mach-s5pc100/include/mach/irqs.h | 18 ++-
arch/arm/mach-s5pc100/include/mach/regs-gpio.h | 7 +
arch/arm/mach-s5pc100/irq-gpio.c | 266 ------------------------
arch/arm/mach-s5pv210/gpiolib.c | 18 ++-
arch/arm/mach-s5pv210/include/mach/irqs.h | 16 ++-
arch/arm/plat-s5p/Makefile | 2 +-
arch/arm/plat-s5p/irq-gpioint.c | 208 ++++++++++++++++++
arch/arm/plat-samsung/gpiolib.c | 9 +
arch/arm/plat-samsung/include/plat/gpio-core.h | 6 +
12 files changed, 295 insertions(+), 334 deletions(-)
delete mode 100644 arch/arm/mach-s5pc100/irq-gpio.c
create mode 100644 arch/arm/plat-s5p/irq-gpioint.c
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH v2 0/4] ARM: S5P: Support gpio interrupts
2010-06-11 8:33 [PATCH v2 0/4] ARM: S5P: Support gpio interrupts Joonyoung Shim
@ 2010-06-23 7:50 ` Kukjin Kim
2010-06-23 13:36 ` Kyungmin Park
2010-06-25 5:33 ` Marek Szyprowski
0 siblings, 2 replies; 5+ messages in thread
From: Kukjin Kim @ 2010-06-23 7:50 UTC (permalink / raw)
To: linux-arm-kernel
Joonyoung Shim wrote:
>
> This patch v2 set is to support gpio interrupts of samsung s5p cpus, and
> the GPIOlib gpio_to_irq goes to plat-samsung gpiolib, so patch v2 set
> has four commit smaller than v1.
>
> Changes since v1:
> - Add irq_base to s3c_gpio_chip struct
> - GPIOlib gpio_to_irq() is implemented to samsung_gpiolib_to_irq() of
> plat-samsung gpiolib
>
> Joonyoung Shim (4):
> ARM: S5PV210: Add gpio interrupt support
> ARM: S5PC100: Use S5P gpio interrupts interface
> ARM: S5PC100: Move external interrupt defines
> ARM: SAMSUNG: Add GPIOlib gpio_to_irq
>
> arch/arm/mach-s5pc100/Makefile | 2 +-
> arch/arm/mach-s5pc100/gpiolib.c | 70 ++-----
> arch/arm/mach-s5pc100/include/mach/gpio.h | 7 -
> arch/arm/mach-s5pc100/include/mach/irqs.h | 18 ++-
> arch/arm/mach-s5pc100/include/mach/regs-gpio.h | 7 +
> arch/arm/mach-s5pc100/irq-gpio.c | 266
------------------------
> arch/arm/mach-s5pv210/gpiolib.c | 18 ++-
> arch/arm/mach-s5pv210/include/mach/irqs.h | 16 ++-
> arch/arm/plat-s5p/Makefile | 2 +-
> arch/arm/plat-s5p/irq-gpioint.c | 208 ++++++++++++++++++
> arch/arm/plat-samsung/gpiolib.c | 9 +
> arch/arm/plat-samsung/include/plat/gpio-core.h | 6 +
> 12 files changed, 295 insertions(+), 334 deletions(-)
> delete mode 100644 arch/arm/mach-s5pc100/irq-gpio.c
> create mode 100644 arch/arm/plat-s5p/irq-gpioint.c
>
I am sure this patchset is working code, but Ben had made suggestion about
'sparse irq'...
It is because there are too many gpio interrupts and having support of all
of them is unnecessary as realistically only few of them maybe used.
In fact in SMDK board there is no use of gpio in interrupt mode.
Ben, I remember your suggestion for using 'sparse irq' for handling gpio
interrupts.
And in fact, sparse irq implementation can be beneficial to many other
boards...
Could you please explain about that?
Thanks.
Best regards,
Kgene.
--
Kukjin Kim <kgene.kim@samsung.com>, Senior Engineer,
SW Solution Development Team, Samsung Electronics Co., Ltd.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH v2 0/4] ARM: S5P: Support gpio interrupts
2010-06-23 7:50 ` Kukjin Kim
@ 2010-06-23 13:36 ` Kyungmin Park
2010-06-25 5:33 ` Marek Szyprowski
1 sibling, 0 replies; 5+ messages in thread
From: Kyungmin Park @ 2010-06-23 13:36 UTC (permalink / raw)
To: linux-arm-kernel
On Wed, Jun 23, 2010 at 4:50 PM, Kukjin Kim <kgene.kim@samsung.com> wrote:
> Joonyoung Shim wrote:
>>
>> This patch v2 set is to support gpio interrupts of samsung s5p cpus, and
>> the GPIOlib gpio_to_irq goes to plat-samsung gpiolib, so patch v2 set
>> has four commit smaller than v1.
>>
>> Changes since v1:
>> - Add irq_base to s3c_gpio_chip struct
>> - GPIOlib gpio_to_irq() is implemented to samsung_gpiolib_to_irq() of
>> ? plat-samsung gpiolib
>>
>> Joonyoung Shim (4):
>> ? ? ? ARM: S5PV210: Add gpio interrupt support
>> ? ? ? ARM: S5PC100: Use S5P gpio interrupts interface
>> ? ? ? ARM: S5PC100: Move external interrupt defines
>> ? ? ? ARM: SAMSUNG: Add GPIOlib gpio_to_irq
>>
>> ?arch/arm/mach-s5pc100/Makefile ? ? ? ? ? ? ? ? | ? ?2 +-
>> ?arch/arm/mach-s5pc100/gpiolib.c ? ? ? ? ? ? ? ?| ? 70 ++-----
>> ?arch/arm/mach-s5pc100/include/mach/gpio.h ? ? ?| ? ?7 -
>> ?arch/arm/mach-s5pc100/include/mach/irqs.h ? ? ?| ? 18 ++-
>> ?arch/arm/mach-s5pc100/include/mach/regs-gpio.h | ? ?7 +
>> ?arch/arm/mach-s5pc100/irq-gpio.c ? ? ? ? ? ? ? | ?266
> ------------------------
>> ?arch/arm/mach-s5pv210/gpiolib.c ? ? ? ? ? ? ? ?| ? 18 ++-
>> ?arch/arm/mach-s5pv210/include/mach/irqs.h ? ? ?| ? 16 ++-
>> ?arch/arm/plat-s5p/Makefile ? ? ? ? ? ? ? ? ? ? | ? ?2 +-
>> ?arch/arm/plat-s5p/irq-gpioint.c ? ? ? ? ? ? ? ?| ?208 ++++++++++++++++++
>> ?arch/arm/plat-samsung/gpiolib.c ? ? ? ? ? ? ? ?| ? ?9 +
>> ?arch/arm/plat-samsung/include/plat/gpio-core.h | ? ?6 +
>> ?12 files changed, 295 insertions(+), 334 deletions(-)
>> ?delete mode 100644 arch/arm/mach-s5pc100/irq-gpio.c
>> ?create mode 100644 arch/arm/plat-s5p/irq-gpioint.c
>>
>
> I am sure this patchset is working code, but Ben had made suggestion about
> 'sparse irq'...
> It is because there are too many gpio interrupts and having support of all
> of them is unnecessary as realistically only few of them maybe used.
> In fact in SMDK board there is no use of gpio in interrupt mode.
>
> Ben, I remember your suggestion for using 'sparse irq' for handling gpio
> interrupts.
> And in fact, sparse irq implementation can be beneficial to many other
> boards...
> Could you please explain about that?
Interesting.
you can find it by "[ARM] Preliminary support for dynamic IRQ" written by Eric.
Instead define the 'NR_IRQS' of chip, board can define each 'nr_irqs'
at init time.
Maybe smdk don't use the GPIOs. but mobile phones at samsung use the until MP0x.
Sometime H/W team connect it at MP04 or MP05 which doesn't support
GPIO interrupt.
Thank you,
Kyungmin Park
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH v2 0/4] ARM: S5P: Support gpio interrupts
2010-06-23 7:50 ` Kukjin Kim
2010-06-23 13:36 ` Kyungmin Park
@ 2010-06-25 5:33 ` Marek Szyprowski
2010-07-06 7:40 ` Joonyoung Shim
1 sibling, 1 reply; 5+ messages in thread
From: Marek Szyprowski @ 2010-06-25 5:33 UTC (permalink / raw)
To: linux-arm-kernel
Hello,
On Wednesday, June 23, 2010 9:51 AM Kukjin Kim wrote:
> Joonyoung Shim wrote:
> >
> > This patch v2 set is to support gpio interrupts of samsung s5p cpus, and
> > the GPIOlib gpio_to_irq goes to plat-samsung gpiolib, so patch v2 set
> > has four commit smaller than v1.
> >
> > Changes since v1:
> > - Add irq_base to s3c_gpio_chip struct
> > - GPIOlib gpio_to_irq() is implemented to samsung_gpiolib_to_irq() of
> > plat-samsung gpiolib
> >
> > Joonyoung Shim (4):
> > ARM: S5PV210: Add gpio interrupt support
> > ARM: S5PC100: Use S5P gpio interrupts interface
> > ARM: S5PC100: Move external interrupt defines
> > ARM: SAMSUNG: Add GPIOlib gpio_to_irq
> >
> > arch/arm/mach-s5pc100/Makefile | 2 +-
> > arch/arm/mach-s5pc100/gpiolib.c | 70 ++-----
> > arch/arm/mach-s5pc100/include/mach/gpio.h | 7 -
> > arch/arm/mach-s5pc100/include/mach/irqs.h | 18 ++-
> > arch/arm/mach-s5pc100/include/mach/regs-gpio.h | 7 +
> > arch/arm/mach-s5pc100/irq-gpio.c | 266
> ------------------------
> > arch/arm/mach-s5pv210/gpiolib.c | 18 ++-
> > arch/arm/mach-s5pv210/include/mach/irqs.h | 16 ++-
> > arch/arm/plat-s5p/Makefile | 2 +-
> > arch/arm/plat-s5p/irq-gpioint.c | 208 ++++++++++++++++++
> > arch/arm/plat-samsung/gpiolib.c | 9 +
> > arch/arm/plat-samsung/include/plat/gpio-core.h | 6 +
> > 12 files changed, 295 insertions(+), 334 deletions(-)
> > delete mode 100644 arch/arm/mach-s5pc100/irq-gpio.c
> > create mode 100644 arch/arm/plat-s5p/irq-gpioint.c
> >
>
> I am sure this patchset is working code, but Ben had made suggestion about
> 'sparse irq'...
> It is because there are too many gpio interrupts and having support of all
> of them is unnecessary as realistically only few of them maybe used.
Right. Ben suggested to create a pool for gpio interrupts (for example 16
interrupts) and selectively assign them in machine startup code to those
gpio pins that really need it.
The problem is that such solution is not yet ready and we really need the
gpio interrupt functionality for our boards (Aquila and GONI).
Maybe these current patches could be merged now, and then, once the new
solution is prepared, the gpio interrupt support get converted to selective
registering?
S5PC100 already has gpio interrupt support.
> In fact in SMDK board there is no use of gpio in interrupt mode.
We are talking about support for Samsung S5PV210/S5PC110 SoCs in the Linux
mainline kernel, not the support for only SMDK boards. GPIO interrupts is
a feature of the SoC not a particular board.
Best regards
--
Marek Szyprowski
Samsung Poland R&D Center
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH v2 0/4] ARM: S5P: Support gpio interrupts
2010-06-25 5:33 ` Marek Szyprowski
@ 2010-07-06 7:40 ` Joonyoung Shim
0 siblings, 0 replies; 5+ messages in thread
From: Joonyoung Shim @ 2010-07-06 7:40 UTC (permalink / raw)
To: linux-arm-kernel
On 6/25/2010 2:33 PM, Marek Szyprowski wrote:
> Hello,
>
> On Wednesday, June 23, 2010 9:51 AM Kukjin Kim wrote:
>
>> Joonyoung Shim wrote:
>>> This patch v2 set is to support gpio interrupts of samsung s5p cpus, and
>>> the GPIOlib gpio_to_irq goes to plat-samsung gpiolib, so patch v2 set
>>> has four commit smaller than v1.
>>>
>>> Changes since v1:
>>> - Add irq_base to s3c_gpio_chip struct
>>> - GPIOlib gpio_to_irq() is implemented to samsung_gpiolib_to_irq() of
>>> plat-samsung gpiolib
>>>
>>> Joonyoung Shim (4):
>>> ARM: S5PV210: Add gpio interrupt support
>>> ARM: S5PC100: Use S5P gpio interrupts interface
>>> ARM: S5PC100: Move external interrupt defines
>>> ARM: SAMSUNG: Add GPIOlib gpio_to_irq
>>>
>>> arch/arm/mach-s5pc100/Makefile | 2 +-
>>> arch/arm/mach-s5pc100/gpiolib.c | 70 ++-----
>>> arch/arm/mach-s5pc100/include/mach/gpio.h | 7 -
>>> arch/arm/mach-s5pc100/include/mach/irqs.h | 18 ++-
>>> arch/arm/mach-s5pc100/include/mach/regs-gpio.h | 7 +
>>> arch/arm/mach-s5pc100/irq-gpio.c | 266
>> ------------------------
>>> arch/arm/mach-s5pv210/gpiolib.c | 18 ++-
>>> arch/arm/mach-s5pv210/include/mach/irqs.h | 16 ++-
>>> arch/arm/plat-s5p/Makefile | 2 +-
>>> arch/arm/plat-s5p/irq-gpioint.c | 208 ++++++++++++++++++
>>> arch/arm/plat-samsung/gpiolib.c | 9 +
>>> arch/arm/plat-samsung/include/plat/gpio-core.h | 6 +
>>> 12 files changed, 295 insertions(+), 334 deletions(-)
>>> delete mode 100644 arch/arm/mach-s5pc100/irq-gpio.c
>>> create mode 100644 arch/arm/plat-s5p/irq-gpioint.c
>>>
>> I am sure this patchset is working code, but Ben had made suggestion about
>> 'sparse irq'...
>> It is because there are too many gpio interrupts and having support of all
>> of them is unnecessary as realistically only few of them maybe used.
>
> Right. Ben suggested to create a pool for gpio interrupts (for example 16
> interrupts) and selectively assign them in machine startup code to those
> gpio pins that really need it.
>
> The problem is that such solution is not yet ready and we really need the
> gpio interrupt functionality for our boards (Aquila and GONI).
>
> Maybe these current patches could be merged now, and then, once the new
> solution is prepared, the gpio interrupt support get converted to selective
> registering?
>
I agree with Marek.
Ben and Kukjin, how do you think about this?
> S5PC100 already has gpio interrupt support.
>
>> In fact in SMDK board there is no use of gpio in interrupt mode.
>
> We are talking about support for Samsung S5PV210/S5PC110 SoCs in the Linux
> mainline kernel, not the support for only SMDK boards. GPIO interrupts is
> a feature of the SoC not a particular board.
>
> Best regards
> --
> Marek Szyprowski
> Samsung Poland R&D Center
>
>
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2010-07-06 7:40 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-11 8:33 [PATCH v2 0/4] ARM: S5P: Support gpio interrupts Joonyoung Shim
2010-06-23 7:50 ` Kukjin Kim
2010-06-23 13:36 ` Kyungmin Park
2010-06-25 5:33 ` Marek Szyprowski
2010-07-06 7:40 ` Joonyoung Shim
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).