Messages in this thread | | | From | Biju Das <> | Subject | RE: [PATCH v2 2/4] pwm: Add Apple PWM controller | Date | Wed, 2 Nov 2022 16:43:28 +0000 |
| |
> Subject: Re: [PATCH v2 2/4] pwm: Add Apple PWM controller > > On Wed, 2 Nov 2022 at 19:29, Biju Das <biju.das.jz@bp.renesas.com> > wrote: > > > > Then enable the clk whenever pwm is enabled And disable the clk > > whenever pwm is disabled. > I can do that, but I do not see the point in doing that. This clock is > active whenever the system is turned on, all this will result in is > some unnecessary clock refcount increments/decrements.
OK for me, as I do not know about your system. I just pointed out you are unnecessarily turning on the clock during probe even if the pwm is not used.
Cheers, Biju
| |