• Rafael J. Wysocki's avatar
    PM / shmobile: Allow the A4R domain to be turned off at run time · a8cf27be
    Rafael J. Wysocki authored
    After adding PM QoS constraints for the I2C controller in the A4R
    domain, that domain can be allowed to be turned off and on by runtime
    PM, so remove the "always on" governor from it.
    
    However, the A4R domain has to be "on" when suspend_device_irqs() and
    resume_device_irqs() are executed during system suspend and resume,
    respectively, so that those functions don't crash while accessing the
    INTCS.  For this reason, add a PM notifier to the SH7372 PM code and
    make it restore power to A4R before system suspend and remove power
    from all unused PM domains after system resume.
    Signed-off-by: default avatarRafael J. Wysocki <rjw@sisk.pl>
    Acked-by: default avatarMagnus Damm <damm@opensource.se>
    a8cf27be
pm-sh7372.c 13.4 KB