linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] Link consumer with clock driver
@ 2018-11-22 21:22 Miquel Raynal
  2018-11-22 21:22 ` [PATCH 1/2] clk: core: clarify the check for runtime PM Miquel Raynal
                   ` (2 more replies)
  0 siblings, 3 replies; 14+ messages in thread
From: Miquel Raynal @ 2018-11-22 21:22 UTC (permalink / raw)
  To: Michael Turquette, Stephen Boyd, Russell King
  Cc: linux-clk, linux-kernel, linux-arm-kernel, Thomas Petazzoni,
	Antoine Tenart, Maxime Chevallier, Gregory Clement, Nadav Haklai,
	Miquel Raynal

Hello,

While working on suspend to RAM feature, I ran into troubles multiple
times when clocks where not suspending/resuming at the desired time. I
had a look at the core and I think the same logic as in the
regulator's core may be applied here to (very easily) fix this issue:
using device links.

The only additional change I had to do was to always (when available)
populate the device entry of the core clock structure so that it could
be used later. This is the purpose of patch 1. Patch 2 actually adds
support for device links.

As I am not used to hack into the clock subsystem I might have missed
something big preventing such change but so far I could not see
anything wrong with it. As this touches core code, I am of course
entirely open to suggestions.

Thanks,
Miquèl


Miquel Raynal (2):
  clk: core: clarify the check for runtime PM
  clk: core: link consumer with clock driver

 drivers/clk/clk.c            | 31 +++++++++++++++++++++++++------
 drivers/clk/clkdev.c         | 13 ++++++++++---
 include/linux/clk-provider.h |  2 ++
 3 files changed, 37 insertions(+), 9 deletions(-)

-- 
2.19.1


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

end of thread, other threads:[~2018-12-03 22:28 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-22 21:22 [PATCH 0/2] Link consumer with clock driver Miquel Raynal
2018-11-22 21:22 ` [PATCH 1/2] clk: core: clarify the check for runtime PM Miquel Raynal
2018-11-22 21:22 ` [PATCH 2/2] clk: core: link consumer with clock driver Miquel Raynal
2018-11-23  8:30   ` kbuild test robot
2018-11-23  9:11     ` Miquel Raynal
2018-11-30  9:26       ` Stephen Boyd
2018-11-30 10:20         ` Miquel Raynal
2018-12-03 19:20           ` Stephen Boyd
2018-12-03 22:16             ` Miquel Raynal
2018-12-03 22:28               ` Stephen Boyd
2018-11-27 12:38   ` Maxime Ripard
2018-11-29 16:03     ` Miquel Raynal
2018-11-30  9:24 ` [PATCH 0/2] Link " Stephen Boyd
2018-11-30 12:00   ` Miquel Raynal

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).