diff options
author | Adam Ford <[email protected]> | 2021-03-13 06:28:17 -0600 |
---|---|---|
committer | Abel Vesa <[email protected]> | 2021-04-04 22:39:04 +0300 |
commit | 379c9a24cc239000b1dec53db02fe17a86947423 (patch) | |
tree | 7333df87f9a15cda785293506eef7a8f5067d763 /scripts/gdb/linux/timerlist.py | |
parent | a38fd8748464831584a19438cbb3082b5a2dab15 (diff) |
clk: imx: Fix reparenting of UARTs not associated with stdout
Most if not all i.MX SoC's call a function which enables all UARTS.
This is a problem for users who need to re-parent the clock source,
because any attempt to change the parent results in an busy error
due to the fact that the clocks have been enabled already.
clk: failed to reparent uart1 to sys_pll1_80m: -16
Instead of pre-initializing all UARTS, scan the device tree to see
which UART clocks are associated to stdout, and only enable those
UART clocks if it's needed early. This will move initialization of
the remaining clocks until after the parenting of the clocks.
When the clocks are shutdown, this mechanism will also disable any
clocks that were pre-initialized.
Fixes: 9461f7b33d11c ("clk: fix CLK_SET_RATE_GATE with clock rate protection")
Suggested-by: Aisheng Dong <[email protected]>
Signed-off-by: Adam Ford <[email protected]>
Reviewed-by: Abel Vesa <[email protected]>
Tested-by: Ahmad Fatoum <[email protected]>
Signed-off-by: Abel Vesa <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/timerlist.py')
0 files changed, 0 insertions, 0 deletions