lkml.org 
[lkml]   [2014]   [May]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v4 11/13] mmc: mmci: add f_max to variant structure
Thanks Ulf,

On 30/05/14 11:28, Ulf Hansson wrote:
>> */
>> >- if (host->mclk > 100000000) {
>> >- ret = clk_set_rate(host->clk, 100000000);
>> >+ if (host->mclk > host->variant->f_max) {
> You can use the local variant pointer directly, instead of host->variant.
>
yes, Will do that in next version.

Thanks,
srini
>> >+ ret = clk_set_rate(host->clk, host->variant->f_max);
>> > if (ret < 0)
>> > goto clk_disable;
>> > host->mclk = clk_get_rate(host->clk);
>> >--


\
 
 \ /
  Last update: 2014-05-30 13:01    [W:0.076 / U:0.064 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site