MLK-19966 clk: imx: Skip disabling uart clocks if m4 is active
authorAbel Vesa <abel.vesa@nxp.com>
Mon, 29 Oct 2018 11:50:18 +0000 (13:50 +0200)
committerLeonard Crestez <leonard.crestez@nxp.com>
Wed, 17 Apr 2019 23:51:34 +0000 (02:51 +0300)
No way of knowing when any of the uart clocks is currently
in use by m4 so just skip the gating for all of them.

Signed-off-by: Abel Vesa <abel.vesa@nxp.com>
Reviewed-by: Leonard Crestez <leonard.crestez@nxp.com>
Signed-off-by: Arulpandiyan Vadivel <arulpandiyan_vadivel@mentor.com>
drivers/clk/imx/clk.c

index 7a3fc53..74814fb 100644 (file)
@@ -104,6 +104,9 @@ void __init imx_register_uart_clocks(struct clk ** const clks[])
 
 static int __init imx_clk_disable_uart(void)
 {
+       if (imx_src_is_m4_enabled())
+               return 0;
+
        if (imx_keep_uart_clocks && imx_uart_clocks) {
                int i;