Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp353138rwe; Wed, 31 Aug 2022 04:07:54 -0700 (PDT) X-Google-Smtp-Source: AA6agR4omKdeI/vYwJ3+AUy/BrNRXJbjq4ihLVjTiodqttQD3qqKq8DbYYZCupqDNMANbG8acFy2 X-Received: by 2002:a17:903:1c4:b0:175:2c12:6e46 with SMTP id e4-20020a17090301c400b001752c126e46mr5923798plh.145.1661944073997; Wed, 31 Aug 2022 04:07:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661944073; cv=none; d=google.com; s=arc-20160816; b=cI7MAYOFRwMfSyFsB2F93IFcoD7GMsK4VJxmausttio3vBcffVZ7NyYvjiuf09L4g7 f4q3NVAR/cgHHWgcfCQyyQakEbdBEqpmOBGlsQu/6z4cVCd3fkhK1aQ4L/sqVPOVRPd6 ZBKyN0CnYE/aOHWRHG3g/JfP309aPXfOs+veKbeEOGGkQdBauiCUpodNsy566JG3y5Zf rBp0XJwWxWzHhvBqg2QY4nR16DtVEN9+7YYlJEcworz8GjVjkqJJjayBWw7UX3E6J8NO BJqzIE6TgzoWhEVYnPlfFZmBrwyztOTb/WM0nFOqYwtPvFxMNNaNUqluuwPmcYLbKwzT +M0A== 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=qmSDVvWPmXjsEoLB/yy4dBeFNE6LDECdPTKFlVF1PoE=; b=M8gZKWGZh1KsSVtjlq5U5whLj8s55ov17VvJtECiZ17zBtafpYYoWnYiJGsQjNwdgJ N1yUUIDdg3doOPPB2s8d2D31HzhrpItCGJEhqVMrno7p3xtB/YWolrW4b/zVrul2XuJb YjM6cD95GWIahawQOhjfPrCbXwUkj6957SDFFiMjEvIJgIEDjI0ecbgVY2FPcvXR4q9h IxgkmoUMvH+BV1EHQ3mbDhvxqMGfWA4V091M2CLQYtTqffXby2wwiVvimVGtnsvFS1/x gpJhsRwGjGqhCQLWNzvR/GNKqkCAyIDDyhRDqTa2aE7JQ+dY+pTck6dJ00UvU6y+Jwms y5uQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=sjv1ud0N; 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 kb14-20020a17090ae7ce00b001f0311d12d0si1704284pjb.185.2022.08.31.04.07.43; Wed, 31 Aug 2022 04:07:53 -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=sjv1ud0N; 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 S229437AbiHaKhW (ORCPT + 99 others); Wed, 31 Aug 2022 06:37:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53264 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229658AbiHaKhU (ORCPT ); Wed, 31 Aug 2022 06:37:20 -0400 Received: from mail-wr1-x434.google.com (mail-wr1-x434.google.com [IPv6:2a00:1450:4864:20::434]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D4C62B24A9 for ; Wed, 31 Aug 2022 03:37:18 -0700 (PDT) Received: by mail-wr1-x434.google.com with SMTP id u18so5004276wrq.10 for ; Wed, 31 Aug 2022 03:37:18 -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=qmSDVvWPmXjsEoLB/yy4dBeFNE6LDECdPTKFlVF1PoE=; b=sjv1ud0NJToWCCz5mpoI1XXv7VRN42nSodi+vU6HqC3fe4/RDdH9q78MztUStUg3tz Xc2VH//pGT74lRB34bGeve8JkG1qnn0+IqPnock9NFdhh6qZlnaCkIyowzKTRT7FJxji z/GR4fNB9q+235VImiHhUj3qtbmxYAGPA6OWg32iyZY+RWa1WOllcMXAW5Ypa+UHJ8jW 8xs5JdrK3PiKkOFMlLV0DL+qhh48j42QQnv6mKDYipwbJKuU6YxKUw7q3wlwpZcq+q8X TT/+nZgkSnsztlClPhtaZpJBrpVs5ezXDDOxx5Tro2hYIsNMiKVkIvoSrdqaMCZkKMyS wVgA== 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=qmSDVvWPmXjsEoLB/yy4dBeFNE6LDECdPTKFlVF1PoE=; b=LVO47FSKV3gSvtaGvlwwtPbfDhcz6giVtPvZketNcwwDipTfySSRFUwBWf3gj6D6Y+ NFkdZJ8x9oRuEbINpyuQIbQkX2u/jBhPm3hMFzpm5UngJ8Vcr3rtJwqDro0oOyzZ9XxF MTwdratv4Wbf7w3Y8VtYqfR9acE/8+3wY6s2ZDaKIsykzk0XXAGisGgI0HAseHnQlRy/ TuQosXiwgvFe4Vgg9ppphA+T4ZZsuUsPUaupK/WvT2vXIaNLKE14w4UMMUtMeCmvRruH LeJqNEsz9sL5WeKCX5ZxZCYmQC1WvJJI+OIoT+WxEMp8dTCAumfdYupDjwLT7sthKhv8 gt0g== X-Gm-Message-State: ACgBeo2uDb2kEdKpfG1iE7zqjiwdjVuZMwvYeIzjxsucWyTO8A0zbYVt OCDm1TVUNhRqyWwTwW4V8yRSBg== X-Received: by 2002:a05:6000:144a:b0:220:7181:9283 with SMTP id v10-20020a056000144a00b0022071819283mr10935127wrx.158.1661942237422; Wed, 31 Aug 2022 03:37:17 -0700 (PDT) Received: from [192.168.86.238] (cpc90716-aztw32-2-0-cust825.18-1.cable.virginm.net. [86.26.103.58]) by smtp.googlemail.com with ESMTPSA id e3-20020adfe383000000b0021ef34124ebsm12377427wrm.11.2022.08.31.03.37.15 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 31 Aug 2022 03:37:16 -0700 (PDT) Message-ID: Date: Wed, 31 Aug 2022 11:37:15 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [PATCH 2/6] ASoC: codecs: wsa-macro: add support for sm8450 and sc8280xp Content-Language: en-US To: Krzysztof Kozlowski , 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> <5da6171a-4949-9cc7-2967-6cc39a7955c8@linaro.org> From: Srinivas Kandagatla In-Reply-To: <5da6171a-4949-9cc7-2967-6cc39a7955c8@linaro.org> Content-Type: text/plain; charset=UTF-8; format=flowed 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=ham 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 10:19, Krzysztof Kozlowski wrote: > 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? You mean using fallback compatible "qcom,sc7280-lpass-wsa-macro" in sc8280xp devicetree and not add new compatibles in the driver? The reason for adding this new compatible strings is that macros in this lpass codec that differ form each SoC. ex: [PATCH 6/6] ASoC: codecs: tx-macro: add support for sm8450 and sc8280xp and there is a pending patch on va-macro that has soundwire controller frame sync and reset control which is moved from tx-macro to va-macro. so DT might endup with mix of compatibles for same LPASS Codec like this: "qcom,sc7280-lpass-wsa-macro" "qcom,sc8280xp-lpass-va-macro" "qcom,sc8280xp-lpass-tx-macro" "qcom,sc8280xp-lpass-rx-macro" AFAIU, the fallback thing will work for things that are identical but in this case they differ across SoCs, and having SoC specific compatibles in now would help handle this. thanks, srini > > Best regards, > Krzysztof