lkml.org 
[lkml]   [2022]   [Nov]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRE: [PATCH v2 2/4] pwm: Add Apple PWM controller
Date
> Subject: Re: [PATCH v2 2/4] pwm: Add Apple PWM controller
>
> On Wed, 2 Nov 2022 at 18:33, Biju Das <biju.das.jz@bp.renesas.com>
> wrote:
> > > + clk = devm_clk_get_enabled(&pdev->dev, NULL);
> > > + if (IS_ERR(clk))
> > > + return PTR_ERR(clk);
> >
> > What is your use case?
> >
> > PWM is configured by bootloader intially??
> >
> > Or
> >
> > PWM is configured by Linux not by the bootloader?
> >
> > Or
> >
> > Driver needs to support both ??
>
> The PWM device itself is configured by linux, but the clock it uses is
> the systemwide 24 MHz clock, and that is configured by platform
> firmware.

I just asked, because you are unnecessarily turning on the clock or increasing the usage
Count, even if it is not used by anyone during probe.

Cheers,
Biju
\
 
 \ /
  Last update: 2022-11-02 17:04    [W:0.088 / U:0.448 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site