• Tony Lindgren's avatar
    mfd: twl4030-power: Fix hang on reboot if sleep configuration was loaded earlier · fc7d76e4
    Tony Lindgren authored
    Looks like we can still hit the issue of wrong load order of
    twl4030 configuration. If we have a sleep configuration loaded,
    and do a warm reset, the device can hang while initializing the
    wakeup12 sequence. We do have a warning message about wrong order
    of twl4030 configuration, but in this case it does not help as
    the sleep configuration was loaded during the previous boot and
    the state of twl4030 is maintained throughout the warm reset.
    
    Fix the issue by clearing any existing sleep configuration
    before we load the warm reset configuration.
    Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
    Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
    fc7d76e4
twl4030-power.c 15.8 KB