If slow clk settings are already good on boot, it means the VDDBU power was kept during the whole poweroff period, and thus the slow clock is functionnal. There is no need to reconfigure it.
This fixes an issue where some boards got bricked when power is lost during the configuration of the slow clock. There is a race condition underneath the logic of slowclk_switch_osc32() which causes all slow clock sources to be disabled if power is lost during the clock source switch.
slowclk_switch_osc32 will now avoid the clock source switching if it is not necessary.
If slow clk settings are already good on boot, it means the VDDBU power was kept during the whole poweroff period, and thus the slow clock is functionnal. There is no need to reconfigure it.
This fixes an issue where some boards got bricked when power is lost during the configuration of the slow clock. There is a race condition underneath the logic of slowclk_switch_osc32() which causes all slow clock sources to be disabled if power is lost during the clock source switch.
slowclk_switch_osc32 will now avoid the clock source switching if it is not necessary.