Re: [U-Boot] [PATCH 1/2] mmc: sdhci: remove the unused argument for sdhci_setup_cfg

2016-08-03 Thread Simon Glass
Hi Jaehoon,

On 3 August 2016 at 20:43, Jaehoon Chung  wrote:
> On 08/04/2016 11:40 AM, Simon Glass wrote:
>> Hi Jaehoon,
>>
>> On 3 August 2016 at 20:38, Jaehoon Chung  wrote:
>>> Hi Simon,
>>>
>>> On 08/04/2016 11:35 AM, Simon Glass wrote:
 Hi Jaehoon,

 On 31 July 2016 at 20:20, Simon Glass  wrote:
> On 26 July 2016 at 04:06, Jaehoon Chung  wrote:
>> buswidth isn't used anywhere in sdhci_setup_cfg.
>>
>> Signed-off-by: Jaehoon Chung 
>> ---
>>  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(-)
>
> Reviewed-by: Simon Glass 

 Are you going to pick this up? I suggest that it goes in now since it
 will affect people porting drivers.
>>>
>>> I think it's related with DM side. So if you can pick this, I'm ok.
>>> Otherwise, i will apply on u-boot-mmc, today..And tomorrow i will request 
>>> pull.
>>
>> Yes it is DM-related, but if you don't mind I think it would be good
>> for you to pick these up.
>
> Ok, I will do. And tomorrow, I will request pull to Tom for u-boot-mmc with 
> other mmc patches.
> How about?

Sounds good thank you.

- Simon
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH 1/2] mmc: sdhci: remove the unused argument for sdhci_setup_cfg

2016-08-03 Thread Jaehoon Chung
On 08/04/2016 11:40 AM, Simon Glass wrote:
> Hi Jaehoon,
> 
> On 3 August 2016 at 20:38, Jaehoon Chung  wrote:
>> Hi Simon,
>>
>> On 08/04/2016 11:35 AM, Simon Glass wrote:
>>> Hi Jaehoon,
>>>
>>> On 31 July 2016 at 20:20, Simon Glass  wrote:
 On 26 July 2016 at 04:06, Jaehoon Chung  wrote:
> buswidth isn't used anywhere in sdhci_setup_cfg.
>
> Signed-off-by: Jaehoon Chung 
> ---
>  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(-)

 Reviewed-by: Simon Glass 
>>>
>>> Are you going to pick this up? I suggest that it goes in now since it
>>> will affect people porting drivers.
>>
>> I think it's related with DM side. So if you can pick this, I'm ok.
>> Otherwise, i will apply on u-boot-mmc, today..And tomorrow i will request 
>> pull.
> 
> Yes it is DM-related, but if you don't mind I think it would be good
> for you to pick these up.

Ok, I will do. And tomorrow, I will request pull to Tom for u-boot-mmc with 
other mmc patches.
How about? 

Best Regards,
Jaehoon Chung

> 
> Regards,
> Simon
> 
> 
> 

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH 1/2] mmc: sdhci: remove the unused argument for sdhci_setup_cfg

2016-08-03 Thread Simon Glass
Hi Jaehoon,

On 3 August 2016 at 20:38, Jaehoon Chung  wrote:
> Hi Simon,
>
> On 08/04/2016 11:35 AM, Simon Glass wrote:
>> Hi Jaehoon,
>>
>> On 31 July 2016 at 20:20, Simon Glass  wrote:
>>> On 26 July 2016 at 04:06, Jaehoon Chung  wrote:
 buswidth isn't used anywhere in sdhci_setup_cfg.

 Signed-off-by: Jaehoon Chung 
 ---
  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(-)
>>>
>>> Reviewed-by: Simon Glass 
>>
>> Are you going to pick this up? I suggest that it goes in now since it
>> will affect people porting drivers.
>
> I think it's related with DM side. So if you can pick this, I'm ok.
> Otherwise, i will apply on u-boot-mmc, today..And tomorrow i will request 
> pull.

Yes it is DM-related, but if you don't mind I think it would be good
for you to pick these up.

Regards,
Simon
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH 1/2] mmc: sdhci: remove the unused argument for sdhci_setup_cfg

2016-08-03 Thread Jaehoon Chung
Hi Simon,

On 08/04/2016 11:35 AM, Simon Glass wrote:
> Hi Jaehoon,
> 
> On 31 July 2016 at 20:20, Simon Glass  wrote:
>> On 26 July 2016 at 04:06, Jaehoon Chung  wrote:
>>> buswidth isn't used anywhere in sdhci_setup_cfg.
>>>
>>> Signed-off-by: Jaehoon Chung 
>>> ---
>>>  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(-)
>>
>> Reviewed-by: Simon Glass 
> 
> Are you going to pick this up? I suggest that it goes in now since it
> will affect people porting drivers.

I think it's related with DM side. So if you can pick this, I'm ok.
Otherwise, i will apply on u-boot-mmc, today..And tomorrow i will request pull.

> 
> Regards,
> Simon
> 
> 
> 

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH 1/2] mmc: sdhci: remove the unused argument for sdhci_setup_cfg

2016-08-03 Thread Simon Glass
Hi Jaehoon,

On 31 July 2016 at 20:20, Simon Glass  wrote:
> On 26 July 2016 at 04:06, Jaehoon Chung  wrote:
>> buswidth isn't used anywhere in sdhci_setup_cfg.
>>
>> Signed-off-by: Jaehoon Chung 
>> ---
>>  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(-)
>
> Reviewed-by: Simon Glass 

Are you going to pick this up? I suggest that it goes in now since it
will affect people porting drivers.

Regards,
Simon
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH 1/2] mmc: sdhci: remove the unused argument for sdhci_setup_cfg

2016-07-31 Thread Simon Glass
On 26 July 2016 at 04:06, Jaehoon Chung  wrote:
> buswidth isn't used anywhere in sdhci_setup_cfg.
>
> Signed-off-by: Jaehoon Chung 
> ---
>  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(-)

Reviewed-by: Simon Glass 
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH 1/2] mmc: sdhci: remove the unused argument for sdhci_setup_cfg

2016-07-27 Thread Jaehoon Chung
Hi,

On 07/27/2016 10:10 AM, Minkyu Kang wrote:
> Hi,
> 
> On 26/07/16 19:06, Jaehoon Chung wrote:
>> buswidth isn't used anywhere in sdhci_setup_cfg.
>>
>> Signed-off-by: Jaehoon Chung 
>> ---
>>  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(>cfg, dev->name, host->bus_width,
>> -  caps, 0, 0, host->version, host->quirks, 0);
>> +ret = sdhci_setup_cfg(>cfg, dev->name, caps,
>> +0, 0, host->version, host->quirks, 0);
>>  host->mmc = >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(>cfg, host->name, host->bus_width, caps,
>> +if (sdhci_setup_cfg(>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(>cfg, dev->name, host->bus_width,
>> +ret = sdhci_setup_cfg(>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 >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 
> 
> but, this may make conflict with your patch 
> (http://patchwork.ozlabs.org/patch/651179/)
> What patch will apply first?
> Please let me know.

If applied my patches, then i want to apply this at first, not "s5p_sdhci: 
support the Driver model for Exynos".
But I want to know Simon's opinion about this patch. I don't know correct why 
passed the buswidth.

The below patch will resend with other patch..(Modify Device-tree and remove 
the unused codes.)
http://patchwork.ozlabs.org/patch/651179

Best Regards,
Jaehoon Chung

> 
> Thanks,
> Minkyu Kang.
> 
> 
> 
> 

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH 1/2] mmc: sdhci: remove the unused argument for sdhci_setup_cfg

2016-07-26 Thread Minkyu Kang
Hi,

On 26/07/16 19:06, Jaehoon Chung wrote:
> buswidth isn't used anywhere in sdhci_setup_cfg.
> 
> Signed-off-by: Jaehoon Chung 
> ---
>  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(>cfg, dev->name, host->bus_width,
> -   caps, 0, 0, host->version, host->quirks, 0);
> + ret = sdhci_setup_cfg(>cfg, dev->name, caps,
> + 0, 0, host->version, host->quirks, 0);
>   host->mmc = >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(>cfg, host->name, host->bus_width, caps,
> + if (sdhci_setup_cfg(>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(>cfg, dev->name, host->bus_width,
> + ret = sdhci_setup_cfg(>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 >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 

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.


___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot