From: Tomasz Figa <tomasz.figa@gmail.com>
To: Thomas Abraham <thomas.abraham@linaro.org>
Cc: Tomasz Figa <t.figa@samsung.com>,
linux-arm-kernel@lists.infradead.org,
linux-samsung-soc@vger.kernel.org,
Grant Likely <grant.likely@secretlab.ca>,
Kyungmin Park <kyungmin.park@samsung.com>,
Kukjin Kim <kgene.kim@samsung.com>,
Linus Walleij <linus.walleij@linaro.org>,
Marek Szyprowski <m.szyprowski@samsung.com>
Subject: Re: [PATCH 2/3] gpio: samsung: Add support for Exynos4x12 SoCs
Date: Tue, 28 Aug 2012 19:27:30 +0200 [thread overview]
Message-ID: <42072476.sfX69hco6r@flatron> (raw)
In-Reply-To: <CAJuYYwR3tPhk=DHJVgk1E_MqWrwT+7_YdJOSjrYX=pF7_RFjpw@mail.gmail.com>
Hi,
Thanks for reviewing the patch.
On Tuesday 28 of August 2012 20:25:34 Thomas Abraham wrote:
> > + }, {
> > + .config = &samsung_gpio_cfgs[9],
> > + .irq_base = IRQ_EINT(24),
> > + .chip = {
> > + .base = EXYNOS4_GPX3(0),
> > + .ngpio = EXYNOS4_GPIO_X3_NR,
> > + .label = "GPX3",
> > + .to_irq = samsung_gpiolib_to_irq,
> > + },
> > + },
> > +};
>
> I see that GPX0, GPX1, GPX2 and GPX3 bank instances are already part
> of mainline kernel. How is that this is being added here.
It seems like somehow GPXx are added to exynos4210_gpios_2 again and the
already present part is used for exynos4x12_gpios_2. I guess that it's
because of adding ".base = (void *)0xC00" to GPX0, which might be an
accidental mistake. I will recheck that.
> > + }, {
> > + .base = (void *)0xC00,
> >
> > .config = &samsung_gpio_cfgs[9],
> > .irq_base = IRQ_EINT(0),
> > .chip = {
> >
> > @@ -2370,9 +2619,7 @@ static struct samsung_gpio_chip exynos4_gpios_2[]
> > = {>
> > },
> >
> > },
> >
> > };
>
> There are no GPX banks instantiated here for 4x12. What is the reason for
> that?
See previous point. GPXx which have been part of exynos4_gpios_2 become
part of exynos4210_gpios_2.
> > -#endif
> >
> > -#ifdef CONFIG_ARCH_EXYNOS4
> >
> > static struct samsung_gpio_chip exynos4_gpios_3[] = {
> >
> > {
> >
> > .chip = {
> >
> > @@ -2727,12 +2974,15 @@ static __init void
> > exynos_gpiolib_attach_ofnode(struct samsung_gpio_chip *chip,
> What is the limitation in adding support for GPVx as well for 4x12 ?
I'm not sure, I might have simply overlooked GPVx. I will recheck that
tomorrow.
Best regards,
--
Tomasz Figa
WARNING: multiple messages have this Message-ID (diff)
From: tomasz.figa@gmail.com (Tomasz Figa)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 2/3] gpio: samsung: Add support for Exynos4x12 SoCs
Date: Tue, 28 Aug 2012 19:27:30 +0200 [thread overview]
Message-ID: <42072476.sfX69hco6r@flatron> (raw)
In-Reply-To: <CAJuYYwR3tPhk=DHJVgk1E_MqWrwT+7_YdJOSjrYX=pF7_RFjpw@mail.gmail.com>
Hi,
Thanks for reviewing the patch.
On Tuesday 28 of August 2012 20:25:34 Thomas Abraham wrote:
> > + }, {
> > + .config = &samsung_gpio_cfgs[9],
> > + .irq_base = IRQ_EINT(24),
> > + .chip = {
> > + .base = EXYNOS4_GPX3(0),
> > + .ngpio = EXYNOS4_GPIO_X3_NR,
> > + .label = "GPX3",
> > + .to_irq = samsung_gpiolib_to_irq,
> > + },
> > + },
> > +};
>
> I see that GPX0, GPX1, GPX2 and GPX3 bank instances are already part
> of mainline kernel. How is that this is being added here.
It seems like somehow GPXx are added to exynos4210_gpios_2 again and the
already present part is used for exynos4x12_gpios_2. I guess that it's
because of adding ".base = (void *)0xC00" to GPX0, which might be an
accidental mistake. I will recheck that.
> > + }, {
> > + .base = (void *)0xC00,
> >
> > .config = &samsung_gpio_cfgs[9],
> > .irq_base = IRQ_EINT(0),
> > .chip = {
> >
> > @@ -2370,9 +2619,7 @@ static struct samsung_gpio_chip exynos4_gpios_2[]
> > = {>
> > },
> >
> > },
> >
> > };
>
> There are no GPX banks instantiated here for 4x12. What is the reason for
> that?
See previous point. GPXx which have been part of exynos4_gpios_2 become
part of exynos4210_gpios_2.
> > -#endif
> >
> > -#ifdef CONFIG_ARCH_EXYNOS4
> >
> > static struct samsung_gpio_chip exynos4_gpios_3[] = {
> >
> > {
> >
> > .chip = {
> >
> > @@ -2727,12 +2974,15 @@ static __init void
> > exynos_gpiolib_attach_ofnode(struct samsung_gpio_chip *chip,
> What is the limitation in adding support for GPVx as well for 4x12 ?
I'm not sure, I might have simply overlooked GPVx. I will recheck that
tomorrow.
Best regards,
--
Tomasz Figa
next prev parent reply other threads:[~2012-08-28 17:27 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-28 10:01 [PATCH 0/3] ARM: EXYNOS: Add support for GPIO on Exynos4x12 Tomasz Figa
2012-08-28 10:01 ` Tomasz Figa
2012-08-28 10:06 ` [PATCH 1/3] ARM: EXYNOS: Use EXYNOS4210_GPEx instead of EXYNOS4_GPEx Tomasz Figa
2012-08-28 10:06 ` Tomasz Figa
2012-08-28 14:48 ` Thomas Abraham
2012-08-28 14:48 ` Thomas Abraham
2012-08-28 23:44 ` Kukjin Kim
2012-08-28 23:44 ` Kukjin Kim
2012-08-29 0:03 ` Kyungmin Park
2012-08-29 0:03 ` Kyungmin Park
2012-08-29 13:52 ` Tomasz Figa
2012-08-29 13:52 ` Tomasz Figa
2012-08-28 10:06 ` [PATCH 2/3] gpio: samsung: Add support for Exynos4x12 SoCs Tomasz Figa
2012-08-28 10:06 ` Tomasz Figa
2012-08-28 14:55 ` Thomas Abraham
2012-08-28 14:55 ` Thomas Abraham
2012-08-28 17:27 ` Tomasz Figa [this message]
2012-08-28 17:27 ` Tomasz Figa
2012-08-28 10:07 ` [PATCH 3/3] ARM: EXYNOS: Add support for FIMC cam port B GPIO setup on Exynos4x12 Tomasz Figa
2012-08-28 10:07 ` Tomasz Figa
2012-08-28 14:58 ` [PATCH 0/3] ARM: EXYNOS: Add support for GPIO " Thomas Abraham
2012-08-28 14:58 ` Thomas Abraham
2012-08-31 22:46 ` Linus Walleij
2012-08-31 22:46 ` Linus Walleij
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=42072476.sfX69hco6r@flatron \
--to=tomasz.figa@gmail.com \
--cc=grant.likely@secretlab.ca \
--cc=kgene.kim@samsung.com \
--cc=kyungmin.park@samsung.com \
--cc=linus.walleij@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-samsung-soc@vger.kernel.org \
--cc=m.szyprowski@samsung.com \
--cc=t.figa@samsung.com \
--cc=thomas.abraham@linaro.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.