Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp2182581rdh; Tue, 26 Sep 2023 15:30:54 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFY/lY54mIGU1TfBSbBAKqgZ81L4uJUvfjrIjGywlZavjn/4enQI6HQXQ1Uy5EX1m16H6Eg X-Received: by 2002:a17:902:ec82:b0:1c4:313c:babc with SMTP id x2-20020a170902ec8200b001c4313cbabcmr132114plg.2.1695767454190; Tue, 26 Sep 2023 15:30:54 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1695767454; cv=pass; d=google.com; s=arc-20160816; b=SR2sZmTfhhc8E/VO113mfVi9njNlVDVQYUykIDW/vmy7WYoVckQ42HPaze8lAh+kuJ z4auiMrJfd6lzyrOn75bDQDSrjsGWt91ZllRYSIxjVemWh6GLHur+qhCsfIHlWPtwPVD AWd6VKh3C2VWK6vwfD0vz5Z+AT/MmMaXH4RXYYAjGGT7HV5ysynytJEPTV3ELeNLDX8l nP9ODftOyOh9hiypd4QeZlCH8qmYj928glKo5ANGJ7JrDYTYmWVlj74mb2NQVNhZVOPr 7u3LjiZ71R7yjhsp3L3P/eZgp2qmWF55xw9F36FdrSQFj3GcZSpjAFw8mSK/IXJ4BsOX LkgQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:dkim-signature; bh=gXP9+C6uV2gAxP9cx2kOiZiHz5Y6eAXv91fPvZhh35U=; fh=pA7kgheaD3jK1qgNXKo+z24vwSoSC4pTV0pHLNIFQSI=; b=a0otT16Onvk1LgwVwZaXfyQdzVh0Eu9J9CFd8yHkUIS7O0IIzqm/5yQq/nRHRQCVxz LST9x/MX3SF6h+UjNnQpv+gdRepVkO0q3ta4zGrtvUC8aeSChmtIrPJDrDjKN1em377n W7Yj12NC0JWdtnUHeZTPnbm1EJ5lEI06iYas/ZMzcuefmgpVyQICu/aOrlsxq7Vf95mM 72N26a9Xm8X66ZxOl8h/2cNbQatHOYYzD3Q6DeaphovG1QsReqO9Y/iTSaro/1EyeRD4 YO373yRhiU+jSEg+ucj/nKfTXswd/o2gD4w1ZIr/7QRPlEHEkVW3OF6ajynPzCgzasiH dpfA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gerhold.net header.s=strato-dkim-0002 header.b=eN4ybnc1; dkim=neutral (no key) header.i=@gerhold.net header.s=strato-dkim-0003; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id m12-20020a170902e40c00b001c370dc4445si10298054ple.210.2023.09.26.15.30.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Sep 2023 15:30:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@gerhold.net header.s=strato-dkim-0002 header.b=eN4ybnc1; dkim=neutral (no key) header.i=@gerhold.net header.s=strato-dkim-0003; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 7BFA1826FAB5; Tue, 26 Sep 2023 13:17:46 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235773AbjIZURs (ORCPT + 99 others); Tue, 26 Sep 2023 16:17:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56610 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229694AbjIZURr (ORCPT ); Tue, 26 Sep 2023 16:17:47 -0400 Received: from mo4-p03-ob.smtp.rzone.de (mo4-p03-ob.smtp.rzone.de [85.215.255.103]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 376A8120; Tue, 26 Sep 2023 13:17:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695759457; cv=none; d=strato.com; s=strato-dkim-0002; b=Gd2+GX7jicTOYyGDuJ+V+AktN7HvaAPB7C6faEsx8mxol2lCeLqyRKwUchUkTQK/3V M84NSLhXYVxzeTwIibP+jftyQBBgwgsPXB1me51s8D29EFxnQ/0PdivNXPy8gDldazGx KzSueGJh0bOOzN0auc0QaPpIDd4QIfDMoyL7jrnrVgTvYFIBcgvIFh5TI6IjBHEP+Yf7 Pmvwe8bZHvM1KFZZRSNNU4OzTbSs+53lHhZh8nQo6xLwYnCuxMnR68nQ9OvXUCIN6zIG mXUiKMK2c92kxdAV0WBpYDDozQvfQoyABr3M6CGdyBkSbc72doY9SvDQLsp/BkCyCD11 4HLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1695759457; s=strato-dkim-0002; d=strato.com; h=In-Reply-To:References:Message-ID:Subject:Cc:To:From:Date:Cc:Date: From:Subject:Sender; bh=gXP9+C6uV2gAxP9cx2kOiZiHz5Y6eAXv91fPvZhh35U=; b=QX+Qtds5nmHZjfflrA8oiEN2teA+EiMCpxwvbbj//1DIINo43b42XXLKfbkVyPhFtv C5NA+nRJ/8eTS8+uuXopLuuS+Pi908S47cVADWCbnVPPattydk5d/krljK6yK7BPjAND 7R0vI4DvTrba5eNvA0SGKCAjzAeLJU1MFKCN5AkFWVMnOTBFVgJTryYLrhagp+vlnssG QKpzlqlPvBy/E5pGajBLTD/b1HgWCoGbkuuvyP8NzaKS+xQ7d6CW7EBDRDATt22BZgGS g/emyg93ZJTpdpKpKXczCx7R1HPJIHsBAJlRQyPZrPF3sAKlHnSMBPYvPdVCzTySFDRv hMOQ== ARC-Authentication-Results: i=1; strato.com; arc=none; dkim=none X-RZG-CLASS-ID: mo03 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1695759457; s=strato-dkim-0002; d=gerhold.net; h=In-Reply-To:References:Message-ID:Subject:Cc:To:From:Date:Cc:Date: From:Subject:Sender; bh=gXP9+C6uV2gAxP9cx2kOiZiHz5Y6eAXv91fPvZhh35U=; b=eN4ybnc1ebaw6IEGAYV9fsaRFEbn0hL8jaYE1ogGVzJFiLwefD/xNr6AZ8YmgXfdJP uaWgjnrk/mJPeoYM/cDWCwEbeAP0NtqauugUpG1PbOjkiDl0DCWEUdAI2GmTBdGsM8+L Es8hNQbzxjgSvYcw5+WTMG1uag06EaJGa1MEMhKnJ6JErMQarXDhg0J9dQ3JTMAsiWGn VLYrDoEvcSBywyySQp1/NukccV7AJSmFcZjE8FI1dlZv2ZSFElFCOb9eOJyPlne4+yrc CF6KXHl5h2sIsY87h0Om248KzXKCccAUxYvvd6UpN3pO3qmsANCezhkut+7dBqlyp0pn hlBQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; t=1695759457; s=strato-dkim-0003; d=gerhold.net; h=In-Reply-To:References:Message-ID:Subject:Cc:To:From:Date:Cc:Date: From:Subject:Sender; bh=gXP9+C6uV2gAxP9cx2kOiZiHz5Y6eAXv91fPvZhh35U=; b=S8jZrobbnQXGh6ZKHuq9A7XtHhvfl/EW/RDZhc/O0feR6BkIvQw5XsdP1CD/Nl2emV 4ANU6Ku0mzIkNh94BzAg== X-RZG-AUTH: ":P3gBZUipdd93FF5ZZvYFPugejmSTVR2nRPhVOQ/OcYgojyw4j34+u261EJF5OxJD4paA8piJ1A==" Received: from gerhold.net by smtp.strato.de (RZmta 49.8.2 SBL|AUTH) with ESMTPSA id R04c57z8QKHbgSJ (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate); Tue, 26 Sep 2023 22:17:37 +0200 (CEST) Date: Tue, 26 Sep 2023 22:17:35 +0200 From: Stephan Gerhold To: Konrad Dybcio Cc: Bjorn Andersson , Andy Gross , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, phone-devel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, Bryan O'Donoghue Subject: Re: [PATCH 03/13] arm64: dts: qcom: msm8916: Add common msm8916-modem-qdsp6.dtsi Message-ID: References: <20230926-msm8916-modem-v1-0-398eec74bac9@gerhold.net> <20230926-msm8916-modem-v1-3-398eec74bac9@gerhold.net> <45665b43-3be9-4f27-aa88-12cdef56346d@linaro.org> <1be747ae-1d80-4ebc-9841-c0e98e64a0d1@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1be747ae-1d80-4ebc-9841-c0e98e64a0d1@linaro.org> Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Tue, 26 Sep 2023 13:17:46 -0700 (PDT) On Tue, Sep 26, 2023 at 10:01:21PM +0200, Konrad Dybcio wrote: > On 26.09.2023 21:06, Stephan Gerhold wrote: > > On Tue, Sep 26, 2023 at 08:49:24PM +0200, Konrad Dybcio wrote: > >> On 26.09.2023 18:51, Stephan Gerhold wrote: > >>> Most MSM8916/MSM8939 devices use very similar setups for the modem, > >>> because most of the device-specific details are abstracted by the modem > >>> firmware. There are several definitions (status switches, DAI links > >>> etc) that will be exactly the same for every board. > >>> > >>> Introduce a common msm8916-modem-qdsp6.dtsi include that can be used to > >>> simplify enabling the modem for such devices. By default the > >>> digital/analog codec in the SoC/PMIC is used, but boards can define > >>> additional codecs using the templates for Secondary and Quaternary > >>> MI2S. > >>> > >>> Signed-off-by: Stephan Gerhold > >>> --- > >> I'd rather see at least one usage so that you aren't introducing > >> effectively non-compiled code.. > >> > > > > There are 10 usages in the rest of the patch series. > > Is that enough? :D > > > > IMHO it doesn't make sense to squash this with one of the device > > patches, especially considering several of them are primarily authored > > by others. > I see.. > > Well, I guess I don't have better counter-arguments, but please > consider this the next time around. > Will do! > [...] > > >>> +&lpass_codec { > >>> + status = "okay"; > >>> +}; > >> Any reason for it to stay disabled? > >> > > > > You mean in msm8916.dtsi? > Yes > > > For the SoC dtsi we don't make assumptions > > what devices use or not. There could be devices that ignore the internal > > codec entirely. If there is nothing connected to the codec lpass_codec > > should not be enabled (e.g. the msm8916-ufi.dtsi devices). > See my reply to patch 5 > > [...] > Let's continue discussing that there I guess. :D > >>> + sound_dai_secondary: mi2s-secondary-dai-link { > >>> + link-name = "Secondary MI2S"; > >>> + status = "disabled"; /* Needs extra codec configuration */ > >> Hmm.. Potential good user of /omit-if-no-ref/? > >> > > > > AFAICT /omit-if-no-ref/ is for phandle references only. Basically it > > would only work if you would somewhere reference the phandle: > > > > list-of-sound-dais = <&sound_dai_primary &sound_dai_secondary>; > > > > But this doesn't exist so /omit-if-no-ref/ cannot be used here. > Ahh right, this is the one we don't reference.. Too bad, > would be a nice fit :/ > > I only see one usage of it though (patch 7), perhaps it could > be kept local to that one? > This patch series just contains the initial set of msm8916-modem-qdsp6.dtsi users (for devices which are already upstream). We probably have like 20 more that still need to be upstreamed. :D sound_dai_secondary is fairly rare, but there is at least one more user that will probably end up upstream soon. I think the overhead of these template notes is absolutely negligible compared to all the (potentially) unused SoC nodes we have. :D Thanks, Stephan