All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] clk: cs2000: set pm_ops in hibernate-compatible way
@ 2018-03-20  8:33 Nikita Yushchenko
  2018-04-06 18:23   ` Stephen Boyd
  0 siblings, 1 reply; 3+ messages in thread
From: Nikita Yushchenko @ 2018-03-20  8:33 UTC (permalink / raw)
  To: Michael Turquette, Stephen Boyd, Kuninori Morimoto, Gaku Inami
  Cc: linux-clk, linux-kernel, Nikita Yushchenko

Use SET_LATE_SYSTEM_SLEEP_PM_OPS() macro instead of direct assignment to
.resume_early field.

This fixes initialization of CS2000 in restore from hibernation in case
of kernel used to load image did not initialize CS2000 while kernel
being restored had CS2000 initialized.

Signed-off-by: Nikita Yushchenko <nikita.yoush@cogentembedded.com>
---
 drivers/clk/clk-cs2000-cp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/clk/clk-cs2000-cp.c b/drivers/clk/clk-cs2000-cp.c
index e8ea81c30f0c..c58019750b7e 100644
--- a/drivers/clk/clk-cs2000-cp.c
+++ b/drivers/clk/clk-cs2000-cp.c
@@ -549,7 +549,7 @@ static int cs2000_resume(struct device *dev)
 }
 
 static const struct dev_pm_ops cs2000_pm_ops = {
-	.resume_early	= cs2000_resume,
+	SET_LATE_SYSTEM_SLEEP_PM_OPS(NULL, cs2000_resume)
 };
 
 static struct i2c_driver cs2000_driver = {
-- 
2.11.0

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] clk: cs2000: set pm_ops in hibernate-compatible way
  2018-03-20  8:33 [PATCH] clk: cs2000: set pm_ops in hibernate-compatible way Nikita Yushchenko
@ 2018-04-06 18:23   ` Stephen Boyd
  0 siblings, 0 replies; 3+ messages in thread
From: Stephen Boyd @ 2018-04-06 18:23 UTC (permalink / raw)
  To: Gaku Inami, Kuninori Morimoto, Michael Turquette, Nikita Yushchenko
  Cc: linux-clk, linux-kernel, Nikita Yushchenko

Quoting Nikita Yushchenko (2018-03-20 01:33:23)
> Use SET_LATE_SYSTEM_SLEEP_PM_OPS() macro instead of direct assignment to
> .resume_early field.
> 
> This fixes initialization of CS2000 in restore from hibernation in case
> of kernel used to load image did not initialize CS2000 while kernel
> being restored had CS2000 initialized.
> 
> Signed-off-by: Nikita Yushchenko <nikita.yoush@cogentembedded.com>
> ---

Applied to clk-next

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] clk: cs2000: set pm_ops in hibernate-compatible way
@ 2018-04-06 18:23   ` Stephen Boyd
  0 siblings, 0 replies; 3+ messages in thread
From: Stephen Boyd @ 2018-04-06 18:23 UTC (permalink / raw)
  To: Gaku Inami, Kuninori Morimoto, Michael Turquette, Nikita Yushchenko
  Cc: linux-clk, linux-kernel, Nikita Yushchenko

Quoting Nikita Yushchenko (2018-03-20 01:33:23)
> Use SET_LATE_SYSTEM_SLEEP_PM_OPS() macro instead of direct assignment to
> .resume_early field.
> =

> This fixes initialization of CS2000 in restore from hibernation in case
> of kernel used to load image did not initialize CS2000 while kernel
> being restored had CS2000 initialized.
> =

> Signed-off-by: Nikita Yushchenko <nikita.yoush@cogentembedded.com>
> ---

Applied to clk-next

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-04-06 18:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-20  8:33 [PATCH] clk: cs2000: set pm_ops in hibernate-compatible way Nikita Yushchenko
2018-04-06 18:23 ` Stephen Boyd
2018-04-06 18:23   ` Stephen Boyd

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.