From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f169.google.com (mail-pf1-f169.google.com [209.85.210.169]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 18075370AF3 for ; Tue, 23 Jun 2026 10:57:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.169 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782212264; cv=none; b=C4psgE5xmo9hIf03CrdPneHklmRx1dDoOQfMg+4anbIObYM1KxOjMSCZHHmPj4XXE2xjSJ05MFJvYHXa8I5NuEemk2ufXc44f+trp/sWe5Z0tAoqQh3ell0WOz+ogowCrIds4id0lftASm3FIkYfXRnkFhXcjaQv0fLBaDu9ix4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782212264; c=relaxed/simple; bh=TKYhzfs8VtgqqRD2PS/7BaDFJ8zd46QEOjrGAO7/Oog=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=FWQ0PAQOiWy3aKJWkYiWKutrg/CuokhMQkcgHyEPG6pIrMwXtsjSVvCjeopeib+gDSuU+TIWQNGHTt0ntk8bvP9JqHZPxLqfAwVq4z+IhUwMIcDzvPHxz/fFC/MO+r9xToGX91fcjYy3twSYJAFHbmfA9QA91pzAxMZs6IYLlFU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=CZfvUPbq; arc=none smtp.client-ip=209.85.210.169 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="CZfvUPbq" Received: by mail-pf1-f169.google.com with SMTP id d2e1a72fcca58-84229481d44so2427137b3a.0 for ; Tue, 23 Jun 2026 03:57:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1782212262; x=1782817062; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=Y7r5rbaAzJXbJdKI5D18Ck1wPIXNOOhR7cgcimtV+0M=; b=CZfvUPbqGmh8/RBul8PfOUHtFzwNwyLhaiOaoGpxv8vJQ4GZwteHxn664N6r8tISdJ oyQ+t6BYPw8wPGof9VrkhyW7m5tll1Ep42590D4PflT/xyLCE0DBa0U7HPncFQw1/9ai WSdv87yYEAABB8MasVyseYex+45MhkHSnZ4Sdei0Bspvp4m76ncCiEBYrh1ogmVEr3ym fGNGhjiqvJqvB2TbCDZD86JNfFQayrgzzTaiKLXgHqr3l2bBrfjyY4NZ3w0AMtoVB2O9 OyBVXXxmTuNOj5kJhfPb/ABjhzjKLso4eFR1RB6Epr10KCdf5qXvBfMauifsGORDe3X+ FPyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1782212262; x=1782817062; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=Y7r5rbaAzJXbJdKI5D18Ck1wPIXNOOhR7cgcimtV+0M=; b=l0hn1iQnXtMvdcHcTFQG8tuj2vv5PKlSZrFAwbatmq02A4M+uldzf0u+PG5TEL8Bbr d4zPbFYlwIpmSfs4sZgBqT/N6y83FjQ+BuRqjdbipP9uf9E9K6DiSWBqXQJeUQmu9Z8e 3FUwTvuxPgc1aZTFJIPjU7fU2nh+2fhBQ+9Szsl6oEgOOs0sdJ2Zd4lfbrdMTCQVs0Wn sFibjzb9oFr8bTzJFLDIQbehbrfGZcTVn6/hRKsGbd1vFemkqZn3V4sQ+RjGZ70qscdF mM6LGL8fHHRUzy4weG6h0hxqAIxtB3sH/bUAutc9nHw78hlYdAddkVKno5N0peb7Htvl gHyA== X-Forwarded-Encrypted: i=1; AFNElJ93ukwPl0YsHjMcwOZLImCnN9fMcx+RQuZl3GaNCmuQMRsjzHJgprywKqL4fUfTtZ5J8D+JHOjFECgdcxQ=@vger.kernel.org X-Gm-Message-State: AOJu0Yz94Lk6WAxc+PZUPS8IYsQYA38Bk/GqaKPxdLFin9vi00H4Txiz POZhnqFhJfDXj/gaaRm2N3OY4QmwGoudzniKPnN5Lcsnzs3gdzvPvZA3 X-Gm-Gg: AfdE7clj+8HcordXK3m45Mf1SEIg3FizzsD+BThTeFuUs/RZv+tQYDiDOfSQZxtl9Cy fwLUYXxu8HLxAyxT7ausPDpcC3xUQYsw0QzVMke+VeRlVl8Flbx0QqtSqZlQAarkWvAwg7Anmh9 Sb2pr5GenUtmH9210Gjp4F0VlwEs36uUdLpgnYDkzqt16YqE4cumVp+cpnL0Fk7cJO+5b2y8W9w skxfQTMXnR86uAlwY7CtPmr8Z/dlkvlLjNMRRyWs0utR4o9kF+irdU+OODXtlFOHq5DS8Zbzate Kgw3jq7R3ncHq4+vEcwFN/Jv2ko1AX/PDgGKhAfEwNDoHMqDPk49cbOeZ5wbnkuSFqQ/qVWM8QM cF1wCaW+6Is4Z7Od1xPrDy3NAJ6GZiXz+CUiS5lAua1SnM+uo3EBAkQLwHqHim7Tbk8TGx+8KNt di6BlmJQXofzlELEivkHLm35cfs7kgcHe1+rYQyu/bVnnoMqw= X-Received: by 2002:a05:6a00:4502:b0:842:2419:6c0b with SMTP id d2e1a72fcca58-845970652bdmr2689804b3a.10.1782212262282; Tue, 23 Jun 2026 03:57:42 -0700 (PDT) Received: from phuc-desktop.. ([183.91.15.56]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-84564d68130sm12343868b3a.10.2026.06.23.03.57.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Jun 2026 03:57:42 -0700 (PDT) From: phucduc.bui@gmail.com To: Mark Brown , Liam Girdwood , Cezary Rojewski Cc: Jaroslav Kysela , Takashi Iwai , Peter Ujfalusi , Bard Liao , Kai Vehmanen , Pierre-Louis Bossart , linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org, bui duc phuc Subject: [PATCH v3 0/5] ASoC: Intel: Convert locking to guard()/scoped_guard() Date: Tue, 23 Jun 2026 17:57:16 +0700 Message-ID: <20260623105721.25865-1-phucduc.bui@gmail.com> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: bui duc phuc Hi all, This series converts mutex and spinlock handling in Intel ASoC drivers to use guard()/scoped_guard() helpers. Most changes are straightforward conversions intended to simplify lock handling and cleanup paths, with no intended functional changes. The series has been compile-tested only. Link v1: https://lore.kernel.org/all/20260611115901.80438-1-phucduc.bui@gmail.com/ Link v2: https://lore.kernel.org/all/20260618110649.227062-1-phucduc.bui@gmail.com/ Changes in v2: - Reduce the series from 20 patches to 4 patches. - Drop smaller conversions that did not provide clear benefits. Changes in v3: - Drop the scoped_guard() conversion for the function that still used a goto-based cleanup path. - Move the __free(kfree) conversion into a separate patch. Best regards, Phuc bui duc phuc (5): ASoC: intel: sst-mfld-platform-pcm: Use __free(kfree) for stream pointer ASoC: Intel: avs: Use guard() for locking ASoC: Intel: avs: Use scoped_guard() for scoped locking ASoC: Intel: atom: Use scoped_guard() for scoped locking ASoC: Intel: atom: Use guard() for locking sound/soc/intel/atom/sst-atom-controls.c | 66 +++++++++----------- sound/soc/intel/atom/sst-mfld-platform-pcm.c | 58 ++++++++--------- sound/soc/intel/atom/sst/sst_ipc.c | 4 +- sound/soc/intel/atom/sst/sst_pvt.c | 8 +-- sound/soc/intel/avs/apl.c | 7 +-- sound/soc/intel/avs/control.c | 7 +-- sound/soc/intel/avs/core.c | 3 +- sound/soc/intel/avs/debug.h | 9 +-- sound/soc/intel/avs/debugfs.c | 18 +++--- sound/soc/intel/avs/ipc.c | 60 +++++++++--------- sound/soc/intel/avs/loader.c | 14 ++--- sound/soc/intel/avs/path.c | 29 +++------ sound/soc/intel/avs/utils.c | 39 ++++-------- 13 files changed, 128 insertions(+), 194 deletions(-) -- 2.43.0