From: Paul Mundt <lethal@linux-sh.org>
To: linux-sh@vger.kernel.org
Subject: Re: [PATCH/RFC 3/3] ARM: shmobile: switch SDHI and MMCIF interfaces on kzm9g-reference to pinctrl
Date: Thu, 14 Feb 2013 09:00:12 +0000 [thread overview]
Message-ID: <20130214090011.GF6088@linux-sh.org> (raw)
In-Reply-To: <1360684204-12888-4-git-send-email-g.liakhovetski@gmx.de>
On Thu, Feb 14, 2013 at 10:36:52AM +0900, Magnus Damm wrote:
> Hi Laurent,
>
> On Thu, Feb 14, 2013 at 3:15 AM, Laurent Pinchart
> <laurent.pinchart@ideasonboard.com> wrote:
> > Hi Guennadi,
> >
> > Thank you for the patch.
> >
> > On Tuesday 12 February 2013 16:50:04 Guennadi Liakhovetski wrote:
> >> The recently added on sh73a0 DT pinctrl support enables us to switch SDHI
> >> and MMCIF interface pins to pinctrl and to add GPIO bindings for their
> >> card-detection pins and regulators.
> >>
> >> Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
> >> ---
> >> arch/arm/boot/dts/sh73a0-kzm9g-reference.dts | 61 ++++++++++++++++-----
> >> arch/arm/boot/dts/sh73a0-reference.dtsi | 9 ----
> >> arch/arm/mach-shmobile/board-kzm9g-reference.c | 36 ++------------
> >> 3 files changed, 54 insertions(+), 52 deletions(-)
> >
> > [snip]
> >
> >> diff --git a/arch/arm/mach-shmobile/board-kzm9g-reference.c
> >> b/arch/arm/mach-shmobile/board-kzm9g-reference.c index d92da6d..1490246
> >> 100644
> >> --- a/arch/arm/mach-shmobile/board-kzm9g-reference.c
> >> +++ b/arch/arm/mach-shmobile/board-kzm9g-reference.c
> >> @@ -90,38 +90,12 @@ static void __init kzm_init(void)
> >> regulator_register_fixed(2, dummy_supplies, ARRAY_SIZE(dummy_supplies));
> >> platform_device_register(&smsc_device);
> >>
> >> - /* enable MMCIF */
> >> - gpio_request(GPIO_FN_MMCCLK0, NULL);
> >> - gpio_request(GPIO_FN_MMCCMD0_PU, NULL);
> >> - gpio_request(GPIO_FN_MMCD0_0_PU, NULL);
> >> - gpio_request(GPIO_FN_MMCD0_1_PU, NULL);
> >> - gpio_request(GPIO_FN_MMCD0_2_PU, NULL);
> >> - gpio_request(GPIO_FN_MMCD0_3_PU, NULL);
> >> - gpio_request(GPIO_FN_MMCD0_4_PU, NULL);
> >> - gpio_request(GPIO_FN_MMCD0_5_PU, NULL);
> >> - gpio_request(GPIO_FN_MMCD0_6_PU, NULL);
> >> - gpio_request(GPIO_FN_MMCD0_7_PU, NULL);
> >
> > Don't hate me, but... the PFC implementation doesn't support controlling pull-
> > ups through the pinctrl API yet :-( That's something I still need to
> > implement.
>
> Uhm, doesn't that smell like a functional regression...?
>
> Would it be possible for someone else to re-add pull-up support
> properly to the PFC code?
>
No, because it's still supported by way of the GPIO API as above, which
in turn layers through the rest of the PFC code. Transitioning these
users over to the corresponding pinctrl API takes some more work, so I
don't believe any of the refactoring has introduced regressions in that
regard.
next prev parent reply other threads:[~2013-02-14 9:00 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-12 15:50 [PATCH/RFC 3/3] ARM: shmobile: switch SDHI and MMCIF interfaces on kzm9g-reference to pinctrl Guennadi Liakhovetski
2013-02-13 4:32 ` Simon Horman
2013-02-13 18:15 ` Laurent Pinchart
2013-02-14 1:36 ` Magnus Damm
2013-02-14 9:00 ` Paul Mundt [this message]
2013-02-14 11:09 ` Laurent Pinchart
2013-02-14 12:20 ` Magnus Damm
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=20130214090011.GF6088@linux-sh.org \
--to=lethal@linux-sh.org \
--cc=linux-sh@vger.kernel.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.