mbox series

[0/2] clk: renesas: RZ/G2L: Add support for no PM clocks

Message ID 20220929185119.335273-1-prabhakar.mahadev-lad.rj@bp.renesas.com (mailing list archive)
Headers show
Series clk: renesas: RZ/G2L: Add support for no PM clocks | expand

Message

Lad, Prabhakar Sept. 29, 2022, 6:51 p.m. UTC
From: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>

Hi All,

This patch series adds support for indicating MOD clocks as no PM (if any). 
Patch#1 adds DEF_NO_PM() macro to flagup no PM clock and patch #2 switches
sysclk and vclk clocks to no PM.

Sending it as an RFC as there wasn't any way we could obtain the priv data
due to which I had to create a static global var for rzg2l_cpg_priv.

RFC->v1
* Added no_pm_mod_clks and num_no_pm_mod_clks members as part of
  struct rzg2l_cpg_priv so that we dont loop the entire mod clocks
  array for each device probe.
* Patch#2 unchanged

RFC: https://patchwork.kernel.org/project/linux-renesas-soc/cover/20220927203044.751611-1-prabhakar.mahadev-lad.rj@bp.renesas.com/

Cheers,
Prabhakar

Lad Prabhakar (2):
  clk: renesas: rzg2l: Don't assume all CPG_MOD clocks support PM
  clk: renesas: r9a07g044: Mark CRU_SYSCLK and CRU_VCLK as no PM

 drivers/clk/renesas/r9a07g044-cpg.c |  4 +--
 drivers/clk/renesas/rzg2l-cpg.c     | 45 ++++++++++++++++++++++++-----
 drivers/clk/renesas/rzg2l-cpg.h     | 12 ++++++--
 3 files changed, 49 insertions(+), 12 deletions(-)