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

2021-01-25 Thread Nicolas Pitre
On Mon, 25 Jan 2021, Rafael J. Wysocki wrote: > On Sun, Jan 24, 2021 at 12:07 AM Nicolas Pitre wrote: > > A note on sparse: > > According to https://lwn.net/Articles/109066/ there are things > > that sparse can't cope with. In particular, pm_clk_op_lock() and > > pm_clk_op_unlock() may or may not

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

2021-01-25 Thread Rafael J. Wysocki
On Sun, Jan 24, 2021 at 12:07 AM 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

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

2021-01-23 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