All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] rework mailbox compatibles for Qualcomm IPQ SoCs
@ 2023-03-14  4:15 Kathiravan T
  2023-03-14  4:15 ` [PATCH 1/3] dt-bindings: mailbox: qcom: use fallback for IPQ8074 SoC Kathiravan T
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Kathiravan T @ 2023-03-14  4:15 UTC (permalink / raw)
  To: agross, andersson, konrad.dybcio, jassisinghbrar, robh+dt,
	krzysztof.kozlowski+dt, linux-arm-msm, linux-kernel, devicetree
  Cc: Kathiravan T

As suggested by Krzysztof[1], we can use the fallback compatible to
avoid duplicating the same device data.

Krzysztof already submitted a series[2] for this by reworking entire
binding and driver and it is conflicting with the Dmitry's series as
mentioned by Krzysztof[3].

So this series addresses IPQ SoCs alone, as I see no dependency with it.

[1]
https://lore.kernel.org/linux-arm-msm/1b75ab1a-44c9-c4a8-7fa4-d601fc710d2a@linaro.org/
[2]
https://lore.kernel.org/linux-arm-msm/20230202161856.385825-1-krzysztof.kozlowski@linaro.org/
[3]
https://lore.kernel.org/linux-arm-msm/fa6dc60c-3799-d384-da24-f282b7cbd3ef@linaro.org/

Kathiravan T (2):
  dt-bindings: mailbox: qcom: use fallback for IPQ8074 SoC
  mailbox: qcom-apcs-ipc: drop the IPQ8074 and IPQ5332 compatible

Krzysztof Kozlowski (1):
  arm64: dts: qcom: ipq8074: add compatible fallback to mailbox

 .../devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml   | 5 +----
 arch/arm64/boot/dts/qcom/ipq8074.dtsi                        | 3 ++-
 drivers/mailbox/qcom-apcs-ipc-mailbox.c                      | 2 --
 3 files changed, 3 insertions(+), 7 deletions(-)

-- 
2.17.1


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [PATCH 1/3] dt-bindings: mailbox: qcom: use fallback for IPQ8074 SoC
  2023-03-14  4:15 [PATCH 0/3] rework mailbox compatibles for Qualcomm IPQ SoCs Kathiravan T
@ 2023-03-14  4:15 ` Kathiravan T
  2023-03-14  7:06   ` Krzysztof Kozlowski
  2023-03-14  4:15 ` [PATCH 2/3] mailbox: qcom-apcs-ipc: drop the IPQ8074 and IPQ5332 compatible Kathiravan T
  2023-03-14  4:15 ` [PATCH 3/3] arm64: dts: qcom: ipq8074: add compatible fallback to mailbox Kathiravan T
  2 siblings, 1 reply; 8+ messages in thread
From: Kathiravan T @ 2023-03-14  4:15 UTC (permalink / raw)
  To: agross, andersson, konrad.dybcio, jassisinghbrar, robh+dt,
	krzysztof.kozlowski+dt, linux-arm-msm, linux-kernel, devicetree
  Cc: Kathiravan T

Since the IPQ8074 mailbox is compatible with the IPQ6018, lets create
the fallback to ipq6018 compatible, so that we don't bloat the of_device_id
table in the driver.

Suggested-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Kathiravan T <quic_kathirav@quicinc.com>
---
 .../devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml   | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml b/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml
index d888ead09282..00f0ed354a6a 100644
--- a/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml
+++ b/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml
@@ -19,11 +19,10 @@ properties:
       - items:
           - enum:
               - qcom,ipq5332-apcs-apps-global
+              - qcom,ipq8074-apcs-apps-global
           - const: qcom,ipq6018-apcs-apps-global
       - items:
           - enum:
-              - qcom,ipq6018-apcs-apps-global
-              - qcom,ipq8074-apcs-apps-global
               - qcom,msm8996-apcs-hmss-global
               - qcom,msm8998-apcs-hmss-global
               - qcom,qcm2290-apcs-hmss-global
@@ -111,7 +110,6 @@ allOf:
           contains:
             enum:
               - qcom,ipq6018-apcs-apps-global
-              - qcom,ipq8074-apcs-apps-global
     then:
       properties:
         clocks:
@@ -152,7 +150,6 @@ allOf:
           contains:
             enum:
               - qcom,ipq6018-apcs-apps-global
-              - qcom,ipq8074-apcs-apps-global
     then:
       properties:
         '#clock-cells':
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH 2/3] mailbox: qcom-apcs-ipc: drop the IPQ8074 and IPQ5332 compatible
  2023-03-14  4:15 [PATCH 0/3] rework mailbox compatibles for Qualcomm IPQ SoCs Kathiravan T
  2023-03-14  4:15 ` [PATCH 1/3] dt-bindings: mailbox: qcom: use fallback for IPQ8074 SoC Kathiravan T
@ 2023-03-14  4:15 ` Kathiravan T
  2023-03-14  7:07   ` Krzysztof Kozlowski
  2023-03-14  4:15 ` [PATCH 3/3] arm64: dts: qcom: ipq8074: add compatible fallback to mailbox Kathiravan T
  2 siblings, 1 reply; 8+ messages in thread
From: Kathiravan T @ 2023-03-14  4:15 UTC (permalink / raw)
  To: agross, andersson, konrad.dybcio, jassisinghbrar, robh+dt,
	krzysztof.kozlowski+dt, linux-arm-msm, linux-kernel, devicetree
  Cc: Kathiravan T

Since the IPQ8074 and IPQ5332 mailbox are compatible with IPQ6018, we can
use the compatible fallback to IPQ6018. With that, we can drop the
IPQ8074 and IPQ5332 compatible references, as well we don't bloat the
of_device_id table.

Suggested-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Kathiravan T <quic_kathirav@quicinc.com>
---
 drivers/mailbox/qcom-apcs-ipc-mailbox.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/mailbox/qcom-apcs-ipc-mailbox.c b/drivers/mailbox/qcom-apcs-ipc-mailbox.c
index 6bbf87c6d60b..3906bd655991 100644
--- a/drivers/mailbox/qcom-apcs-ipc-mailbox.c
+++ b/drivers/mailbox/qcom-apcs-ipc-mailbox.c
@@ -141,9 +141,7 @@ static int qcom_apcs_ipc_remove(struct platform_device *pdev)
 
 /* .data is the offset of the ipc register within the global block */
 static const struct of_device_id qcom_apcs_ipc_of_match[] = {
-	{ .compatible = "qcom,ipq5332-apcs-apps-global", .data = &ipq6018_apcs_data },
 	{ .compatible = "qcom,ipq6018-apcs-apps-global", .data = &ipq6018_apcs_data },
-	{ .compatible = "qcom,ipq8074-apcs-apps-global", .data = &ipq6018_apcs_data },
 	{ .compatible = "qcom,msm8916-apcs-kpss-global", .data = &msm8916_apcs_data },
 	{ .compatible = "qcom,msm8939-apcs-kpss-global", .data = &msm8916_apcs_data },
 	{ .compatible = "qcom,msm8953-apcs-kpss-global", .data = &msm8994_apcs_data },
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH 3/3] arm64: dts: qcom: ipq8074: add compatible fallback to mailbox
  2023-03-14  4:15 [PATCH 0/3] rework mailbox compatibles for Qualcomm IPQ SoCs Kathiravan T
  2023-03-14  4:15 ` [PATCH 1/3] dt-bindings: mailbox: qcom: use fallback for IPQ8074 SoC Kathiravan T
  2023-03-14  4:15 ` [PATCH 2/3] mailbox: qcom-apcs-ipc: drop the IPQ8074 and IPQ5332 compatible Kathiravan T
@ 2023-03-14  4:15 ` Kathiravan T
  2023-03-14  6:45   ` Krzysztof Kozlowski
  2 siblings, 1 reply; 8+ messages in thread
From: Kathiravan T @ 2023-03-14  4:15 UTC (permalink / raw)
  To: agross, andersson, konrad.dybcio, jassisinghbrar, robh+dt,
	krzysztof.kozlowski+dt, linux-arm-msm, linux-kernel, devicetree
  Cc: Krzysztof Kozlowski, Kathiravan T

From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

IPQ8074 mailbox is compatible with IPQ6018.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Kathiravan T <quic_kathirav@quicinc.com>
---
 arch/arm64/boot/dts/qcom/ipq8074.dtsi | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/arch/arm64/boot/dts/qcom/ipq8074.dtsi b/arch/arm64/boot/dts/qcom/ipq8074.dtsi
index 62d05d740646..3fa7a63db74e 100644
--- a/arch/arm64/boot/dts/qcom/ipq8074.dtsi
+++ b/arch/arm64/boot/dts/qcom/ipq8074.dtsi
@@ -687,7 +687,8 @@
 		};
 
 		apcs_glb: mailbox@b111000 {
-			compatible = "qcom,ipq8074-apcs-apps-global";
+			compatible = "qcom,ipq8074-apcs-apps-global",
+				     "qcom,ipq6018-apcs-apps-global";
 			reg = <0x0b111000 0x1000>;
 			clocks = <&a53pll>, <&xo>;
 			clock-names = "pll", "xo";
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* Re: [PATCH 3/3] arm64: dts: qcom: ipq8074: add compatible fallback to mailbox
  2023-03-14  4:15 ` [PATCH 3/3] arm64: dts: qcom: ipq8074: add compatible fallback to mailbox Kathiravan T
@ 2023-03-14  6:45   ` Krzysztof Kozlowski
  2023-03-14  7:08     ` Krzysztof Kozlowski
  0 siblings, 1 reply; 8+ messages in thread
From: Krzysztof Kozlowski @ 2023-03-14  6:45 UTC (permalink / raw)
  To: Kathiravan T, agross, andersson, konrad.dybcio, jassisinghbrar,
	robh+dt, krzysztof.kozlowski+dt, linux-arm-msm, linux-kernel,
	devicetree

On 14/03/2023 05:15, Kathiravan T wrote:
> From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> 
> IPQ8074 mailbox is compatible with IPQ6018.
> 
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> Signed-off-by: Kathiravan T <quic_kathirav@quicinc.com>
> ---
>  arch/arm64/boot/dts/qcom/ipq8074.dtsi | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)

What's this? Not even a dependency for something as it is last patch in
the series. What's the point?

Best regards,
Krzysztof


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH 1/3] dt-bindings: mailbox: qcom: use fallback for IPQ8074 SoC
  2023-03-14  4:15 ` [PATCH 1/3] dt-bindings: mailbox: qcom: use fallback for IPQ8074 SoC Kathiravan T
@ 2023-03-14  7:06   ` Krzysztof Kozlowski
  0 siblings, 0 replies; 8+ messages in thread
From: Krzysztof Kozlowski @ 2023-03-14  7:06 UTC (permalink / raw)
  To: Kathiravan T, agross, andersson, konrad.dybcio, jassisinghbrar,
	robh+dt, krzysztof.kozlowski+dt, linux-arm-msm, linux-kernel,
	devicetree

On 14/03/2023 05:15, Kathiravan T wrote:
> Since the IPQ8074 mailbox is compatible with the IPQ6018, lets create
> the fallback to ipq6018 compatible, so that we don't bloat the of_device_id
> table in the driver.
> 
> Suggested-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> Signed-off-by: Kathiravan T <quic_kathirav@quicinc.com>
> ---

Why do you send conflicting patches and take out some pieces of my
patchset into yours?

This was send already 1.5 months ago:
https://lore.kernel.org/all/20230202161856.385825-1-krzysztof.kozlowski@linaro.org/

NAK.

Best regards,
Krzysztof


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH 2/3] mailbox: qcom-apcs-ipc: drop the IPQ8074 and IPQ5332 compatible
  2023-03-14  4:15 ` [PATCH 2/3] mailbox: qcom-apcs-ipc: drop the IPQ8074 and IPQ5332 compatible Kathiravan T
@ 2023-03-14  7:07   ` Krzysztof Kozlowski
  0 siblings, 0 replies; 8+ messages in thread
From: Krzysztof Kozlowski @ 2023-03-14  7:07 UTC (permalink / raw)
  To: Kathiravan T, agross, andersson, konrad.dybcio, jassisinghbrar,
	robh+dt, krzysztof.kozlowski+dt, linux-arm-msm, linux-kernel,
	devicetree

On 14/03/2023 05:15, Kathiravan T wrote:
> Since the IPQ8074 and IPQ5332 mailbox are compatible with IPQ6018, we can
> use the compatible fallback to IPQ6018. With that, we can drop the
> IPQ8074 and IPQ5332 compatible references, as well we don't bloat the
> of_device_id table.
> 
> Suggested-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

NAK. Breaks ABI and duplicates what I already sent (which you saw since
you took my patches from my thread).

https://lore.kernel.org/all/20230202161856.385825-4-krzysztof.kozlowski@linaro.org/


Best regards,
Krzysztof


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH 3/3] arm64: dts: qcom: ipq8074: add compatible fallback to mailbox
  2023-03-14  6:45   ` Krzysztof Kozlowski
@ 2023-03-14  7:08     ` Krzysztof Kozlowski
  0 siblings, 0 replies; 8+ messages in thread
From: Krzysztof Kozlowski @ 2023-03-14  7:08 UTC (permalink / raw)
  To: Kathiravan T, agross, andersson, konrad.dybcio, jassisinghbrar,
	robh+dt, krzysztof.kozlowski+dt, linux-arm-msm, linux-kernel,
	devicetree

On 14/03/2023 07:45, Krzysztof Kozlowski wrote:
> On 14/03/2023 05:15, Kathiravan T wrote:
>> From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
>>
>> IPQ8074 mailbox is compatible with IPQ6018.
>>
>> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
>> Signed-off-by: Kathiravan T <quic_kathirav@quicinc.com>
>> ---
>>  arch/arm64/boot/dts/qcom/ipq8074.dtsi | 3 ++-
>>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> What's this? Not even a dependency for something as it is last patch in
> the series. What's the point?

To be clear - that's a NAK.

Best regards,
Krzysztof


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2023-03-14  7:08 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-14  4:15 [PATCH 0/3] rework mailbox compatibles for Qualcomm IPQ SoCs Kathiravan T
2023-03-14  4:15 ` [PATCH 1/3] dt-bindings: mailbox: qcom: use fallback for IPQ8074 SoC Kathiravan T
2023-03-14  7:06   ` Krzysztof Kozlowski
2023-03-14  4:15 ` [PATCH 2/3] mailbox: qcom-apcs-ipc: drop the IPQ8074 and IPQ5332 compatible Kathiravan T
2023-03-14  7:07   ` Krzysztof Kozlowski
2023-03-14  4:15 ` [PATCH 3/3] arm64: dts: qcom: ipq8074: add compatible fallback to mailbox Kathiravan T
2023-03-14  6:45   ` Krzysztof Kozlowski
2023-03-14  7:08     ` Krzysztof Kozlowski

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.