Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp280999rwe; Wed, 31 Aug 2022 02:43:42 -0700 (PDT) X-Google-Smtp-Source: AA6agR4r8AG0wfgM3xRGQ+RslO26g4tqQMx/MDKPp2ROaA10brZ1bA4PakFxyMO9WNhWrgheaIpo X-Received: by 2002:a65:6b89:0:b0:41a:69b1:8674 with SMTP id d9-20020a656b89000000b0041a69b18674mr21108348pgw.417.1661939022599; Wed, 31 Aug 2022 02:43:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661939022; cv=none; d=google.com; s=arc-20160816; b=bfHB/C2ZUHfSm/Doh5ypAcQu5fvqxpNdOPzAgVjm9YlpdiUHRrkiWqncyVW0glyody bUA8A24RmUMox/bKnaDZ5KFWA4leBnrN+Q+sK9/LnFR8IAVRrKt7yKt/5C7hitT4HeXg G2vGtMbMdadYm6cadQDyW2PHyExRZGuOoyFjREn2KTh8o+amIWx1nY7cP7MlTndSv3ry kFnU0ybYp6NmZEz5vKcyoi7kn6bKcYbGxP84/Y5Xxuu3K9n+VPnCHsaasP0M+EEX+9Wq jTAU9XreHsCjyLJZHAPMr4myFSOlsga7r4VTbpzAoYOKZryRaUpE54ROhBMQDwudTm6a 8FJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=+pwFDg0e0j+yXSWZO1QdYOdmfRiXIedB2SifAAmn8XI=; b=AJQjUtD0z5Tf9owj0J9A+2DYkQr9F59OYlY+HFta18DB+X6ilz/sbpp/YksfsXV6Nq jzvPY2gtUOD2FSF9ltrf+zjMNM741hK7gwc+YPP6g/zX3pr7WrxaKbBGYLTO96qAhYol lW//QBj5Vt94N6xb01+MItGiGNj0sWKqma3d0hDFxbvYPrgYeiSebeoRudzm1azROAPJ ot50hx/peSmqG8Q6YMmRox1m8WMb+6kGlNv2nNrW7wrIy1UCqcNlTyKKYHamsQ3Qey3v gO1ab1G2hV8udF4Xf439hr50xIL5iA4Hn/PWatIVejllwj9O62EQvJBbMQS0OTT4LdNK dCtA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="l/XeKVh2"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m16-20020a170902bb9000b0017293612a07si390737pls.540.2022.08.31.02.43.28; Wed, 31 Aug 2022 02:43:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="l/XeKVh2"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231929AbiHaJT7 (ORCPT + 99 others); Wed, 31 Aug 2022 05:19:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32978 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231842AbiHaJTf (ORCPT ); Wed, 31 Aug 2022 05:19:35 -0400 Received: from mail-lf1-x134.google.com (mail-lf1-x134.google.com [IPv6:2a00:1450:4864:20::134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 88AD4C9E9A for ; Wed, 31 Aug 2022 02:19:14 -0700 (PDT) Received: by mail-lf1-x134.google.com with SMTP id bq23so19081241lfb.7 for ; Wed, 31 Aug 2022 02:19:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc; bh=+pwFDg0e0j+yXSWZO1QdYOdmfRiXIedB2SifAAmn8XI=; b=l/XeKVh2yJtrLsYPx4G5AdOSXv4Uyh0J3MSLro6syYpwPvq4Bw46hy3wZ1Ilkv5dIF LSrnQ8tjtKNc3SxxPH9lKvuWdhPfJWFUJecLJDYORyahIXTErnRyW3KvzdLT6dWyTS22 LfHjdoH9FWpyguDshL/AnL4NhAZInG/YKh7uk/OgCF2cFCbslvKn/CpTS4jApAS0SctR 6yWLpZClaTeXOwjlUxJcMexUH/xsdqd5XvWOl54wSjlSJBxPYUlWq/5f0EEPMoZxQaht Pl9RzmQ4ZrU9r4j58FNmeP0pK1WLGmry0jC2QaO+4hG6HChazS+CDQ5ATVb4RSAJ4Mzc sw+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc; bh=+pwFDg0e0j+yXSWZO1QdYOdmfRiXIedB2SifAAmn8XI=; b=xzzeZP5ODcobGldcZr9NzbZ7tNqR+jojZOHEShgNyKY+X0MeTbd4MZFekSpWuzQd9+ jujDWzaNwiHLWswEg3FUUuHAW5Gxj6zW0uM9OxWehNVQ6mvWyA00rWcjupRRxcJLrV5G QASMKzOHBg1hF3TBdJhpYtMNpP5wjHRjZ/yW6zJngiKjJgSdbuJLgCcnPifXpe2FeFAa 0WsubxciKoSKZoGDnsa5BO+cETk+FTrrTqm61J70aDBBwigdYMgf0hr/xybXuONygMu2 iOnHt6mklvP+vQlwraKAsaqQhlYBP3QdWl3Jxmpx56OdfwC96uMDRbKsaDiee+IhHU99 2ujg== X-Gm-Message-State: ACgBeo1aiteRJUmt6vIWS585uFnnJEnNHfhhYAbD/Umua3eq4dtJ2C0g ol6ogX4JSq4tkC+5BnypDb63PQ== X-Received: by 2002:ac2:5b50:0:b0:494:5ec2:1ea5 with SMTP id i16-20020ac25b50000000b004945ec21ea5mr6367241lfp.276.1661937552410; Wed, 31 Aug 2022 02:19:12 -0700 (PDT) Received: from [192.168.28.124] (balticom-73-99-134.balticom.lv. [109.73.99.134]) by smtp.gmail.com with ESMTPSA id r7-20020a2e8e27000000b0025dd8b42c64sm1108430ljk.79.2022.08.31.02.19.11 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 31 Aug 2022 02:19:11 -0700 (PDT) Message-ID: <5da6171a-4949-9cc7-2967-6cc39a7955c8@linaro.org> Date: Wed, 31 Aug 2022 12:19:10 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.13.0 Subject: Re: [PATCH 2/6] ASoC: codecs: wsa-macro: add support for sm8450 and sc8280xp Content-Language: en-US To: Srinivas Kandagatla , Rob Herring Cc: broonie@kernel.org, krzysztof.kozlowski+dt@linaro.org, perex@perex.cz, tiwai@suse.com, pierre-louis.bossart@linux.intel.com, linux-arm-msm@vger.kernel.org, alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20220818134619.3432-1-srinivas.kandagatla@linaro.org> <20220818134619.3432-3-srinivas.kandagatla@linaro.org> <20220818171222.GG1978870-robh@kernel.org> <9c9226d9-8470-6672-d8ce-3fb1e4df3fda@linaro.org> From: Krzysztof Kozlowski In-Reply-To: <9c9226d9-8470-6672-d8ce-3fb1e4df3fda@linaro.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 31/08/2022 12:17, Srinivas Kandagatla wrote: > > > On 18/08/2022 18:12, Rob Herring wrote: >> On Thu, Aug 18, 2022 at 02:46:15PM +0100, Srinivas Kandagatla wrote: >>> Add compatible for sm8450 and sc8280xp. >>> >>> Signed-off-by: Srinivas Kandagatla >>> --- >>> sound/soc/codecs/lpass-wsa-macro.c | 2 ++ >>> 1 file changed, 2 insertions(+) >>> >>> diff --git a/sound/soc/codecs/lpass-wsa-macro.c b/sound/soc/codecs/lpass-wsa-macro.c >>> index 27da6c6c3c5a..f82c297ea3ab 100644 >>> --- a/sound/soc/codecs/lpass-wsa-macro.c >>> +++ b/sound/soc/codecs/lpass-wsa-macro.c >>> @@ -2561,6 +2561,8 @@ static const struct dev_pm_ops wsa_macro_pm_ops = { >>> static const struct of_device_id wsa_macro_dt_match[] = { >>> {.compatible = "qcom,sc7280-lpass-wsa-macro"}, >>> {.compatible = "qcom,sm8250-lpass-wsa-macro"}, >>> + {.compatible = "qcom,sm8450-lpass-wsa-macro"}, >>> + {.compatible = "qcom,sc8280xp-lpass-wsa-macro" }, >> >> Looks like these are backwards compatible with the existing versions, >> why not reflect that in the binding? > Backward compatibility is not always true, some of the registers and > there defaults tend to change across SoCs. Having SoC specific > compatible could help us deal with this and also make code more inline > with other codec macros in LPASS IP. I am not saying that there should be no SoC specific compatible. This one is a must, but the question why duplicating the entries and not using fallback? Best regards, Krzysztof