]> Git Repo - linux.git/commitdiff
soundwire: amd: clear wake enable register for power off mode
authorVijendar Mukunda <[email protected]>
Tue, 3 Dec 2024 09:21:44 +0000 (14:51 +0530)
committerVinod Koul <[email protected]>
Mon, 23 Dec 2024 06:31:13 +0000 (12:01 +0530)
As per design for power off mode, clear the wake enable register during
resume sequence.

Signed-off-by: Vijendar Mukunda <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Vinod Koul <[email protected]>
drivers/soundwire/amd_manager.c

index 0ee792176f229f42dd11b825105a3e50f55fba1c..71b3cf2df89d496069c5fec29423d5c31dd3b728 100644 (file)
@@ -1190,6 +1190,7 @@ static int __maybe_unused amd_resume_runtime(struct device *dev)
        if (amd_manager->power_mode_mask & AMD_SDW_CLK_STOP_MODE) {
                return amd_sdw_clock_stop_exit(amd_manager);
        } else if (amd_manager->power_mode_mask & AMD_SDW_POWER_OFF_MODE) {
+               writel(0x00, amd_manager->acp_mmio + ACP_SW_WAKE_EN(amd_manager->instance));
                val = readl(amd_manager->mmio + ACP_SW_CLK_RESUME_CTRL);
                if (val) {
                        val |= AMD_SDW_CLK_RESUME_REQ;
This page took 0.054879 seconds and 4 git commands to generate.