Linux clock framework development
 help / color / mirror / Atom feed
* [PATCH RFC 0/3] Add clk_disable_unprepare_sync()
@ 2024-01-31 16:09 Biju Das
  2024-01-31 16:09 ` [PATCH RFC 1/3] clk: " Biju Das
  2024-01-31 16:09 ` [PATCH RFC 2/3] clk: renesas: rzg2l: Add disable_sync() callback Biju Das
  0 siblings, 2 replies; 5+ messages in thread
From: Biju Das @ 2024-01-31 16:09 UTC (permalink / raw)
  To: Michael Turquette, Stephen Boyd, Sakari Ailus, Laurent Pinchart,
	Mauro Carvalho Chehab, Hans Verkuil, Russell King
  Cc: Biju Das, linux-clk, Geert Uytterhoeven, Prabhakar Mahadev Lad,
	Biju Das, linux-media, linux-renesas-soc

Currently clk_disable() is not synchronous. Consumers just
gate the clock, but it doesn't check actually the clock is
gated.

On RZ/G2L SMARC EVK before starting link reception we need to
make sure the video clock is off, then start reception and
turn video clock back to on.

Introduce clk_disable_unprepare_sync() to synchronize
the clock gate operation.

Note:
 patch#3 depend upon [1]

[1] https://patchwork.kernel.org/project/linux-renesas-soc/patch/20240130164115.116613-5-biju.das.jz@bp.renesas.com/

Biju Das (3):
  clk: Add clk_disable_unprepare_sync()
  clk: renesas: rzg2l: Add disable_sync() callback
  media: platform: rzg2l-cru: rzg2l-video: Use
    clk_disable_unprepare_sync()

 drivers/clk/clk.c                             | 36 ++++++++++++++-----
 drivers/clk/renesas/rzg2l-cpg.c               | 23 ++++++++++++
 .../platform/renesas/rzg2l-cru/rzg2l-csi2.c   |  2 +-
 include/linux/clk-provider.h                  |  4 +++
 include/linux/clk.h                           | 25 +++++++++++++
 5 files changed, 80 insertions(+), 10 deletions(-)

-- 
2.25.1


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

end of thread, other threads:[~2024-02-11 16:17 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-31 16:09 [PATCH RFC 0/3] Add clk_disable_unprepare_sync() Biju Das
2024-01-31 16:09 ` [PATCH RFC 1/3] clk: " Biju Das
2024-02-06 22:58   ` Laurent Pinchart
2024-02-11 16:17     ` Biju Das
2024-01-31 16:09 ` [PATCH RFC 2/3] clk: renesas: rzg2l: Add disable_sync() callback Biju Das

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox