Re: [PATCH] mmc: append a file to change host clock at run time

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Oct 13, 2010 at 11:07 AM, Adrian Hunter <adrian.hunter@xxxxxxxxx> wrote:
>> +static int mmc_clock_opt_set(void *data, u64 val)
>> +{
>> + Â Â Â struct mmc_host *host = data;
>> +
>> + Â Â Â /* We need this check due to input value is u64 */
>> + Â Â Â if (val> Âhost->f_max)
>> + Â Â Â Â Â Â Â return -EINVAL;
>> +
>> + Â Â Â mmc_set_clock(host, (unsigned int) val);
>
> Probably need to claim the host here otherwise you might
> be changing the clock while a request is in progress
Yeah, good catch. Will fix. Thanks.

-- 
With Best Regards,
Andy Shevchenko
--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux