Re: [PATCH v2] PM / clk: make PM clock layer compatible with clocks that must sleep

2021-01-22 Thread Naresh Kamboju
On Fri, 22 Jan 2021 at 20:39, Rafael J. Wysocki wrote: > > On Thu, Jan 21, 2021 at 8:01 PM Rafael J. Wysocki wrote: > > > > On Thu, Jan 21, 2021 at 6:23 PM Nicolas Pitre wrote: > > > > > > The clock API splits its interface into sleepable ant atomic contexts: > > > > > > - clk_prepare/clk_unprep

Re: [PATCH v2] PM / clk: make PM clock layer compatible with clocks that must sleep

2021-01-22 Thread Rafael J. Wysocki
On Fri, Jan 22, 2021 at 4:59 PM Nicolas Pitre wrote: > > On Fri, 22 Jan 2021, Rafael J. Wysocki wrote: > > > On Fri, Jan 22, 2021 at 4:48 PM Naresh Kamboju > > wrote: > > > > > > On Fri, 22 Jan 2021 at 20:39, Rafael J. Wysocki wrote: > > > > > > > > On Thu, Jan 21, 2021 at 8:01 PM Rafael J. Wyso

Re: [PATCH v2] PM / clk: make PM clock layer compatible with clocks that must sleep

2021-01-22 Thread Nicolas Pitre
On Fri, 22 Jan 2021, Nicolas Pitre wrote: > On Fri, 22 Jan 2021, Rafael J. Wysocki wrote: > > > On Fri, Jan 22, 2021 at 4:48 PM Naresh Kamboju > > wrote: > > > > > > On Fri, 22 Jan 2021 at 20:39, Rafael J. Wysocki wrote: > > > > > > > > On Thu, Jan 21, 2021 at 8:01 PM Rafael J. Wysocki > > >

Re: [PATCH v2] PM / clk: make PM clock layer compatible with clocks that must sleep

2021-01-22 Thread Nicolas Pitre
On Fri, 22 Jan 2021, Rafael J. Wysocki wrote: > On Fri, Jan 22, 2021 at 4:48 PM Naresh Kamboju > wrote: > > > > On Fri, 22 Jan 2021 at 20:39, Rafael J. Wysocki wrote: > > > > > > On Thu, Jan 21, 2021 at 8:01 PM Rafael J. Wysocki > > > wrote: > > > > > > > > On Thu, Jan 21, 2021 at 6:23 PM Nico

Re: [PATCH v2] PM / clk: make PM clock layer compatible with clocks that must sleep

2021-01-22 Thread Rafael J. Wysocki
On Fri, Jan 22, 2021 at 4:48 PM Naresh Kamboju wrote: > > On Fri, 22 Jan 2021 at 20:39, Rafael J. Wysocki wrote: > > > > On Thu, Jan 21, 2021 at 8:01 PM Rafael J. Wysocki wrote: > > > > > > On Thu, Jan 21, 2021 at 6:23 PM Nicolas Pitre wrote: > > > > > > > > The clock API splits its interface i

Re: [PATCH v2] PM / clk: make PM clock layer compatible with clocks that must sleep

2021-01-22 Thread Nicolas Pitre
On Fri, 22 Jan 2021, Rafael J. Wysocki wrote: > > > +/** > > > + * pm_clk_list_unlock - counterpart to pm_clk_list_lock(). > > > + * @psd: the same pm_subsys_data instance previously passed to > > > + * pm_clk_list_lock(). > > > + */ > > > +static void pm_clk_list_unlock(struct pm_subsys_data

Re: [PATCH v2] PM / clk: make PM clock layer compatible with clocks that must sleep

2021-01-22 Thread Rafael J. Wysocki
On Thu, Jan 21, 2021 at 8:01 PM Rafael J. Wysocki wrote: > > On Thu, Jan 21, 2021 at 6:23 PM Nicolas Pitre wrote: > > > > The clock API splits its interface into sleepable ant atomic contexts: > > > > - clk_prepare/clk_unprepare for stuff that might sleep > > > > - clk_enable_clk_disable for anyt

Re: [PATCH v2] PM / clk: make PM clock layer compatible with clocks that must sleep

2021-01-21 Thread Rafael J. Wysocki
On Thu, Jan 21, 2021 at 6:23 PM Nicolas Pitre wrote: > > The clock API splits its interface into sleepable ant atomic contexts: > > - clk_prepare/clk_unprepare for stuff that might sleep > > - clk_enable_clk_disable for anything that may be done in atomic context > > The code handling runtime PM f

[PATCH v2] PM / clk: make PM clock layer compatible with clocks that must sleep

2021-01-21 Thread Nicolas Pitre
The clock API splits its interface into sleepable ant atomic contexts: - clk_prepare/clk_unprepare for stuff that might sleep - clk_enable_clk_disable for anything that may be done in atomic context The code handling runtime PM for clocks only calls clk_disable() on suspend requests, and clk_ena