From mboxrd@z Thu Jan 1 00:00:00 1970 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 B75E4223DD6; Tue, 30 Sep 2025 15:13:55 +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=1759245235; cv=none; b=A9dVe0AoKtLUIsqvJZrubui1yy9VI39BXSjxUrYKJU+ljuqYbpY7QEp7BiVPec7Op3eS8C20aeDGY9bnzePvTdG47qG7+PQsHsiJCIDPqnvOFoT+blh4wcTFRrVkHW+U8k934Zc/HW2xyxKBjfmKZ3LqftZcjiJt1mcBX2qqpJ8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759245235; c=relaxed/simple; bh=GbhITvSO25V0cmy067otzXb7KUZY58XVFdrYbEpPHQk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=KUhZ35l+1gsrmQJ97du3loI7hJKfvw27UTHH2jymqtA86z6SKhRGdlIoWMAWoFF58xZO9QPSBMitDsgQAaRXTPJJsVO/Jua4hP4l9egb8PVFuU5rzpJB1Czn9B71vut4rLv8+N1UyfYgyzTUuP0eLHyaOrd8SVnr0TCG0Hq8ldA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=aG7Z1gqM; 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="aG7Z1gqM" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 40910C4CEF0; Tue, 30 Sep 2025 15:13:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1759245235; bh=GbhITvSO25V0cmy067otzXb7KUZY58XVFdrYbEpPHQk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=aG7Z1gqMLwymK88ABhFD+LlGQ0T79weDhXluuMnCEbLTh8/pDbP1U+3z7EQvI1b/P dt/7AtjzCseYET8wFpn7+DibDwrw0amejWO5jID/u0It8kheIBFUo9JSyGFDkMdrEk fOS7IIoIfZi5T7+xlp+musL9sXF3C8rcEdjnfFHI= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Cristian Ciocaltea , Takashi Iwai , Sasha Levin Subject: [PATCH 5.15 107/151] ALSA: usb-audio: Remove unneeded wmb() in mixer_quirks Date: Tue, 30 Sep 2025 16:47:17 +0200 Message-ID: <20250930143831.870880249@linuxfoundation.org> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20250930143827.587035735@linuxfoundation.org> References: <20250930143827.587035735@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 5.15-stable review patch. If anyone has any objections, please let me know. ------------------ From: Cristian Ciocaltea [ Upstream commit 9cea7425595697802e8d55a322a251999554b8b1 ] Adding a memory barrier before wake_up() in snd_usb_soundblaster_remote_complete() is supposed to ensure the write to mixer->rc_code is visible in wait_event_interruptible() from snd_usb_sbrc_hwdep_read(). However, this is not really necessary, since wake_up() is just a wrapper over __wake_up() which already executes a full memory barrier before accessing the state of the task to be waken up. Drop the redundant call to wmb() and implicitly fix the checkpatch complaint: WARNING: memory barrier without comment Signed-off-by: Cristian Ciocaltea Signed-off-by: Takashi Iwai Link: https://patch.msgid.link/20250526-dualsense-alsa-jack-v1-8-1a821463b632@collabora.com Signed-off-by: Sasha Levin --- sound/usb/mixer_quirks.c | 1 - 1 file changed, 1 deletion(-) diff --git a/sound/usb/mixer_quirks.c b/sound/usb/mixer_quirks.c index 3156bb50f9ff6..d50cd771356f8 100644 --- a/sound/usb/mixer_quirks.c +++ b/sound/usb/mixer_quirks.c @@ -208,7 +208,6 @@ static void snd_usb_soundblaster_remote_complete(struct urb *urb) if (code == rc->mute_code) snd_usb_mixer_notify_id(mixer, rc->mute_mixer_id); mixer->rc_code = code; - wmb(); wake_up(&mixer->rc_waitq); } -- 2.51.0