Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp97101lqs; Thu, 13 Jun 2024 05:10:33 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUkY5uE4bOBDYHnSittWwv/4H/Qj2ojIpiSxUo+ehEIEiMY4DT1YUhYN4B67WMdQaALdnIj6RWiXhUPqIqvhI/9cV2zxk/sBhGTSUfu7Q== X-Google-Smtp-Source: AGHT+IE7I16y+MdGZwneRvDBhSl6zU+WQTTGD296w2J4cCeABhXuJ38/9Xh8F5e1LagYLLB0+8Aq X-Received: by 2002:a50:d5d1:0:b0:57c:60e8:c519 with SMTP id 4fb4d7f45d1cf-57ca976c61bmr3345643a12.16.1718280633541; Thu, 13 Jun 2024 05:10:33 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718280633; cv=pass; d=google.com; s=arc-20160816; b=WkFcaRGxEJ1M2HeSZqAWTvM1+dW0DVqFyNbnurFco86qKfWmen0G8bnFLDSfz+ls0p G12/HH25K5VyyZLN5e3u0XVbHqbMARPXFQYgZlTSg/TzSS3bSBFfwScIRb/wIZx0VzVn YX1iPWWtkm1jZcrHAa9SuAZ77l6s+kJYo4V0lSkfC+MvrOIZjZvlR+KRNJ8NXI7IAl7C Ya9ZBy5bgYGZxjHcratnnqgCH9xAO1XALQ+QGsruQ09FYsDIMxmF4e/fFKAvJsOXeSTg D58bNzM29qqHSRPZkekURLcYhexcHPK4bM0JFfYpc4Lc6wH1WbiG3D7knIbgNQSb5Dat a29w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:references:in-reply-to:subject:cc:to:from:message-id :date:dkim-signature:dkim-signature:dkim-signature:dkim-signature; bh=WT0XyiT40kea3fhb0qgJuObeXLOKk0sgpARLAW3vIjg=; fh=YM6Mh2Xe/M8tD75vsps0O5CInd2bNDxNOwRtoGdyVtI=; b=p8o+dpHQX1pykKwoj9rhKALc4cqMFlD+y1+M7ls/cPO6rbFh17WzX8OC7gNt8E+S1+ ClzV4N/fjgNHoVyGrvK6fIHrMlMvQ95lrvZSO40aBCSnmhe8KqoEO0PL4BqTjFAiX2vU msrgvBTrPnCioJgtnmJpie5BjNwTgMjZd/4ZHvw5HFF3XQHNyTCEUgyTkr7uj255Mk2s qCUOtglV0q0KvGCD5pGeHOPmbTWS29XcBGhvYt5ag/IexpddDD7fAuG/maEf+IJ6Nby5 /l6hwFXB/suZIW5m3hnLap/b1QjsTaNhnZLmPEd3LQ7OOTZXXTxLrVRV21kb9Skse77t pT2g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=2EHn6btN; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=wWfWpadM; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=2EHn6btN; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; arc=pass (i=1 spf=pass spfdomain=suse.de dkim=pass dkdomain=suse.de dkim=pass dkdomain=suse.de dmarc=pass fromdomain=suse.de); spf=pass (google.com: domain of linux-kernel+bounces-213171-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-213171-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-57cb74408b0si666058a12.350.2024.06.13.05.10.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jun 2024 05:10:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-213171-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=2EHn6btN; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=wWfWpadM; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=2EHn6btN; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; arc=pass (i=1 spf=pass spfdomain=suse.de dkim=pass dkdomain=suse.de dkim=pass dkdomain=suse.de dmarc=pass fromdomain=suse.de); spf=pass (google.com: domain of linux-kernel+bounces-213171-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-213171-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 1BBE01F218CA for ; Thu, 13 Jun 2024 12:10:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E2D48146A81; Thu, 13 Jun 2024 12:05:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="2EHn6btN"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="wWfWpadM"; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="2EHn6btN"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="wWfWpadM" Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.223.131]) (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 4A3DD145359; Thu, 13 Jun 2024 12:05:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.135.223.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718280341; cv=none; b=gu+NnhCxXyWgo7rzvIcHED3YBiS+te6GLsvWxTYvvw9J4TXsX3Y83edT91TXEMnGngCucZtTs1Abzd9D2fmZ/jlsXPcUttOwE/PNnZPCCH3d5ohKMYEClRNFItDS2t6ughaA8qoAHUfgwnuQPp7GjLIPKIjRHQ0hWP6Ro1HJwQw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718280341; c=relaxed/simple; bh=Yr6Qmiiz97m3lWUH4+OI9PteO/YpPUXHxIVYxvdkpK0=; h=Date:Message-ID:From:To:Cc:Subject:In-Reply-To:References: MIME-Version:Content-Type; b=VcGaBHYXSW0r9akb2Hcg9+ufAT67Nkj7e07TeQzXMWab53CTAyffbY63ZUO/THzDCkIDkny9BNy5G8oBgd1zgTbBaf86XyX4yIszcqhcD5oPqleRWi8QH2+aovK7u/SMtPebw5ZAUKm8IMayOJvVbJ7+EYAyQ7EOLX6O6AL5pR8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=suse.de; spf=pass smtp.mailfrom=suse.de; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b=2EHn6btN; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=wWfWpadM; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b=2EHn6btN; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=wWfWpadM; arc=none smtp.client-ip=195.135.223.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=suse.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.de Received: from imap1.dmz-prg2.suse.org (unknown [10.150.64.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 8221C5D2DC; Thu, 13 Jun 2024 12:05:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1718280337; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=WT0XyiT40kea3fhb0qgJuObeXLOKk0sgpARLAW3vIjg=; b=2EHn6btNnYTS4DIi6PjdCdoXufmvJyCtKdho6BidZP6gbijup35HKBuZXW2mfcmptjFZ1L q2IQm4Gpzd7ZRO//WeC9kSusQfl1KILM3RlEIaFHTk03xXfRAXXvMp9TAdGaVVsrzFzXd0 v78PxHcrLLg2i1MKdepBoboV04KPiiQ= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1718280337; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=WT0XyiT40kea3fhb0qgJuObeXLOKk0sgpARLAW3vIjg=; b=wWfWpadMa7xe5qLeB1hemQ1xATPlfXIoAO21Y/xO45S7BZV/nNlXwZF3d3a6tcdbkU9n99 5oBgSo1Q3OeSzFBw== Authentication-Results: smtp-out2.suse.de; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1718280337; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=WT0XyiT40kea3fhb0qgJuObeXLOKk0sgpARLAW3vIjg=; b=2EHn6btNnYTS4DIi6PjdCdoXufmvJyCtKdho6BidZP6gbijup35HKBuZXW2mfcmptjFZ1L q2IQm4Gpzd7ZRO//WeC9kSusQfl1KILM3RlEIaFHTk03xXfRAXXvMp9TAdGaVVsrzFzXd0 v78PxHcrLLg2i1MKdepBoboV04KPiiQ= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1718280337; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=WT0XyiT40kea3fhb0qgJuObeXLOKk0sgpARLAW3vIjg=; b=wWfWpadMa7xe5qLeB1hemQ1xATPlfXIoAO21Y/xO45S7BZV/nNlXwZF3d3a6tcdbkU9n99 5oBgSo1Q3OeSzFBw== Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id 3800513A87; Thu, 13 Jun 2024 12:05:37 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap1.dmz-prg2.suse.org with ESMTPSA id uXZbDJHgamb7IAAAD6G6ig (envelope-from ); Thu, 13 Jun 2024 12:05:37 +0000 Date: Thu, 13 Jun 2024 14:06:00 +0200 Message-ID: <87h6dxnj2v.wl-tiwai@suse.de> From: Takashi Iwai To: Simon Trimmer Cc: , , , , , , , , , Subject: Re: [PATCH v2 0/7] ALSA: hda: Improvements to hda_component In-Reply-To: <20240603103524.32442-1-simont@opensource.cirrus.com> References: <20240603103524.32442-1-simont@opensource.cirrus.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) Emacs/27.2 Mule/6.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-Spam-Score: -3.30 X-Spam-Level: X-Spam-Flag: NO X-Spamd-Result: default: False [-3.30 / 50.00]; BAYES_HAM(-3.00)[99.99%]; MID_CONTAINS_FROM(1.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.20)[-1.000]; MIME_GOOD(-0.10)[text/plain]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; RCPT_COUNT_SEVEN(0.00)[11]; RCVD_TLS_ALL(0.00)[]; FUZZY_BLOCKED(0.00)[rspamd.com]; TO_DN_SOME(0.00)[]; FROM_HAS_DN(0.00)[]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; FROM_EQ_ENVFROM(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; DBL_BLOCKED_OPENRESOLVER(0.00)[imap1.dmz-prg2.suse.org:helo] On Mon, 03 Jun 2024 12:35:17 +0200, Simon Trimmer wrote: > > This series of patches makes sure that the existing consumers of > the infrastructure unbind their interface before they begin > destroying the driver, moves duplicated members from the > instanced component structures into a new parent structure and > introduces locking so that consumers of the interface do not use > stale data. > > v2: > - Correct application of sizeof to pointer flagged by kernel test robot > > Simon Trimmer (7): > ALSA: hda: cs35l56: Component should be unbound before deconstruction > ALSA: hda: cs35l41: Component should be unbound before deconstruction > ALSA: hda/tas2781: Component should be unbound before deconstruction > ALSA: hda: hda_component: Introduce component parent structure > ALSA: hda: hda_component: Change codecs to use component parent > structure > ALSA: hda: hda_component: Move codec field into the parent > ALSA: hda: hda_component: Protect shared data with a mutex The first three patches look rather like independent fixes. Could you split those out and add proper Fixes tags, so that stable trees can pick up? The rest are a code refactoring and additional protection of the mutex. thanks, Takashi > sound/pci/hda/cs35l41_hda.c | 47 ++++++++++++--------- > sound/pci/hda/cs35l56_hda.c | 29 +++++++------ > sound/pci/hda/hda_component.c | 75 ++++++++++++++++++++------------- > sound/pci/hda/hda_component.h | 48 ++++++++++++++------- > sound/pci/hda/patch_realtek.c | 17 ++++---- > sound/pci/hda/tas2781_hda_i2c.c | 37 ++++++++-------- > 6 files changed, 147 insertions(+), 106 deletions(-) > > -- > 2.34.1 >