diff mbox

[1/3] mmc: meson-gx: fix setting f_min

Message ID e26a74f8-9819-6940-4c90-225377cc0a3e@gmail.com (mailing list archive)
State Superseded
Headers show

Commit Message

Heiner Kallweit Jan. 26, 2017, 9:41 p.m. UTC
Currently f_min is set to 4 MHz whilst the comment states 400 MHz.
I think the itention is to set f_min to 400 kHz.
Change value and comment accordingly.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
---
 drivers/mmc/host/meson-gx-mmc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Kevin Hilman Jan. 27, 2017, 5:42 p.m. UTC | #1
Heiner Kallweit <hkallweit1@gmail.com> writes:

> Currently f_min is set to 4 MHz whilst the comment states 400 MHz.
> I think the itention is to set f_min to 400 kHz.

Yes indeed.  

> Change value and comment accordingly.
>
> Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>

Acked-by: Kevin Hilman <khilman@baylibre.com>

> ---
>  drivers/mmc/host/meson-gx-mmc.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/mmc/host/meson-gx-mmc.c b/drivers/mmc/host/meson-gx-mmc.c
> index bf19d03c..cf071756 100644
> --- a/drivers/mmc/host/meson-gx-mmc.c
> +++ b/drivers/mmc/host/meson-gx-mmc.c
> @@ -268,7 +268,7 @@ static int meson_mmc_clk_init(struct meson_host *host)
>  	if (f_min != UINT_MAX)
>  		f_min = DIV_ROUND_UP(CLK_SRC_XTAL_RATE, CLK_DIV_MAX);
>  	else
> -		f_min = 4000000;  /* default min: 400 MHz */
> +		f_min = 400000;  /* default min: 400 kHz */
>  	host->mmc->f_min = f_min;
>  
>  	/* create the mux */
Ulf Hansson Jan. 31, 2017, 11:55 a.m. UTC | #2
On 26 January 2017 at 22:41, Heiner Kallweit <hkallweit1@gmail.com> wrote:
> Currently f_min is set to 4 MHz whilst the comment states 400 MHz.
> I think the itention is to set f_min to 400 kHz.
> Change value and comment accordingly.
>
> Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>

Heiner, could you please collect the mmc meson changes that you
recently have submitted in one series and re-post to linux-mmc. I can
pick them up from there.

Kind regards
Uffe

> ---
>  drivers/mmc/host/meson-gx-mmc.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/mmc/host/meson-gx-mmc.c b/drivers/mmc/host/meson-gx-mmc.c
> index bf19d03c..cf071756 100644
> --- a/drivers/mmc/host/meson-gx-mmc.c
> +++ b/drivers/mmc/host/meson-gx-mmc.c
> @@ -268,7 +268,7 @@ static int meson_mmc_clk_init(struct meson_host *host)
>         if (f_min != UINT_MAX)
>                 f_min = DIV_ROUND_UP(CLK_SRC_XTAL_RATE, CLK_DIV_MAX);
>         else
> -               f_min = 4000000;  /* default min: 400 MHz */
> +               f_min = 400000;  /* default min: 400 kHz */
>         host->mmc->f_min = f_min;
>
>         /* create the mux */
> --
> 2.11.0
>
Heiner Kallweit Jan. 31, 2017, 8:32 p.m. UTC | #3
Am 31.01.2017 um 12:55 schrieb Ulf Hansson:
> On 26 January 2017 at 22:41, Heiner Kallweit <hkallweit1@gmail.com> wrote:
>> Currently f_min is set to 4 MHz whilst the comment states 400 MHz.
>> I think the itention is to set f_min to 400 kHz.
>> Change value and comment accordingly.
>>
>> Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
> 
> Heiner, could you please collect the mmc meson changes that you
> recently have submitted in one series and re-post to linux-mmc. I can
> pick them up from there.
> 
Sure. Apart from the ones you've reviewed already I have few more.
I'll add them to the patch set.

Regards, Heiner

> Kind regards
> Uffe
> 
>> ---
>>  drivers/mmc/host/meson-gx-mmc.c | 2 +-
>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/drivers/mmc/host/meson-gx-mmc.c b/drivers/mmc/host/meson-gx-mmc.c
>> index bf19d03c..cf071756 100644
>> --- a/drivers/mmc/host/meson-gx-mmc.c
>> +++ b/drivers/mmc/host/meson-gx-mmc.c
>> @@ -268,7 +268,7 @@ static int meson_mmc_clk_init(struct meson_host *host)
>>         if (f_min != UINT_MAX)
>>                 f_min = DIV_ROUND_UP(CLK_SRC_XTAL_RATE, CLK_DIV_MAX);
>>         else
>> -               f_min = 4000000;  /* default min: 400 MHz */
>> +               f_min = 400000;  /* default min: 400 kHz */
>>         host->mmc->f_min = f_min;
>>
>>         /* create the mux */
>> --
>> 2.11.0
>>
>
Kevin Hilman Jan. 31, 2017, 10:44 p.m. UTC | #4
On Tue, Jan 31, 2017 at 12:32 PM, Heiner Kallweit <hkallweit1@gmail.com> wrote:
> Am 31.01.2017 um 12:55 schrieb Ulf Hansson:
>> On 26 January 2017 at 22:41, Heiner Kallweit <hkallweit1@gmail.com> wrote:
>>> Currently f_min is set to 4 MHz whilst the comment states 400 MHz.
>>> I think the itention is to set f_min to 400 kHz.
>>> Change value and comment accordingly.
>>>
>>> Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
>>
>> Heiner, could you please collect the mmc meson changes that you
>> recently have submitted in one series and re-post to linux-mmc. I can
>> pick them up from there.
>>
> Sure. Apart from the ones you've reviewed already I have few more.
> I'll add them to the patch set.

When you re-post, it's customary to collect and add the various tags
(acked-by, tested-by, reviewed-by) to the changelog so it's easy to
tell what's already been reviewed/acked etc.

Kevin
Kevin Hilman Feb. 1, 2017, 12:36 a.m. UTC | #5
On Tue, Jan 31, 2017 at 2:44 PM, Kevin Hilman <khilman@baylibre.com> wrote:
> On Tue, Jan 31, 2017 at 12:32 PM, Heiner Kallweit <hkallweit1@gmail.com> wrote:
>> Am 31.01.2017 um 12:55 schrieb Ulf Hansson:
>>> On 26 January 2017 at 22:41, Heiner Kallweit <hkallweit1@gmail.com> wrote:
>>>> Currently f_min is set to 4 MHz whilst the comment states 400 MHz.
>>>> I think the itention is to set f_min to 400 kHz.
>>>> Change value and comment accordingly.
>>>>
>>>> Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
>>>
>>> Heiner, could you please collect the mmc meson changes that you
>>> recently have submitted in one series and re-post to linux-mmc. I can
>>> pick them up from there.
>>>
>> Sure. Apart from the ones you've reviewed already I have few more.
>> I'll add them to the patch set.
>
> When you re-post, it's customary to collect and add the various tags
> (acked-by, tested-by, reviewed-by) to the changelog so it's easy to
> tell what's already been reviewed/acked etc.

Also, please be sure to Cc the linux-amlogic list.

Thanks,

Kevin
diff mbox

Patch

diff --git a/drivers/mmc/host/meson-gx-mmc.c b/drivers/mmc/host/meson-gx-mmc.c
index bf19d03c..cf071756 100644
--- a/drivers/mmc/host/meson-gx-mmc.c
+++ b/drivers/mmc/host/meson-gx-mmc.c
@@ -268,7 +268,7 @@  static int meson_mmc_clk_init(struct meson_host *host)
 	if (f_min != UINT_MAX)
 		f_min = DIV_ROUND_UP(CLK_SRC_XTAL_RATE, CLK_DIV_MAX);
 	else
-		f_min = 4000000;  /* default min: 400 MHz */
+		f_min = 400000;  /* default min: 400 kHz */
 	host->mmc->f_min = f_min;
 
 	/* create the mux */