]> git.ipfire.org Git - thirdparty/linux.git/commit
soundwire: don't program SDW_SCP_BUSCLOCK_SCALE on a unattached Peripheral
authorBard Liao <yung-chuan.liao@linux.intel.com>
Tue, 28 Apr 2026 08:46:12 +0000 (16:46 +0800)
committerVinod Koul <vkoul@kernel.org>
Thu, 7 May 2026 07:33:39 +0000 (13:03 +0530)
commitc368dd5cbd61ffab2b6f8a89b0d5775e2e16cde6
treef20bcef1f10259d724fa5834e9f2adb68d61449e
parent45c7bda7b7440183850012153988e40b300f40d0
soundwire: don't program SDW_SCP_BUSCLOCK_SCALE on a unattached Peripheral

The SDW_SCP_BUSCLOCK_SCALE register will be programmed when the
Peripheral is attached. We can and should skip programming the
SDW_SCP_BUSCLOCK_SCALE register when the Peripheral is unattached.

Fixes: 645291cfe5e5 ("Soundwire: stream: program BUSCLOCK_SCALE")
Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Reviewed-by: Simon Trimmer <simont@opensource.cirrus.com>
Reviewed-by: Péter Ujfalusi <peter.ujfalusi@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Link: https://patch.msgid.link/20260428084612.322701-1-yung-chuan.liao@linux.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/soundwire/stream.c