• Mark Brown's avatar
    mfd: Ensure WM831x charger interrupts are acknowledged when suspending · b03b4d7c
    Mark Brown authored
    The charger interrupts on the WM831x are unconditionally a wake source
    for the system. If the power driver is not able to monitor them (for
    example, due to the IRQ line not having been wired up on the system)
    then any charger interrupt will prevent the system suspending for any
    meaningful amount of time since nothing will ack them.
    
    Avoid this issue by manually acknowledging these interrupts when we
    suspend the WM831x core device if they are masked. If software is
    actually using the interrupts then they will be unmasked and this
    change will have no effect.
    Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
    Signed-off-by: default avatarSamuel Ortiz <sameo@linux.intel.com>
    b03b4d7c
wm831x-core.c 37.5 KB