From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.5 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9F529C352A3 for ; Tue, 11 Feb 2020 12:17:17 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 230EF206DB for ; Tue, 11 Feb 2020 12:17:17 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=alsa-project.org header.i=@alsa-project.org header.b="ngkgeCrS" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 230EF206DB Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=alsa-devel-bounces@alsa-project.org Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 80109846; Tue, 11 Feb 2020 13:16:25 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 80109846 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1581423435; bh=aIKTtDxOIEwNX80s/IKofgwsphpdcEZ/6K/uJlZNBQk=; h=Date:From:To:References:In-Reply-To:Cc:Subject:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=ngkgeCrS9o/epOVpo0+O6u/wV4mIheVHkrhZawL/NiJ9QeuYOzpFvNkc+FnvNZtd5 IpqRrNObvbD1VhyBFEu3JjqU7K7MAw4yEobRYJkQEhu9oEm4stg8MVVJRCXHnJ5y+Q 90A+NUeRqnp4nO84e9VOt51Rwp5dMR9G7eF6DCu4= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id EF8A3F8013E; Tue, 11 Feb 2020 13:16:24 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id CF3CBF80145; Tue, 11 Feb 2020 13:16:22 +0100 (CET) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by alsa1.perex.cz (Postfix) with ESMTP id 6D9F9F8013D for ; Tue, 11 Feb 2020 13:16:19 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 6D9F9F8013D Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 5E4391FB; Tue, 11 Feb 2020 04:16:18 -0800 (PST) Received: from localhost (unknown [10.37.6.21]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id D73DE3F6CF; Tue, 11 Feb 2020 04:16:17 -0800 (PST) Date: Tue, 11 Feb 2020 12:16:16 +0000 From: Mark Brown To: Pierre-Louis Bossart Message-ID: <20200211121616.GI4543@sirena.org.uk> References: <87d0anceze.wl-kuninori.morimoto.gx@renesas.com> <874kvzcey1.wl-kuninori.morimoto.gx@renesas.com> <095fdf34-5736-b79a-7bad-56f5a478e939@linux.intel.com> MIME-Version: 1.0 In-Reply-To: <095fdf34-5736-b79a-7bad-56f5a478e939@linux.intel.com> X-Cookie: Hire the morally handicapped. User-Agent: Mutt/1.10.1 (2018-07-13) Cc: Linux-ALSA , Kuninori Morimoto Subject: Re: [alsa-devel] [PATCH v3 6/8] ASoC: soc-pcm: call snd_soc_component_open/close() once X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============1655721047988197795==" Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" --===============1655721047988197795== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="byLs0wutDcxFdwtm" Content-Disposition: inline --byLs0wutDcxFdwtm Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, Feb 10, 2020 at 08:41:07AM -0600, Pierre-Louis Bossart wrote: > Maybe a red-herring but is there a potential for race conditions here if > that function is called twice from different places? Don't we need some sort > of lock for all the new flags introduced here? The probe stuff is all going to get pretty upset if it's called from multiple paths already. --byLs0wutDcxFdwtm Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAl5Cmw8ACgkQJNaLcl1U h9Cshwf9EC1H+ac3QlcVkDxKfpUmtBTY3tXnIxl/yAMqYWIOusIRxAZc0JfsSKHm hXuAC7rJndVNxeaIz5dUxDQnjlvOVsW49qzD21rKgGMnI/u204pr6dCBOd0yuDEg PybAxiS5xgE/ztFlIknc5WoIe7m7m/RlCJZ3ODN3KRyHpzBOmlwNTWjOmQA+ZTB5 Nn2kbf8hX6Hjk2kdIsjipOJlgrJLBewBD1HTItQvuJP8+6EYrzrBZLMyM9GXF3hf Fu6Qpo+l/LKYWR6zjLcQ5h4M3l/aQNugE8Go+LPp2fHnCWEO3y1bKYLMhtOhdV1A g+0WBx6pqk5uWPvo4rdxe7yAOoiC7w== =ezhu -----END PGP SIGNATURE----- --byLs0wutDcxFdwtm-- --===============1655721047988197795== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Alsa-devel mailing list Alsa-devel@alsa-project.org https://mailman.alsa-project.org/mailman/listinfo/alsa-devel --===============1655721047988197795==--