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 995DE25FA0F; Tue, 30 Sep 2025 15:27:29 +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=1759246049; cv=none; b=Py2456CFwlKp+9oHlOj5AVcFV8zzFJhFR5CM9tA2yQtLMmtcFIxWFAZgGiiO6+m7JEnmBa4BFoiiOa0Ls9+OXMXCTYOk4UwITBjvO7vo0SKuvdV0gA//FfevtDa1nnzUAg03g2ruLFnFa1n5vzKTeSXV9LW+BgMKirm3FljERDQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759246049; c=relaxed/simple; bh=Pslz76SqvCWVTKfEQcpIajOv1mwo8TjXJthYk2Zg3Hw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=P1OsCtGlPakri1tBNiAuZaZeV89m474N36S1CmiNUIGiKSqYqrpyvZdY+2ZC5xAvQADuaRU40j5EBTRCvhF7CvM38DDSrdiu0HuZiQ0N+y4lb5in2e+LsPE4V8UyecJ5TSVDNSJHrfQyeex+UJsYeEiMak+YcGGX6xZbSE/O+T0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=KyYvggD2; 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="KyYvggD2" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1B556C116B1; Tue, 30 Sep 2025 15:27:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1759246049; bh=Pslz76SqvCWVTKfEQcpIajOv1mwo8TjXJthYk2Zg3Hw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KyYvggD2aL32Kf/8gYQr2td9pXf9ecY9xNHGMelf/N529iTUNzG0sDFSY96/oM9AE o/0QQbQXXzipLmjMjmVZrhzeWckwYllrDlLaKkzAjPLufdctgSaQuzlFpjTNuQVbRe OSBJorRXN4o9uj8d20VN6aoocwxrSCC+mpVuI8cM= 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 6.12 08/89] ALSA: usb-audio: Remove unneeded wmb() in mixer_quirks Date: Tue, 30 Sep 2025 16:47:22 +0200 Message-ID: <20250930143822.210631251@linuxfoundation.org> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20250930143821.852512002@linuxfoundation.org> References: <20250930143821.852512002@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.12-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 3bd2daba8ecac..5f660c6933d2d 100644 --- a/sound/usb/mixer_quirks.c +++ b/sound/usb/mixer_quirks.c @@ -211,7 +211,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