• Charles Keepax's avatar
    mfd: madera: Add reset as part of resume · 1cd7b935
    Charles Keepax authored
    The DCVDD supply does not always power down when the CODEC enters
    suspend, for example shared regulators or always-on regulators. In
    these cases if a register is written back to the default value whilst
    the CODEC is in suspend that register will retain the previous value.
    As DCVDD never powered down, the register retains its old value and
    as the cache sync only synchronises registers that differ from the
    default the new value is never written out.
    
    Ensure the registers are in the expected state after suspend by always
    resetting the CODEC on resume. This also has the benefit of being
    recommended by the datasheet for DCVDD supplies that take longer than
    2mS to rise.
    Signed-off-by: default avatarCharles Keepax <ckeepax@opensource.cirrus.com>
    Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
    1cd7b935
madera-core.c 18.3 KB