All of lore.kernel.org
 help / color / mirror / Atom feed
From: Peng Fan <peng.fan@nxp.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] mmc: sdhci: fix chip detect gpio property name
Date: Wed, 24 Jul 2019 02:28:52 +0000	[thread overview]
Message-ID: <AM0PR04MB4481512F519286679564662F88C60@AM0PR04MB4481.eurprd04.prod.outlook.com> (raw)
In-Reply-To: <c563a80d5fa5cf98752d60d881ffcb2794f031c1.1563812046.git.baruch@tkos.co.il>

> Subject: [PATCH] mmc: sdhci: fix chip detect gpio property name
> 
> The standard property name for chip-detect gpio is "cd-gpios". All in-tree DT
> files use only this name.
> 
> Fixes: 451931ea700 ("mmc: sdhci: Read cd-gpio from devicetree")
> Cc: T Karthik Reddy <t.karthik.reddy@xilinx.com>
> Cc: Michal Simek <michal.simek@xilinx.com>
> Signed-off-by: Baruch Siach <baruch@tkos.co.il>
> ---
>  drivers/mmc/sdhci.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/mmc/sdhci.c b/drivers/mmc/sdhci.c index
> 0a0770cc2035..2779bca93f08 100644
> --- a/drivers/mmc/sdhci.c
> +++ b/drivers/mmc/sdhci.c
> @@ -623,7 +623,7 @@ static int sdhci_init(struct mmc *mmc)  #if
> CONFIG_IS_ENABLED(DM_MMC) && CONFIG_IS_ENABLED(DM_GPIO)
>  	struct udevice *dev = mmc->dev;
> 
> -	gpio_request_by_name(dev, "cd-gpio", 0,
> +	gpio_request_by_name(dev, "cd-gpios", 0,
>  			     &host->cd_gpio, GPIOD_IS_IN);

Applied to mmc/master.

Thanks,
Peng

>  #endif
> 
> --
> 2.20.1

      parent reply	other threads:[~2019-07-24  2:28 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-07-22 16:14 [U-Boot] [PATCH] mmc: sdhci: fix chip detect gpio property name Baruch Siach
2019-07-23  8:01 ` Peng Fan
2019-07-24  2:28 ` Peng Fan [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=AM0PR04MB4481512F519286679564662F88C60@AM0PR04MB4481.eurprd04.prod.outlook.com \
    --to=peng.fan@nxp.com \
    --cc=u-boot@lists.denx.de \
    /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.