Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2688638pxa; Mon, 24 Aug 2020 23:49:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzf3kqZCHisR6oq+KDhiGJYx/SLf7r47cEHdKN0k8qVPcamwYX01akT4p1qkyOwG90T26Sf X-Received: by 2002:a17:906:15c7:: with SMTP id l7mr8944300ejd.208.1598338147912; Mon, 24 Aug 2020 23:49:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598338147; cv=none; d=google.com; s=arc-20160816; b=XvFdki2utFgtClurQeIq7hBFJkz7OfyKGL1hksPp44sc4x16Z03ogdjGa6qf3dFlFH LmbTSi7x+Su4SzQA01qBkOm8NUQWHnGXUT33AUJ8RcW71phjuopzyJk/yHqJMXdSI8Wz QOHSWuRzPuT4ZyyJrILqtkT4PcpTkMBxv/vQgaBxQYRFc1YWAW1y46IgY+8BZuOLp8rn NITUjAbKycNfUFxv6i21vJiSbEW1kHOYpzCYUx7pPOvwnqRqiaLPf4fdJo9TcS28qmTC HFBMWC1+/Y9ppaGGvD/dU4dhon5KkbN/fwMNKNojdWYJi8YTWuAflyY8Fav2h5VHN1mM nUaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:subject:cc:to:from:message-id:date; bh=bfoPdCfu40mnv9cCE36W3qQRBq3KTnTlRuCUUlss758=; b=HQ5B77MpkFQg7Z9yAzBi3iU+hUnMYOQHk6SHPIH3Y7h82EuPD1j4pXMkSP/RiOMKOm Q4KQ0LB5z2PXVXBd5s6fzaGLu45nSixrWZw5YEW7PEyzhVR7lGJoMFyhNFP/mJvKJXy2 Rm581P8J+PzKphYfhHLb21mWhxdMt4PIdJkrH0masvKvwkv1RrF9T/kBX+wrK5StSVCL iSXtsvKbvNoZxblkdV/g9tnhQ5W0k6doTBlrs2QN4813zuRT1kjsKyiV/Xct4MM92Liz r5qoVoGeGayIqh2X43ugw6CzJAH5OofEVgi14EZIQ9n1tRAlgyRwcCrKqsCncaH0kCfG 3MyQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id df28si4218761edb.550.2020.08.24.23.48.45; Mon, 24 Aug 2020 23:49:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729179AbgHYGqD (ORCPT + 99 others); Tue, 25 Aug 2020 02:46:03 -0400 Received: from relmlor1.renesas.com ([210.160.252.171]:46219 "EHLO relmlie5.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729076AbgHYGqB (ORCPT ); Tue, 25 Aug 2020 02:46:01 -0400 Date: 25 Aug 2020 15:46:00 +0900 X-IronPort-AV: E=Sophos;i="5.76,351,1592838000"; d="scan'208";a="55453648" Received: from unknown (HELO relmlir5.idc.renesas.com) ([10.200.68.151]) by relmlie5.idc.renesas.com with ESMTP; 25 Aug 2020 15:46:00 +0900 Received: from mercury.renesas.com (unknown [10.166.252.133]) by relmlir5.idc.renesas.com (Postfix) with ESMTP id 0A3D14002C14; Tue, 25 Aug 2020 15:46:00 +0900 (JST) Message-ID: <87lfi3w7hj.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto To: Sameer Pujar Cc: , , , , , , , , , , , , , , , , , , Subject: Re: [PATCH v2 3/9] ASoC: audio-graph: Identify 'no_pcm' DAI links for DPCM In-Reply-To: References: <1596605064-27748-1-git-send-email-spujar@nvidia.com> <1596605064-27748-4-git-send-email-spujar@nvidia.com> <87pn7ofs19.wl-kuninori.morimoto.gx@renesas.com> <97f325a6-96cc-11c5-8027-8c0a159e3da0@nvidia.com> <2d3aa11e-3c56-1f7a-3d41-2457f973d55b@nvidia.com> <87sgcbwcnf.wl-kuninori.morimoto.gx@renesas.com> <14691a05-cb29-a030-0e72-eca900d8eb7e@nvidia.com> <87o8mzwajg.wl-kuninori.morimoto.gx@renesas.com> User-Agent: Wanderlust/2.15.9 Emacs/26.3 Mule/6.0 MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Sameer > > Other solution is create both snd_soc_find_dai_with_mutex()/without_mutex(). > > I'm not sure which style is best. > > I don't know how complex it is to have a unified solution. But if we > can protect snd_soc_find_dai() itself, things would be simpler may be > in long term. Right now there are separate source files for soc-core, > soc-dai and soc-component, but because of two approaches looks like > the function need to be moved around and need to be placed in > soc-core. Also the issue might go unnoticed if LOCKDEP is not enabled. > > May be start with a wrapper for now and eventually unify? Yeah, it seems has _with_mutex() can be better idea. I'm posting patch, but I noticed that Mark's branch vs Linus branch have some mismatch (?), and now I'm asking it to him. I can post _with_mutex() version as v2 if I could get answer. After that I'm happy your next patch can re-use it. Thank you for your help !! Best regards --- Kuninori Morimoto