public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Minkyu Kang <mk7.kang@samsung.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 1/2] mmc: sdhci: remove the unused argument for sdhci_setup_cfg
Date: Wed, 27 Jul 2016 10:10:04 +0900	[thread overview]
Message-ID: <579809EC.5090904@samsung.com> (raw)
In-Reply-To: <1469527584-15123-1-git-send-email-jh80.chung@samsung.com>

Hi,

On 26/07/16 19:06, Jaehoon Chung wrote:
> buswidth isn't used anywhere in sdhci_setup_cfg.
> 
> Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
> ---
>  drivers/mmc/msm_sdhci.c  | 4 ++--
>  drivers/mmc/sdhci.c      | 4 ++--
>  drivers/mmc/zynq_sdhci.c | 2 +-
>  include/sdhci.h          | 3 +--
>  4 files changed, 6 insertions(+), 7 deletions(-)
> 
> diff --git a/drivers/mmc/msm_sdhci.c b/drivers/mmc/msm_sdhci.c
> index 70a8d96..e90a044 100644
> --- a/drivers/mmc/msm_sdhci.c
> +++ b/drivers/mmc/msm_sdhci.c
> @@ -144,8 +144,8 @@ static int msm_sdc_probe(struct udevice *dev)
>  	host->version = sdhci_readw(host, SDHCI_HOST_VERSION);
>  
>  	caps = sdhci_readl(host, SDHCI_CAPABILITIES);
> -	ret = sdhci_setup_cfg(&plat->cfg, dev->name, host->bus_width,
> -			      caps, 0, 0, host->version, host->quirks, 0);
> +	ret = sdhci_setup_cfg(&plat->cfg, dev->name, caps,
> +			0, 0, host->version, host->quirks, 0);
>  	host->mmc = &plat->mmc;
>  	if (ret)
>  		return ret;
> diff --git a/drivers/mmc/sdhci.c b/drivers/mmc/sdhci.c
> index de8d8ea..d8cd75f 100644
> --- a/drivers/mmc/sdhci.c
> +++ b/drivers/mmc/sdhci.c
> @@ -510,7 +510,7 @@ static const struct mmc_ops sdhci_ops = {
>  };
>  #endif
>  
> -int sdhci_setup_cfg(struct mmc_config *cfg, const char *name, int buswidth,
> +int sdhci_setup_cfg(struct mmc_config *cfg, const char *name,
>  		    uint caps, u32 max_clk, u32 min_clk, uint version,
>  		    uint quirks, uint host_caps)
>  {
> @@ -584,7 +584,7 @@ int add_sdhci(struct sdhci_host *host, u32 max_clk, u32 min_clk)
>  	}
>  #endif
>  
> -	if (sdhci_setup_cfg(&host->cfg, host->name, host->bus_width, caps,
> +	if (sdhci_setup_cfg(&host->cfg, host->name, caps,
>  			    max_clk, min_clk, SDHCI_GET_VERSION(host),
>  			    host->quirks, host->host_caps)) {
>  		printf("%s: Hardware doesn't specify base clock frequency\n",
> diff --git a/drivers/mmc/zynq_sdhci.c b/drivers/mmc/zynq_sdhci.c
> index bcd154a..69d6151 100644
> --- a/drivers/mmc/zynq_sdhci.c
> +++ b/drivers/mmc/zynq_sdhci.c
> @@ -40,7 +40,7 @@ static int arasan_sdhci_probe(struct udevice *dev)
>  	host->version = sdhci_readw(host, SDHCI_HOST_VERSION);
>  
>  	caps = sdhci_readl(host, SDHCI_CAPABILITIES);
> -	ret = sdhci_setup_cfg(&plat->cfg, dev->name, host->bus_width,
> +	ret = sdhci_setup_cfg(&plat->cfg, dev->name,
>  			      caps, CONFIG_ZYNQ_SDHCI_MAX_FREQ,
>  			      CONFIG_ZYNQ_SDHCI_MIN_FREQ, host->version,
>  			      host->quirks, 0);
> diff --git a/include/sdhci.h b/include/sdhci.h
> index c4d3b55..693ecc1 100644
> --- a/include/sdhci.h
> +++ b/include/sdhci.h
> @@ -368,7 +368,6 @@ static inline u8 sdhci_readb(struct sdhci_host *host, int reg)
>   *
>   * @cfg:	Configuration structure to fill in (generally &plat->mmc)
>   * @name:	Device name (normally dev->name)
> - * @buswidth:	Bus width (in bits, such as 4 or 8)
>   * @caps:	Host capabilities (MMC_MODE_...)
>   * @max_clk:	Maximum supported clock speed in HZ (0 for default)
>   * @min_clk:	Minimum supported clock speed in HZ (0 for default)
> @@ -377,7 +376,7 @@ static inline u8 sdhci_readb(struct sdhci_host *host, int reg)
>   * @quirks:	Quick flags (SDHCI_QUIRK_...)
>   * @host_caps:	Additional host capabilities (0 if none)
>   */
> -int sdhci_setup_cfg(struct mmc_config *cfg, const char *name, int buswidth,
> +int sdhci_setup_cfg(struct mmc_config *cfg, const char *name,
>  		    uint caps, u32 max_clk, u32 min_clk, uint version,
>  		    uint quirks, uint host_caps);
>  
> 

looks good to me.

Reviewed-by: Minkyu Kang <mk7.kang@samsung.com>

but, this may make conflict with your patch (http://patchwork.ozlabs.org/patch/651179/)
What patch will apply first?
Please let me know.

Thanks,
Minkyu Kang.

  parent reply	other threads:[~2016-07-27  1:10 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CGME20160726100627epcas1p30faabf0759be69e1b671717b54054cad@epcas1p3.samsung.com>
2016-07-26 10:06 ` [U-Boot] [PATCH 1/2] mmc: sdhci: remove the unused argument for sdhci_setup_cfg Jaehoon Chung
2016-07-26 10:06   ` [U-Boot] [PATCH 2/2] mmc: sdhci: remove the unnecessary argumetns " Jaehoon Chung
2016-08-01  2:20     ` Simon Glass
2016-08-04  2:36       ` Simon Glass
2016-08-04  2:39         ` Jaehoon Chung
2016-07-27  1:10   ` Minkyu Kang [this message]
2016-07-27 11:26     ` [U-Boot] [PATCH 1/2] mmc: sdhci: remove the unused argument " Jaehoon Chung
2016-08-01  2:20   ` Simon Glass
2016-08-04  2:35     ` Simon Glass
2016-08-04  2:38       ` Jaehoon Chung
2016-08-04  2:40         ` Simon Glass
2016-08-04  2:43           ` Jaehoon Chung
2016-08-04  4:21             ` Simon Glass

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=579809EC.5090904@samsung.com \
    --to=mk7.kang@samsung.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox