]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
soundwire: only handle alert events when the peripheral is attached
authorBard Liao <yung-chuan.liao@linux.intel.com>
Wed, 20 May 2026 02:57:20 +0000 (10:57 +0800)
committerVinod Koul <vkoul@kernel.org>
Fri, 29 May 2026 06:32:05 +0000 (12:02 +0530)
commit38cd651ebce7065a81c7e950d9e2ea1572304605
tree88c548ec86228d1d061ea611ff978e76e3776276
parent8a7fe10eec64bfb7cf4091bca540de4c55d56bfa
soundwire: only handle alert events when the peripheral is attached

It doesn't make sense to handle an alert event when the peripheral is
not attached. The slave->status could be SDW_SLAVE_ATTACHED or
SDW_SLAVE_ALERT when it is attached on the bus.

Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Reviewed-by: Péter Ujfalusi <peter.ujfalusi@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.dev>
Link: https://patch.msgid.link/20260520025720.1999367-1-yung-chuan.liao@linux.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/soundwire/bus.c