• A
    mailbox: imx: Add runtime PM callback to handle MU clocks · bb2b2624
    Anson Huang 提交于
    Some of i.MX8M SoCs have MU clock, they need to be managed in runtime
    to make sure the MU clock can be off in runtime, add runtime PM callback
    to handle MU clock.
    
    And on i.MX8MP, the MU clock is combined with power domain and runtime
    PM is enabled for the clock driver, during noirq suspend/resume phase,
    runtime PM is disabled by device suspend, but the MU context save/restore
    needs to enable MU clock for register access, calling clock prepare/enable
    will trigger runtime resume failure and lead to system suspend failed.
    
    Actually, the MU context save/restore is ONLY necessary for SCU IPC MU,
    other MUs especially on i.MX8MP platforms which have MU clock assigned,
    they need to runtime request/free mailbox channel in the consumer driver,
    so no need to save/restore MU context for them, hence it can avoid this
    issue, so the MU context save/restore is ONLY applied to i.MX platforms
    MU instance without clock present.
    Signed-off-by: NAnson Huang <Anson.Huang@nxp.com>
    Signed-off-by: NJassi Brar <jaswinder.singh@linaro.org>
    bb2b2624
imx-mailbox.c 15.4 KB