Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 67B4C25A642; Wed, 25 Feb 2026 01:40:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771983623; cv=none; b=n2jikUE/MXHbm3YyUH9jIpwBuD4PRNcQsOhtngGevC5iw7GERwwtJL4y/CEWWzmSC5wlBhekz6rSiyjSw7yqWP6faxYf4/fWSOwMZaO+ezM+6rthki5w4CFHM7hOsuGPd+zzog4DwzofijzEzSfqVrc00cDsZWKFjwBO//ua6eY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771983623; c=relaxed/simple; bh=8NS8QtV5S0du33x2qIMVdIy52Fn4fRQOPnMH9R2Gf1A=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=EyARBdyGqLIAMMaKTwveqlG0NWeprXuY1BLKaGj3RDHdym6RQZNl6/q4LdXhDOQERdRk1lPjU7Z50RJvwM5OB5uMaE1Yrr+OBvoDMOEomAR6AHfCdbQCilglvOiveuv1YUtEbigiWMm9TgngOEpR5GaOonWwD6qRp3Fh4iK1bMA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=134mfWVJ; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="134mfWVJ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 228D8C19423; Wed, 25 Feb 2026 01:40:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1771983623; bh=8NS8QtV5S0du33x2qIMVdIy52Fn4fRQOPnMH9R2Gf1A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=134mfWVJKZXiiQ9IEsWDc+rOMRY3aCl6Q4VfvSAheBJ/S7G7JSBIgVbbr1NaWC4BY /PLFKMYgI9AYsohAHCelxaMq7UujvzmGmSiQi5l9Q7LVohP9zHHBifj2LBGq/Oytxh FGJ658Ysa6qiq8mWW7TZy0AsPz6asUi5+qIAZX4E= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Alexander Stein , Ziyi Guo , Mark Brown , Sasha Levin Subject: [PATCH 6.19 715/781] ASoC: fsl_xcvr: Revert fix missing lock in fsl_xcvr_mode_put() Date: Tue, 24 Feb 2026 17:23:44 -0800 Message-ID: <20260225012417.278622736@linuxfoundation.org> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260225012359.695468795@linuxfoundation.org> References: <20260225012359.695468795@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.19-stable review patch. If anyone has any objections, please let me know. ------------------ From: Ziyi Guo [ Upstream commit 9f16d96e1222391a6b996a1b676bec14fb91e3b2 ] This reverts commit f51424872760 ("ASoC: fsl_xcvr: fix missing lock in fsl_xcvr_mode_put()"). The original patch attempted to acquire the card->controls_rwsem lock in fsl_xcvr_mode_put(). However, this function is called from the upper ALSA core function snd_ctl_elem_write(), which already holds the write lock on controls_rwsem for the whole put operation. So there is no need to simply hold the lock for fsl_xcvr_activate_ctl() again. Acquiring the read lock while holding the write lock in the same thread results in a deadlock and a hung task, as reported by Alexander Stein. Fixes: f51424872760 ("ASoC: fsl_xcvr: fix missing lock in fsl_xcvr_mode_put()") Reported-by: Alexander Stein Closes: https://lore.kernel.org/linux-sound/5056506.GXAFRqVoOG@steina-w/ Signed-off-by: Ziyi Guo Link: https://patch.msgid.link/20260210185714.556385-1-n7l8m4@u.northwestern.edu Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- sound/soc/fsl/fsl_xcvr.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/sound/soc/fsl/fsl_xcvr.c b/sound/soc/fsl/fsl_xcvr.c index 5de93f458b569..a268fb81a2f86 100644 --- a/sound/soc/fsl/fsl_xcvr.c +++ b/sound/soc/fsl/fsl_xcvr.c @@ -223,13 +223,10 @@ static int fsl_xcvr_mode_put(struct snd_kcontrol *kcontrol, xcvr->mode = snd_soc_enum_item_to_val(e, item[0]); - down_read(&card->snd_card->controls_rwsem); fsl_xcvr_activate_ctl(dai, fsl_xcvr_arc_mode_kctl.name, (xcvr->mode == FSL_XCVR_MODE_ARC)); fsl_xcvr_activate_ctl(dai, fsl_xcvr_earc_capds_kctl.name, (xcvr->mode == FSL_XCVR_MODE_EARC)); - up_read(&card->snd_card->controls_rwsem); - /* Allow playback for SPDIF only */ rtd = snd_soc_get_pcm_runtime(card, card->dai_link); rtd->pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream_count = -- 2.51.0