diff options
| author | Maksim Kiselev <[email protected]> | 2025-08-29 11:25:00 +0300 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2025-12-04 09:39:26 -0600 |
| commit | b493db39ea7fb1205d3a2df269352cb79874c1c7 (patch) | |
| tree | 9ca993e2f0c29aea4e2d1eb7f1b2e56ea0db7743 /scripts/checkpatch.pl | |
| parent | 33750d8d88d519a6ec90da689776d8afccccf2c4 (diff) | |
clk: Only enable the parent clock if the clock was enabled before reparenting
The current implementation of clk_set_parent() unconditionally enables
the new parent clock, even if the target clock was not previously enabled.
To avoid this implicit behavior, this patch adds a check for whether
the target clock has been enabled before parent enabling..
Fixes: ac30d90f336 ("clk: Ensure the parent clocks are enabled while reparenting")
Signed-off-by: Maksim Kiselev <[email protected]>
Reviewed-by: Miquel Raynal <[email protected]>
Diffstat (limited to 'scripts/checkpatch.pl')
0 files changed, 0 insertions, 0 deletions
