Linux Remote Processor Subsystem development
 help / color / mirror / Atom feed
From: Krzysztof Kozlowski <krzk@kernel.org>
To: Jingyi Wang <quic_jingyw@quicinc.com>,
	Bjorn Andersson <andersson@kernel.org>,
	Mathieu Poirier <mathieu.poirier@linaro.org>,
	Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>,
	Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Cc: linux-arm-msm@vger.kernel.org, linux-remoteproc@vger.kernel.org,
	devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
	linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
	Xin Liu <quic_liuxin@quicinc.com>
Subject: Re: [PATCH 02/19] remoteproc: qcom: pas: Add QCS8300 remoteproc support
Date: Thu, 5 Sep 2024 08:24:44 +0200	[thread overview]
Message-ID: <6652a08e-7143-4214-a864-9f27c10d7571@kernel.org> (raw)
In-Reply-To: <a0f3176d-9b2a-4fb9-9a7b-f8e778e3b427@quicinc.com>

On 05/09/2024 06:30, Jingyi Wang wrote:
>>> diff --git a/drivers/remoteproc/qcom_q6v5_pas.c b/drivers/remoteproc/qcom_q6v5_pas.c
>>> index ef82835e98a4..f92ccd4921b7 100644
>>> --- a/drivers/remoteproc/qcom_q6v5_pas.c
>>> +++ b/drivers/remoteproc/qcom_q6v5_pas.c
>>> @@ -1416,6 +1416,9 @@ static const struct of_device_id adsp_of_match[] = {
>>>  	{ .compatible = "qcom,qcs404-adsp-pas", .data = &adsp_resource_init },
>>>  	{ .compatible = "qcom,qcs404-cdsp-pas", .data = &cdsp_resource_init },
>>>  	{ .compatible = "qcom,qcs404-wcss-pas", .data = &wcss_resource_init },
>>> +	{ .compatible = "qcom,qcs8300-adsp-pas", .data = &sa8775p_adsp_resource},
>>> +	{ .compatible = "qcom,qcs8300-cdsp-pas", .data = &sa8775p_cdsp0_resource},
>>> +	{ .compatible = "qcom,qcs8300-gpdsp-pas", .data = &sa8775p_gpdsp0_resource},
>>
>> What's the point of this? You have entire commit msg to explain such
>> weird duplication. Otherwise sorry, don't duplicate unnecessarily.
>> Devices are compatible, aren't they?
>>
>> Best regards,
>> Krzysztof
>>
>>
> I will drop this, could you please help us to understand what is the correct way to
> deal such situation, do we need to update the yaml and add qcs8300 bindings or just
> reference to sa8775p bindings in the device tree?

Above diff hunk suggests that devices are compatible, so should be made
compatible in the bindings (use fallback). There are plenty examples of
this for all Qualcomm devices.

Best regards,
Krzysztof


  reply	other threads:[~2024-09-05  6:24 UTC|newest]

Thread overview: 43+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-09-04  8:33 [PATCH 00/19] Add initial support for QCS8300 Jingyi Wang
2024-09-04  8:33 ` [PATCH 01/19] dt-bindings: remoteproc: qcom,sa8775p-pas: Document QCS8300 remoteproc Jingyi Wang
2024-09-04  8:33 ` [PATCH 02/19] remoteproc: qcom: pas: Add QCS8300 remoteproc support Jingyi Wang
2024-09-04  9:36   ` Krzysztof Kozlowski
2024-09-05  4:30     ` Jingyi Wang
2024-09-05  6:24       ` Krzysztof Kozlowski [this message]
2024-09-06  5:33         ` Jingyi Wang
2024-09-04  8:33 ` [PATCH 03/19] dt-bindings: phy: Add QMP UFS PHY comptible for QCS8300 Jingyi Wang
2024-09-04 10:55   ` Dmitry Baryshkov
2024-09-04  8:33 ` [PATCH 04/19] dt-bindings: ufs: qcom: Document the QCS8300 UFS Controller Jingyi Wang
2024-09-04  8:33 ` [PATCH 05/19] phy: qcom-qmp-ufs: Add support for QCS8300 Jingyi Wang
2024-09-04  9:36   ` Krzysztof Kozlowski
2024-09-05  4:33     ` Jingyi Wang
2024-09-04  8:33 ` [PATCH 06/19] dt-bindings: power: rpmpd: Add QCS8300 power domains Jingyi Wang
2024-09-05 11:30   ` Konrad Dybcio
2024-09-05 11:31     ` Konrad Dybcio
2024-09-04  8:33 ` [PATCH 07/19] pmdomain: qcom: rpmhpd: " Jingyi Wang
2024-09-04  8:33 ` [PATCH 08/19] dt-bindings: qcom,pdc: document QCS8300 Power Domain Controller Jingyi Wang
2024-09-04  8:33 ` [PATCH 09/19] dt-bindings: arm-smmu: Add compatible for QCS8300 SoC Jingyi Wang
2024-09-04  8:33 ` [PATCH 10/19] dt-bindings: firmware: qcom,scm: document SCM on QCS8300 SoCs Jingyi Wang
2024-09-04  8:33 ` [PATCH 11/19] dt-bindings: soc: qcom: add qcom,qcs8300-imem compatible Jingyi Wang
2024-09-04  8:33 ` [PATCH 12/19] dt-bindings: mailbox: qcom-ipcc: Document QCS8300 IPCC Jingyi Wang
2024-09-04  8:33 ` [PATCH 13/19] dt-bindings: mfd: qcom,tcsr: Add compatible for QCS8300 Jingyi Wang
2024-09-04  8:33 ` [PATCH 14/19] dt-bindings: nvmem: qfprom: " Jingyi Wang
2024-09-04  8:33 ` [PATCH 15/19] dt-bindings: soc: qcom,aoss-qmp: Document the QCS8300 AOSS channel Jingyi Wang
2024-09-04  8:33 ` [PATCH 16/19] dt-bindings: arm: qcom: document QCS8275/QCS8300 SoC and reference board Jingyi Wang
2024-09-04  9:38   ` Krzysztof Kozlowski
2024-09-05  4:42     ` Jingyi Wang
2024-09-05  6:26       ` Krzysztof Kozlowski
2024-09-04  8:33 ` [PATCH 17/19] arm64: defconfig: enable clock controller, interconnect and pinctrl for QCS8300 Jingyi Wang
2024-09-04  9:39   ` Krzysztof Kozlowski
2024-09-05  4:54     ` Jingyi Wang
2024-09-06  3:18       ` Dmitry Baryshkov
2024-09-06  6:15         ` Jingyi Wang
2024-09-06  9:36           ` Dmitry Baryshkov
2024-09-04  8:33 ` [PATCH 18/19] arm64: dts: qcom: add initial support for QCS8300 DTSI Jingyi Wang
2024-09-04  9:41   ` Krzysztof Kozlowski
2024-09-05  4:56     ` Jingyi Wang
2024-09-04  8:34 ` [PATCH 19/19] arm64: dts: qcom: add base QCS8300 RIDE dts Jingyi Wang
2024-09-07 23:22   ` kernel test robot
2024-09-04  9:34 ` [PATCH 00/19] Add initial support for QCS8300 Krzysztof Kozlowski
2024-09-04 10:19   ` Krzysztof Kozlowski
2024-09-04 13:36 ` Rob Herring (Arm)

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6652a08e-7143-4214-a864-9f27c10d7571@kernel.org \
    --to=krzk@kernel.org \
    --cc=andersson@kernel.org \
    --cc=bartosz.golaszewski@linaro.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=linux-remoteproc@vger.kernel.org \
    --cc=mathieu.poirier@linaro.org \
    --cc=quic_jingyw@quicinc.com \
    --cc=quic_liuxin@quicinc.com \
    --cc=robh@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox