]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
soundwire: cadence: clear MCP BLOCK_WAKEUP in init
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Thu, 3 Oct 2024 09:48:30 +0000 (17:48 +0800)
committerVinod Koul <vkoul@kernel.org>
Thu, 10 Oct 2024 12:14:41 +0000 (17:44 +0530)
Follow recommended programming flows.

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Péter Ujfalusi <peter.ujfalusi@linux.intel.com>
Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Link: https://lore.kernel.org/r/20241003094830.119673-3-yung-chuan.liao@linux.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/soundwire/cadence_master.c

index 7c8c977a923ad672b4b7852fb4afa0ab908c2bde..f367670ea991b90827ba8188b340b3a58f150df4 100644 (file)
@@ -1425,6 +1425,11 @@ int sdw_cdns_init(struct sdw_cdns *cdns)
        cdns_ip_updatel(cdns, CDNS_IP_MCP_CONTROL, CDNS_IP_MCP_CONTROL_CMD_ACCEPT,
                        CDNS_IP_MCP_CONTROL_CMD_ACCEPT);
 
+       /* disable wakeup */
+       cdns_ip_updatel(cdns, CDNS_IP_MCP_CONTROL,
+                       CDNS_IP_MCP_CONTROL_BLOCK_WAKEUP,
+                       0);
+
        /* Configure mcp config */
        val = cdns_readl(cdns, CDNS_MCP_CONFIG);