lkml.org 
[lkml]   [2018]   [Feb]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH 2/2] i2c: add support for Socionext SynQuacer I2C controller
On Wed, Feb 21, 2018 at 8:20 PM, Ard Biesheuvel
<ard.biesheuvel@linaro.org> wrote:
> On 20 February 2018 at 19:39, Andy Shevchenko <andy.shevchenko@gmail.com> wrote:
>> On Tue, Feb 20, 2018 at 8:04 PM, Ard Biesheuvel
>> <ard.biesheuvel@linaro.org> wrote:
>>> On 20 February 2018 at 14:02, Andy Shevchenko <andy.shevchenko@gmail.com> wrote:

>>>>> + ret = device_property_read_u32(&pdev->dev,
>>>>> + "socionext,pclk-rate",
>>>>> + &i2c->clkrate);
>>>>
>>>> I suppose for ACPI we just register a fixed rate clock and use it in
>>>> the driver in the same way as in OF case.
>>>> I guess at some point we even can provide a generic clock provider for
>>>> ACPI based on rate property.
>>
>>> Is there a question here? Do you want me to change anything?
>>
>> Is it opener for discussion. At least in the drivers we have done for
>> x86 we do the way I described.
>>
>> See, for example, drivers/mfd/intel-lpss.c

> OK, I see what you mean now. But for this driver, creating a fixed
> rate clock with no controls whatsoever, only to interrogate it for its
> rate (which we retrieved from the ACPI device node in the first place)
> seems rather pointless to me. Am I missing something here?

Somehow you are right. That's why I'm thinking that we need to provide
a generic clock provider for such cases.
It's really not a driver business to know the details of resource provider.

--
With Best Regards,
Andy Shevchenko

\
 
 \ /
  Last update: 2018-02-21 19:55    [W:0.104 / U:0.132 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site