Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2665193pxa; Mon, 24 Aug 2020 22:55:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzBH8AWg9AGE4zuqw9vuz7Mqe946WfKMD1Gx/my7cwyZbEc2JFOwUC29iEflTezyhaFBesA X-Received: by 2002:a05:6402:1350:: with SMTP id y16mr6937622edw.68.1598334916026; Mon, 24 Aug 2020 22:55:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598334916; cv=none; d=google.com; s=arc-20160816; b=CGvFmSlzf2irSr8bfGnjZPnQr//gjmRIq2fWmDnZAUPA6kWoiD48BnHP0KhyflEZIG btNYv17nhXElJLulgu+bfMqI6F6CNrAW6rfn9g3+qAawUF3oGoK5eZXOQ4iLlvSY/VjL OPdkVqYW/gDC7wCbXPZPQvC5UWR9EfdMXrCNDahb/NDlKQ4sWZy3pMFep+gmtuP5pkD2 O1lGzf1U4ZiJ3Izdyt2kTwdQzzA9MQUzQ/FkZa3UbyeEDIguZzrXhCOOzEqGiK7gDNgh T17+WsHsQ+GxOFMNnYB9zZVhANzgc73QEPxgPWDHD1Ivrgc5fNE+9dzqaLDYma2k/koN j5dg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:dkim-signature:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=bOJlbPEDP7bzEfLTN1ma/hpFcaswtMKhxhFtn3X3KB0=; b=kkvPr1ZTvLDh8er9C/1qaO8P8XVZY5NYI8tuLBswqz7IeTvYxCxIRdatRw9/qLmaMb VC6H1QjU1OOjGJwlJ2yfQKKSuCz5pW9oVKxdooSOzDLgBUd5z+4+W0oJTuRSquEy/Qlq 20pyeOabJQ4zEq1JAL6OPrcRwtrkAeTS6tmqBrjCuyVy9mygV3vAMnQfHiNmNN+xnYbq ozwYAU3o+fBTk5MRauso2WKN1ACyVn1ZGXII7tSej2CzYxx4+T4aynXXEdM0DKJL+ukM sRfhTa4re6yhQClEzCJ7qcQ+foCp74Trv0S2nB+eB21EgcaOTlNSAIRPBqTpoxOAtEuT 27cA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=fsLiRzQw; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g14si2482883edt.369.2020.08.24.22.54.52; Mon, 24 Aug 2020 22:55:16 -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; dkim=pass header.i=@nvidia.com header.s=n1 header.b=fsLiRzQw; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728923AbgHYFxY (ORCPT + 99 others); Tue, 25 Aug 2020 01:53:24 -0400 Received: from hqnvemgate25.nvidia.com ([216.228.121.64]:12339 "EHLO hqnvemgate25.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726090AbgHYFxV (ORCPT ); Tue, 25 Aug 2020 01:53:21 -0400 Received: from hqpgpgate102.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate25.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Mon, 24 Aug 2020 22:52:19 -0700 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate102.nvidia.com (PGP Universal service); Mon, 24 Aug 2020 22:53:21 -0700 X-PGP-Universal: processed; by hqpgpgate102.nvidia.com on Mon, 24 Aug 2020 22:53:21 -0700 Received: from [10.25.97.151] (10.124.1.5) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Tue, 25 Aug 2020 05:53:15 +0000 Subject: Re: [PATCH v2 3/9] ASoC: audio-graph: Identify 'no_pcm' DAI links for DPCM To: Kuninori Morimoto CC: , , , , , , , , , , , , , , , , , , 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> From: Sameer Pujar Message-ID: Date: Tue, 25 Aug 2020 11:23:11 +0530 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <87o8mzwajg.wl-kuninori.morimoto.gx@renesas.com> X-Originating-IP: [10.124.1.5] X-ClientProxiedBy: HQMAIL101.nvidia.com (172.20.187.10) To HQMAIL107.nvidia.com (172.20.187.13) Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-GB DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1598334739; bh=bOJlbPEDP7bzEfLTN1ma/hpFcaswtMKhxhFtn3X3KB0=; h=X-PGP-Universal:Subject:To:CC:References:From:Message-ID:Date: User-Agent:MIME-Version:In-Reply-To:X-Originating-IP: X-ClientProxiedBy:Content-Type:Content-Transfer-Encoding: Content-Language; b=fsLiRzQw2KhMMRuKJolVunTD28eXxVDQEasbWsBseJFOJDgUaSFnunqKtJ3hBvnjb E7KH1w1J+OjQ3pxSZXZpO+ndOwCuK0G2/xn5odTxVE055PvSbW4ECgZOPS2OGsbbH7 rOTlyUpcq+sthGswphFXGjEDvltPYqQKPUEiDY1CgM3MnLEhYtWEBV2/wZxieSF4SN ezxBnh4qVgtV983svcZeEKtOAZxdKwbwbVIe0utHlM7kG0Oq8ssLOsvFEAUnDYnjBO b/eNGzTOIAnxUbM7fpNZ8m4Rvv7XVXAdZ1hImwviKGkkc2sFPkgiMHW91zdOI1622/ erQHqP+NaoXCg== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Morimoto-san, >>> Yes, I'm posting fixup patch. >>> >>> https://patchwork.kernel.org/patch/11719919/ >> Just curious that why snd_soc_find_dai() itself cannot be protected, >> instead of leaving this to callers. > Because, snd_soc_find_dai() is called both with/without client_mutex. > (same/sof are calling it with mutex, simple-card/audio-graph are calling without mutex) > > 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? Thanks, Sameer.