public inbox for linux-sh@vger.kernel.org
 help / color / mirror / Atom feed
From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
To: linux-sh@vger.kernel.org
Subject: Re: [PATCH] ARM: shmobile: mackerel: Use pinconf API to configure pin pull-down
Date: Tue, 10 Dec 2013 15:29:43 +0000	[thread overview]
Message-ID: <173349858.zqd3Wj5xck@avalon> (raw)
In-Reply-To: <1385651878-7002-1-git-send-email-laurent.pinchart+renesas@ideasonboard.com>

Hi Simon,

On Thursday 28 November 2013 16:17:58 Laurent Pinchart wrote:
> The USB0 and USB1 VBUS pins must be pulled down. Add corresponding
> configuration entries in the pinctrl map table instead of manually
> poking the pin control registers.
> 
> Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
> ---
>  arch/arm/mach-shmobile/board-mackerel.c | 17 +++++++++--------
>  arch/arm/mach-shmobile/sh-gpio.h        | 19 -------------------
>  2 files changed, 9 insertions(+), 27 deletions(-)
> 
> diff --git a/arch/arm/mach-shmobile/board-mackerel.c
> b/arch/arm/mach-shmobile/board-mackerel.c index d90d2f1..207acf0 100644
> --- a/arch/arm/mach-shmobile/board-mackerel.c
> +++ b/arch/arm/mach-shmobile/board-mackerel.c

[snip]

> @@ -1396,17 +1401,19 @@ static const struct pinctrl_map
> mackerel_pinctrl_map[] = { /* USBHS0 */
>  	PIN_MAP_MUX_GROUP_DEFAULT("renesas_usbhs.0", "pfc-sh7372",
>  				  "usb0_vbus", "usb0"),
> +	PIN_MAP_CONFIGS_GROUP_DEFAULT("renesas_usbhs.0", "pfc-sh7372",
> +				      "usb0_vbus", pin_pulldown_conf),
>  	/* USBHS1 */
>  	PIN_MAP_MUX_GROUP_DEFAULT("renesas_usbhs.1", "pfc-sh7372",
>  				  "usb1_vbus", "usb1"),
> +	PIN_MAP_CONFIGS_GROUP_DEFAULT("renesas_usbhs.&", "pfc-sh7372",
> +				      "usb1_vbus", pin_pulldown_conf),

This is obviously a mistake ('&' should be '1'). Should I submit a v2 with the 
typo fixed, or a new patch that fixes the bug ?

>  	PIN_MAP_MUX_GROUP_DEFAULT("renesas_usbhs.1", "pfc-sh7372",
>  				  "usb1_otg_id_0", "usb1"),
>  };

-- 
Regards,

Laurent Pinchart


      parent reply	other threads:[~2013-12-10 15:29 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-28 15:17 [PATCH] ARM: shmobile: mackerel: Use pinconf API to configure pin pull-down Laurent Pinchart
2013-12-05  3:36 ` Simon Horman
2013-12-10 15:29 ` Laurent Pinchart [this message]

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=173349858.zqd3Wj5xck@avalon \
    --to=laurent.pinchart@ideasonboard.com \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox