diff options
| author | Lad Prabhakar <[email protected]> | 2025-04-07 16:51:58 +0000 |
|---|---|---|
| committer | Geert Uytterhoeven <[email protected]> | 2025-04-22 09:27:12 +0000 |
| commit | ef224dd26ca3554ba810996710bcf671bc1c6be9 (patch) | |
| tree | d66e21a2077a47fd73c86e0fcf67b2153ae0cf5d /rust/helpers/xarray.c | |
| parent | clk: renesas: rzv2h: Use str_on_off() helper in rzv2h_mod_clock_endisable() (diff) | |
| download | kernel-ef224dd26ca3554ba810996710bcf671bc1c6be9.tar.gz kernel-ef224dd26ca3554ba810996710bcf671bc1c6be9.zip | |
clk: renesas: rzv2h: Use both CLK_ON and CLK_MON bits for clock state validation
Update the clock enable/disable logic to follow the latest hardware
manual's guidelines, ensuring that both CLK_ON and CLK_MON bits are used
to confirm the clock state.
According to the manual, enabling a clock requires setting the
CPG_CLK_ON bit and verifying the clock has started using the CPG_CLK_MON
bit. Similarly, disabling a clock requires clearing the CPG_CLK_ON bit
and confirming the clock has stopped via the CPG_CLK_MON bit.
Modify `rzv2h_mod_clock_is_enabled()` to check CLK_MON first and then
validate CLK_ON for a more accurate clock status evaluation.
Signed-off-by: Lad Prabhakar <[email protected]>
Reviewed-by: Geert Uytterhoeven <[email protected]>
Link: https://lore.kernel.org/[email protected]
Signed-off-by: Geert Uytterhoeven <[email protected]>
Diffstat (limited to 'rust/helpers/xarray.c')
0 files changed, 0 insertions, 0 deletions
