* [PATCH v2 0/3] Add standalone ethernet MAC entries for qcs615
@ 2024-12-24 3:07 Yijie Yang
2024-12-24 3:07 ` [PATCH v2 1/3] dt-bindings: net: qcom,ethqos: Drop fallback compatible for qcom,qcs615-ethqos Yijie Yang
` (3 more replies)
0 siblings, 4 replies; 18+ messages in thread
From: Yijie Yang @ 2024-12-24 3:07 UTC (permalink / raw)
To: Vinod Koul, Andrew Lunn, David S. Miller, Eric Dumazet,
Jakub Kicinski, Paolo Abeni, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Bhupesh Sharma, Alexandre Torgue,
Giuseppe Cavallaro, Jose Abreu, Maxime Coquelin
Cc: quic_yijiyang, Krzysztof Kozlowski, netdev, linux-arm-msm,
devicetree, linux-kernel, linux-stm32, linux-arm-kernel
Add separate EMAC entries for qcs615 since its core version is 2.3.1,
compared to sm8150's 2.1.2.
Signed-off-by: Yijie Yang <quic_yijiyang@quicinc.com>
---
Changes in v2:
- Update the subject for the first patch.
- Link to v1: https://lore.kernel.org/r/20241118-schema-v1-0-11b7c1583c0c@quicinc.com
---
Yijie Yang (3):
dt-bindings: net: qcom,ethqos: Drop fallback compatible for qcom,qcs615-ethqos
dt-bindings: net: snps,dwmac: add description for qcs615
net: stmmac: dwmac-qcom-ethqos: add support for EMAC on qcs615 platforms
Documentation/devicetree/bindings/net/qcom,ethqos.yaml | 5 +----
Documentation/devicetree/bindings/net/snps,dwmac.yaml | 2 ++
drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c | 17 +++++++++++++++++
3 files changed, 20 insertions(+), 4 deletions(-)
---
base-commit: 3664e6c4f4d07fa51834cd59d94b42b7f803e79b
change-id: 20241111-schema-7915779020f5
Best regards,
--
Yijie Yang <quic_yijiyang@quicinc.com>
^ permalink raw reply [flat|nested] 18+ messages in thread
* [PATCH v2 1/3] dt-bindings: net: qcom,ethqos: Drop fallback compatible for qcom,qcs615-ethqos
2024-12-24 3:07 [PATCH v2 0/3] Add standalone ethernet MAC entries for qcs615 Yijie Yang
@ 2024-12-24 3:07 ` Yijie Yang
2024-12-24 9:02 ` Krzysztof Kozlowski
2024-12-24 3:07 ` [PATCH v2 2/3] dt-bindings: net: snps,dwmac: add description for qcs615 Yijie Yang
` (2 subsequent siblings)
3 siblings, 1 reply; 18+ messages in thread
From: Yijie Yang @ 2024-12-24 3:07 UTC (permalink / raw)
To: Vinod Koul, Andrew Lunn, David S. Miller, Eric Dumazet,
Jakub Kicinski, Paolo Abeni, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Bhupesh Sharma, Alexandre Torgue,
Giuseppe Cavallaro, Jose Abreu, Maxime Coquelin
Cc: quic_yijiyang, Krzysztof Kozlowski, netdev, linux-arm-msm,
devicetree, linux-kernel, linux-stm32, linux-arm-kernel
The core version of EMAC on qcs615 has minor differences compared to that
on sm8150. During the bring-up routine, the loopback bit needs to be set,
and the Power-On Reset (POR) status of the registers isn't entirely
consistent with sm8150 either.
Therefore, it should be treated as a separate entity rather than a
fallback option.
Fixes: 32535b9410b8 ("dt-bindings: net: qcom,ethqos: add description for qcs615")
Signed-off-by: Yijie Yang <quic_yijiyang@quicinc.com>
---
Documentation/devicetree/bindings/net/qcom,ethqos.yaml | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/Documentation/devicetree/bindings/net/qcom,ethqos.yaml b/Documentation/devicetree/bindings/net/qcom,ethqos.yaml
index 0bcd593a7bd093d4475908d82585c36dd6b3a284..576a52742ff45d4984388bbc0fcc91fa91bab677 100644
--- a/Documentation/devicetree/bindings/net/qcom,ethqos.yaml
+++ b/Documentation/devicetree/bindings/net/qcom,ethqos.yaml
@@ -23,12 +23,9 @@ properties:
- enum:
- qcom,qcs8300-ethqos
- const: qcom,sa8775p-ethqos
- - items:
- - enum:
- - qcom,qcs615-ethqos
- - const: qcom,sm8150-ethqos
- enum:
- qcom,qcs404-ethqos
+ - qcom,qcs615-ethqos
- qcom,sa8775p-ethqos
- qcom,sc8280xp-ethqos
- qcom,sm8150-ethqos
--
2.34.1
^ permalink raw reply related [flat|nested] 18+ messages in thread
* [PATCH v2 2/3] dt-bindings: net: snps,dwmac: add description for qcs615
2024-12-24 3:07 [PATCH v2 0/3] Add standalone ethernet MAC entries for qcs615 Yijie Yang
2024-12-24 3:07 ` [PATCH v2 1/3] dt-bindings: net: qcom,ethqos: Drop fallback compatible for qcom,qcs615-ethqos Yijie Yang
@ 2024-12-24 3:07 ` Yijie Yang
2024-12-24 9:03 ` Krzysztof Kozlowski
2024-12-24 3:07 ` [PATCH v2 3/3] net: stmmac: dwmac-qcom-ethqos: add support for EMAC on qcs615 platforms Yijie Yang
2024-12-24 4:16 ` [PATCH v2 0/3] Add standalone ethernet MAC entries for qcs615 Dmitry Baryshkov
3 siblings, 1 reply; 18+ messages in thread
From: Yijie Yang @ 2024-12-24 3:07 UTC (permalink / raw)
To: Vinod Koul, Andrew Lunn, David S. Miller, Eric Dumazet,
Jakub Kicinski, Paolo Abeni, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Bhupesh Sharma, Alexandre Torgue,
Giuseppe Cavallaro, Jose Abreu, Maxime Coquelin
Cc: quic_yijiyang, Krzysztof Kozlowski, netdev, linux-arm-msm,
devicetree, linux-kernel, linux-stm32, linux-arm-kernel
Add the necessary compatible entries for qcs615 to ensure its validation.
Signed-off-by: Yijie Yang <quic_yijiyang@quicinc.com>
---
Documentation/devicetree/bindings/net/snps,dwmac.yaml | 2 ++
1 file changed, 2 insertions(+)
diff --git a/Documentation/devicetree/bindings/net/snps,dwmac.yaml b/Documentation/devicetree/bindings/net/snps,dwmac.yaml
index eb1f3ae41ab9ab4536a110f6fb3e2facb0225549..658d4479aa4864d0e193f03d65eea8b54e1490df 100644
--- a/Documentation/devicetree/bindings/net/snps,dwmac.yaml
+++ b/Documentation/devicetree/bindings/net/snps,dwmac.yaml
@@ -68,6 +68,7 @@ properties:
- loongson,ls2k-dwmac
- loongson,ls7a-dwmac
- qcom,qcs404-ethqos
+ - qcom,qcs615-ethqos
- qcom,sa8775p-ethqos
- qcom,sc8280xp-ethqos
- qcom,sm8150-ethqos
@@ -622,6 +623,7 @@ allOf:
- ingenic,x1830-mac
- ingenic,x2000-mac
- qcom,qcs404-ethqos
+ - qcom,qcs615-ethqos
- qcom,sa8775p-ethqos
- qcom,sc8280xp-ethqos
- qcom,sm8150-ethqos
--
2.34.1
^ permalink raw reply related [flat|nested] 18+ messages in thread
* [PATCH v2 3/3] net: stmmac: dwmac-qcom-ethqos: add support for EMAC on qcs615 platforms
2024-12-24 3:07 [PATCH v2 0/3] Add standalone ethernet MAC entries for qcs615 Yijie Yang
2024-12-24 3:07 ` [PATCH v2 1/3] dt-bindings: net: qcom,ethqos: Drop fallback compatible for qcom,qcs615-ethqos Yijie Yang
2024-12-24 3:07 ` [PATCH v2 2/3] dt-bindings: net: snps,dwmac: add description for qcs615 Yijie Yang
@ 2024-12-24 3:07 ` Yijie Yang
2024-12-24 4:18 ` Dmitry Baryshkov
2024-12-24 4:16 ` [PATCH v2 0/3] Add standalone ethernet MAC entries for qcs615 Dmitry Baryshkov
3 siblings, 1 reply; 18+ messages in thread
From: Yijie Yang @ 2024-12-24 3:07 UTC (permalink / raw)
To: Vinod Koul, Andrew Lunn, David S. Miller, Eric Dumazet,
Jakub Kicinski, Paolo Abeni, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Bhupesh Sharma, Alexandre Torgue,
Giuseppe Cavallaro, Jose Abreu, Maxime Coquelin
Cc: quic_yijiyang, Krzysztof Kozlowski, netdev, linux-arm-msm,
devicetree, linux-kernel, linux-stm32, linux-arm-kernel
qcs615 uses EMAC version 2.3.1, add the relevant defines and add the new
compatible.
Signed-off-by: Yijie Yang <quic_yijiyang@quicinc.com>
---
drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c b/drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c
index 901a3c1959fa57efb078da795ad4f92a8b6f71e1..8c76beaee48821eb2853f4e3f8bfd37db8cadf78 100644
--- a/drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c
+++ b/drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c
@@ -249,6 +249,22 @@ static const struct ethqos_emac_driver_data emac_v2_1_0_data = {
.has_emac_ge_3 = false,
};
+static const struct ethqos_emac_por emac_v2_3_1_por[] = {
+ { .offset = RGMII_IO_MACRO_CONFIG, .value = 0x00C01343 },
+ { .offset = SDCC_HC_REG_DLL_CONFIG, .value = 0x2004642C },
+ { .offset = SDCC_HC_REG_DDR_CONFIG, .value = 0x00000000 },
+ { .offset = SDCC_HC_REG_DLL_CONFIG2, .value = 0x00200000 },
+ { .offset = SDCC_USR_CTL, .value = 0x00010800 },
+ { .offset = RGMII_IO_MACRO_CONFIG2, .value = 0x00002060 },
+};
+
+static const struct ethqos_emac_driver_data emac_v2_3_1_data = {
+ .por = emac_v2_3_1_por,
+ .num_por = ARRAY_SIZE(emac_v2_3_1_por),
+ .rgmii_config_loopback_en = true,
+ .has_emac_ge_3 = false,
+};
+
static const struct ethqos_emac_por emac_v3_0_0_por[] = {
{ .offset = RGMII_IO_MACRO_CONFIG, .value = 0x40c01343 },
{ .offset = SDCC_HC_REG_DLL_CONFIG, .value = 0x2004642c },
@@ -898,6 +914,7 @@ static int qcom_ethqos_probe(struct platform_device *pdev)
static const struct of_device_id qcom_ethqos_match[] = {
{ .compatible = "qcom,qcs404-ethqos", .data = &emac_v2_3_0_data},
+ { .compatible = "qcom,qcs615-ethqos", .data = &emac_v2_3_1_data},
{ .compatible = "qcom,sa8775p-ethqos", .data = &emac_v4_0_0_data},
{ .compatible = "qcom,sc8280xp-ethqos", .data = &emac_v3_0_0_data},
{ .compatible = "qcom,sm8150-ethqos", .data = &emac_v2_1_0_data},
--
2.34.1
^ permalink raw reply related [flat|nested] 18+ messages in thread
* Re: [PATCH v2 0/3] Add standalone ethernet MAC entries for qcs615
2024-12-24 3:07 [PATCH v2 0/3] Add standalone ethernet MAC entries for qcs615 Yijie Yang
` (2 preceding siblings ...)
2024-12-24 3:07 ` [PATCH v2 3/3] net: stmmac: dwmac-qcom-ethqos: add support for EMAC on qcs615 platforms Yijie Yang
@ 2024-12-24 4:16 ` Dmitry Baryshkov
2024-12-24 5:47 ` Yijie Yang
3 siblings, 1 reply; 18+ messages in thread
From: Dmitry Baryshkov @ 2024-12-24 4:16 UTC (permalink / raw)
To: Yijie Yang
Cc: Vinod Koul, Andrew Lunn, David S. Miller, Eric Dumazet,
Jakub Kicinski, Paolo Abeni, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Bhupesh Sharma, Alexandre Torgue,
Giuseppe Cavallaro, Jose Abreu, Maxime Coquelin,
Krzysztof Kozlowski, netdev, linux-arm-msm, devicetree,
linux-kernel, linux-stm32, linux-arm-kernel
On Tue, Dec 24, 2024 at 11:07:00AM +0800, Yijie Yang wrote:
> Add separate EMAC entries for qcs615 since its core version is 2.3.1,
> compared to sm8150's 2.1.2.
>
> Signed-off-by: Yijie Yang <quic_yijiyang@quicinc.com>
> ---
> Changes in v2:
> - Update the subject for the first patch.
> - Link to v1: https://lore.kernel.org/r/20241118-schema-v1-0-11b7c1583c0c@quicinc.com
>
> ---
> Yijie Yang (3):
> dt-bindings: net: qcom,ethqos: Drop fallback compatible for qcom,qcs615-ethqos
> dt-bindings: net: snps,dwmac: add description for qcs615
> net: stmmac: dwmac-qcom-ethqos: add support for EMAC on qcs615 platforms
>
> Documentation/devicetree/bindings/net/qcom,ethqos.yaml | 5 +----
> Documentation/devicetree/bindings/net/snps,dwmac.yaml | 2 ++
> drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c | 17 +++++++++++++++++
> 3 files changed, 20 insertions(+), 4 deletions(-)
> ---
> base-commit: 3664e6c4f4d07fa51834cd59d94b42b7f803e79b
Which commit is it? I can't find it in linux-next
> change-id: 20241111-schema-7915779020f5
>
> Best regards,
> --
> Yijie Yang <quic_yijiyang@quicinc.com>
>
--
With best wishes
Dmitry
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [PATCH v2 3/3] net: stmmac: dwmac-qcom-ethqos: add support for EMAC on qcs615 platforms
2024-12-24 3:07 ` [PATCH v2 3/3] net: stmmac: dwmac-qcom-ethqos: add support for EMAC on qcs615 platforms Yijie Yang
@ 2024-12-24 4:18 ` Dmitry Baryshkov
2024-12-24 4:36 ` Yijie Yang
0 siblings, 1 reply; 18+ messages in thread
From: Dmitry Baryshkov @ 2024-12-24 4:18 UTC (permalink / raw)
To: Yijie Yang
Cc: Vinod Koul, Andrew Lunn, David S. Miller, Eric Dumazet,
Jakub Kicinski, Paolo Abeni, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Bhupesh Sharma, Alexandre Torgue,
Giuseppe Cavallaro, Jose Abreu, Maxime Coquelin,
Krzysztof Kozlowski, netdev, linux-arm-msm, devicetree,
linux-kernel, linux-stm32, linux-arm-kernel
On Tue, Dec 24, 2024 at 11:07:03AM +0800, Yijie Yang wrote:
> qcs615 uses EMAC version 2.3.1, add the relevant defines and add the new
> compatible.
>
> Signed-off-by: Yijie Yang <quic_yijiyang@quicinc.com>
> ---
> drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c | 17 +++++++++++++++++
> 1 file changed, 17 insertions(+)
>
> diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c b/drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c
> index 901a3c1959fa57efb078da795ad4f92a8b6f71e1..8c76beaee48821eb2853f4e3f8bfd37db8cadf78 100644
> --- a/drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c
> +++ b/drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c
> @@ -249,6 +249,22 @@ static const struct ethqos_emac_driver_data emac_v2_1_0_data = {
> .has_emac_ge_3 = false,
> };
>
> +static const struct ethqos_emac_por emac_v2_3_1_por[] = {
> + { .offset = RGMII_IO_MACRO_CONFIG, .value = 0x00C01343 },
> + { .offset = SDCC_HC_REG_DLL_CONFIG, .value = 0x2004642C },
lowercase the hex, please.
> + { .offset = SDCC_HC_REG_DDR_CONFIG, .value = 0x00000000 },
> + { .offset = SDCC_HC_REG_DLL_CONFIG2, .value = 0x00200000 },
> + { .offset = SDCC_USR_CTL, .value = 0x00010800 },
> + { .offset = RGMII_IO_MACRO_CONFIG2, .value = 0x00002060 },
> +};
> +
> +static const struct ethqos_emac_driver_data emac_v2_3_1_data = {
> + .por = emac_v2_3_1_por,
> + .num_por = ARRAY_SIZE(emac_v2_3_1_por),
> + .rgmii_config_loopback_en = true,
> + .has_emac_ge_3 = false,
> +};
Modulo emac_v2_3_1_por vs emac_v2_3_0_por, this is the same as
emac_v2_3_0_data. Which means that bindings for qcs615-ethqos should be
corrected to use qcom,qcs404-ethqos as as fallback entry, making this
patch unused. Please correct the bindings instead.
> +
> static const struct ethqos_emac_por emac_v3_0_0_por[] = {
> { .offset = RGMII_IO_MACRO_CONFIG, .value = 0x40c01343 },
> { .offset = SDCC_HC_REG_DLL_CONFIG, .value = 0x2004642c },
> @@ -898,6 +914,7 @@ static int qcom_ethqos_probe(struct platform_device *pdev)
>
> static const struct of_device_id qcom_ethqos_match[] = {
> { .compatible = "qcom,qcs404-ethqos", .data = &emac_v2_3_0_data},
> + { .compatible = "qcom,qcs615-ethqos", .data = &emac_v2_3_1_data},
> { .compatible = "qcom,sa8775p-ethqos", .data = &emac_v4_0_0_data},
> { .compatible = "qcom,sc8280xp-ethqos", .data = &emac_v3_0_0_data},
> { .compatible = "qcom,sm8150-ethqos", .data = &emac_v2_1_0_data},
>
> --
> 2.34.1
>
--
With best wishes
Dmitry
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [PATCH v2 3/3] net: stmmac: dwmac-qcom-ethqos: add support for EMAC on qcs615 platforms
2024-12-24 4:18 ` Dmitry Baryshkov
@ 2024-12-24 4:36 ` Yijie Yang
2024-12-24 5:05 ` Dmitry Baryshkov
0 siblings, 1 reply; 18+ messages in thread
From: Yijie Yang @ 2024-12-24 4:36 UTC (permalink / raw)
To: Dmitry Baryshkov
Cc: Vinod Koul, Andrew Lunn, David S. Miller, Eric Dumazet,
Jakub Kicinski, Paolo Abeni, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Bhupesh Sharma, Alexandre Torgue,
Giuseppe Cavallaro, Jose Abreu, Maxime Coquelin,
Krzysztof Kozlowski, netdev, linux-arm-msm, devicetree,
linux-kernel, linux-stm32, linux-arm-kernel
On 2024-12-24 12:18, Dmitry Baryshkov wrote:
> On Tue, Dec 24, 2024 at 11:07:03AM +0800, Yijie Yang wrote:
>> qcs615 uses EMAC version 2.3.1, add the relevant defines and add the new
>> compatible.
>>
>> Signed-off-by: Yijie Yang <quic_yijiyang@quicinc.com>
>> ---
>> drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c | 17 +++++++++++++++++
>> 1 file changed, 17 insertions(+)
>>
>> diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c b/drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c
>> index 901a3c1959fa57efb078da795ad4f92a8b6f71e1..8c76beaee48821eb2853f4e3f8bfd37db8cadf78 100644
>> --- a/drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c
>> +++ b/drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c
>> @@ -249,6 +249,22 @@ static const struct ethqos_emac_driver_data emac_v2_1_0_data = {
>> .has_emac_ge_3 = false,
>> };
>>
>> +static const struct ethqos_emac_por emac_v2_3_1_por[] = {
>> + { .offset = RGMII_IO_MACRO_CONFIG, .value = 0x00C01343 },
>> + { .offset = SDCC_HC_REG_DLL_CONFIG, .value = 0x2004642C },
>
> lowercase the hex, please.
I will take care of it.
>
>> + { .offset = SDCC_HC_REG_DDR_CONFIG, .value = 0x00000000 },
>> + { .offset = SDCC_HC_REG_DLL_CONFIG2, .value = 0x00200000 },
>> + { .offset = SDCC_USR_CTL, .value = 0x00010800 },
>> + { .offset = RGMII_IO_MACRO_CONFIG2, .value = 0x00002060 },
>> +};
>> +
>> +static const struct ethqos_emac_driver_data emac_v2_3_1_data = {
>> + .por = emac_v2_3_1_por,
>> + .num_por = ARRAY_SIZE(emac_v2_3_1_por),
>> + .rgmii_config_loopback_en = true,
>> + .has_emac_ge_3 = false,
>> +};
>
> Modulo emac_v2_3_1_por vs emac_v2_3_0_por, this is the same as
> emac_v2_3_0_data. Which means that bindings for qcs615-ethqos should be
> corrected to use qcom,qcs404-ethqos as as fallback entry, making this
> patch unused. Please correct the bindings instead.
Although they currently share the same data, they are actually two
different versions. Their differences are not apparent now but will
become evident once new features are uploaded. If I revert to
qcom,qcs404-ethqos now, it will be challenging to distinguish between
them in the future.
>
>> +
>> static const struct ethqos_emac_por emac_v3_0_0_por[] = {
>> { .offset = RGMII_IO_MACRO_CONFIG, .value = 0x40c01343 },
>> { .offset = SDCC_HC_REG_DLL_CONFIG, .value = 0x2004642c },
>> @@ -898,6 +914,7 @@ static int qcom_ethqos_probe(struct platform_device *pdev)
>>
>> static const struct of_device_id qcom_ethqos_match[] = {
>> { .compatible = "qcom,qcs404-ethqos", .data = &emac_v2_3_0_data},
>> + { .compatible = "qcom,qcs615-ethqos", .data = &emac_v2_3_1_data},
>> { .compatible = "qcom,sa8775p-ethqos", .data = &emac_v4_0_0_data},
>> { .compatible = "qcom,sc8280xp-ethqos", .data = &emac_v3_0_0_data},
>> { .compatible = "qcom,sm8150-ethqos", .data = &emac_v2_1_0_data},
>>
>> --
>> 2.34.1
>>
>
--
Best Regards,
Yijie
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [PATCH v2 3/3] net: stmmac: dwmac-qcom-ethqos: add support for EMAC on qcs615 platforms
2024-12-24 4:36 ` Yijie Yang
@ 2024-12-24 5:05 ` Dmitry Baryshkov
2024-12-25 8:47 ` Yijie Yang
0 siblings, 1 reply; 18+ messages in thread
From: Dmitry Baryshkov @ 2024-12-24 5:05 UTC (permalink / raw)
To: Yijie Yang
Cc: Vinod Koul, Andrew Lunn, David S. Miller, Eric Dumazet,
Jakub Kicinski, Paolo Abeni, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Bhupesh Sharma, Alexandre Torgue,
Giuseppe Cavallaro, Jose Abreu, Maxime Coquelin,
Krzysztof Kozlowski, netdev, linux-arm-msm, devicetree,
linux-kernel, linux-stm32, linux-arm-kernel
On Tue, Dec 24, 2024 at 12:36:29PM +0800, Yijie Yang wrote:
>
>
> On 2024-12-24 12:18, Dmitry Baryshkov wrote:
> > On Tue, Dec 24, 2024 at 11:07:03AM +0800, Yijie Yang wrote:
> > > qcs615 uses EMAC version 2.3.1, add the relevant defines and add the new
> > > compatible.
> > >
> > > Signed-off-by: Yijie Yang <quic_yijiyang@quicinc.com>
> > > ---
> > > drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c | 17 +++++++++++++++++
> > > 1 file changed, 17 insertions(+)
> > >
> > > diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c b/drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c
> > > index 901a3c1959fa57efb078da795ad4f92a8b6f71e1..8c76beaee48821eb2853f4e3f8bfd37db8cadf78 100644
> > > --- a/drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c
> > > +++ b/drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c
> > > @@ -249,6 +249,22 @@ static const struct ethqos_emac_driver_data emac_v2_1_0_data = {
> > > .has_emac_ge_3 = false,
> > > };
> > > +static const struct ethqos_emac_por emac_v2_3_1_por[] = {
> > > + { .offset = RGMII_IO_MACRO_CONFIG, .value = 0x00C01343 },
> > > + { .offset = SDCC_HC_REG_DLL_CONFIG, .value = 0x2004642C },
> >
> > lowercase the hex, please.
>
> I will take care of it.
>
> >
> > > + { .offset = SDCC_HC_REG_DDR_CONFIG, .value = 0x00000000 },
> > > + { .offset = SDCC_HC_REG_DLL_CONFIG2, .value = 0x00200000 },
> > > + { .offset = SDCC_USR_CTL, .value = 0x00010800 },
> > > + { .offset = RGMII_IO_MACRO_CONFIG2, .value = 0x00002060 },
> > > +};
> > > +
> > > +static const struct ethqos_emac_driver_data emac_v2_3_1_data = {
> > > + .por = emac_v2_3_1_por,
> > > + .num_por = ARRAY_SIZE(emac_v2_3_1_por),
> > > + .rgmii_config_loopback_en = true,
> > > + .has_emac_ge_3 = false,
> > > +};
> >
> > Modulo emac_v2_3_1_por vs emac_v2_3_0_por, this is the same as
> > emac_v2_3_0_data. Which means that bindings for qcs615-ethqos should be
> > corrected to use qcom,qcs404-ethqos as as fallback entry, making this
> > patch unused. Please correct the bindings instead.
>
> Although they currently share the same data, they are actually two different
> versions. Their differences are not apparent now but will become evident
> once new features are uploaded. If I revert to qcom,qcs404-ethqos now, it
> will be challenging to distinguish between them in the future.
Which features? Moreover, note, the use of the fallback doesn't preclude
you from addign a new compat entry later on. By having a fallback you
simply declare that the device A is also compatible with the device B.
>
> >
> > > +
> > > static const struct ethqos_emac_por emac_v3_0_0_por[] = {
> > > { .offset = RGMII_IO_MACRO_CONFIG, .value = 0x40c01343 },
> > > { .offset = SDCC_HC_REG_DLL_CONFIG, .value = 0x2004642c },
> > > @@ -898,6 +914,7 @@ static int qcom_ethqos_probe(struct platform_device *pdev)
> > > static const struct of_device_id qcom_ethqos_match[] = {
> > > { .compatible = "qcom,qcs404-ethqos", .data = &emac_v2_3_0_data},
> > > + { .compatible = "qcom,qcs615-ethqos", .data = &emac_v2_3_1_data},
> > > { .compatible = "qcom,sa8775p-ethqos", .data = &emac_v4_0_0_data},
> > > { .compatible = "qcom,sc8280xp-ethqos", .data = &emac_v3_0_0_data},
> > > { .compatible = "qcom,sm8150-ethqos", .data = &emac_v2_1_0_data},
> > >
> > > --
> > > 2.34.1
> > >
> >
>
> --
> Best Regards,
> Yijie
>
--
With best wishes
Dmitry
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [PATCH v2 0/3] Add standalone ethernet MAC entries for qcs615
2024-12-24 4:16 ` [PATCH v2 0/3] Add standalone ethernet MAC entries for qcs615 Dmitry Baryshkov
@ 2024-12-24 5:47 ` Yijie Yang
2024-12-24 5:53 ` Dmitry Baryshkov
0 siblings, 1 reply; 18+ messages in thread
From: Yijie Yang @ 2024-12-24 5:47 UTC (permalink / raw)
To: Dmitry Baryshkov
Cc: Vinod Koul, Andrew Lunn, David S. Miller, Eric Dumazet,
Jakub Kicinski, Paolo Abeni, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Bhupesh Sharma, Alexandre Torgue,
Giuseppe Cavallaro, Jose Abreu, Maxime Coquelin,
Krzysztof Kozlowski, netdev, linux-arm-msm, devicetree,
linux-kernel, linux-stm32, linux-arm-kernel
On 2024-12-24 12:16, Dmitry Baryshkov wrote:
> On Tue, Dec 24, 2024 at 11:07:00AM +0800, Yijie Yang wrote:
>> Add separate EMAC entries for qcs615 since its core version is 2.3.1,
>> compared to sm8150's 2.1.2.
>>
>> Signed-off-by: Yijie Yang <quic_yijiyang@quicinc.com>
>> ---
>> Changes in v2:
>> - Update the subject for the first patch.
>> - Link to v1: https://lore.kernel.org/r/20241118-schema-v1-0-11b7c1583c0c@quicinc.com
>>
>> ---
>> Yijie Yang (3):
>> dt-bindings: net: qcom,ethqos: Drop fallback compatible for qcom,qcs615-ethqos
>> dt-bindings: net: snps,dwmac: add description for qcs615
>> net: stmmac: dwmac-qcom-ethqos: add support for EMAC on qcs615 platforms
>>
>> Documentation/devicetree/bindings/net/qcom,ethqos.yaml | 5 +----
>> Documentation/devicetree/bindings/net/snps,dwmac.yaml | 2 ++
>> drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c | 17 +++++++++++++++++
>> 3 files changed, 20 insertions(+), 4 deletions(-)
>> ---
>> base-commit: 3664e6c4f4d07fa51834cd59d94b42b7f803e79b
>
> Which commit is it? I can't find it in linux-next
It's a tag next-20241108, titled 'Add linux-next specific files for
20241108'.
>
>> change-id: 20241111-schema-7915779020f5
>>
>> Best regards,
>> --
>> Yijie Yang <quic_yijiyang@quicinc.com>
>>
>
--
Best Regards,
Yijie
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [PATCH v2 0/3] Add standalone ethernet MAC entries for qcs615
2024-12-24 5:47 ` Yijie Yang
@ 2024-12-24 5:53 ` Dmitry Baryshkov
2024-12-24 6:02 ` Yijie Yang
0 siblings, 1 reply; 18+ messages in thread
From: Dmitry Baryshkov @ 2024-12-24 5:53 UTC (permalink / raw)
To: Yijie Yang
Cc: Vinod Koul, Andrew Lunn, David S. Miller, Eric Dumazet,
Jakub Kicinski, Paolo Abeni, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Bhupesh Sharma, Alexandre Torgue,
Giuseppe Cavallaro, Jose Abreu, Maxime Coquelin,
Krzysztof Kozlowski, netdev, linux-arm-msm, devicetree,
linux-kernel, linux-stm32, linux-arm-kernel
On Tue, 24 Dec 2024 at 07:47, Yijie Yang <quic_yijiyang@quicinc.com> wrote:
>
>
>
> On 2024-12-24 12:16, Dmitry Baryshkov wrote:
> > On Tue, Dec 24, 2024 at 11:07:00AM +0800, Yijie Yang wrote:
> >> Add separate EMAC entries for qcs615 since its core version is 2.3.1,
> >> compared to sm8150's 2.1.2.
> >>
> >> Signed-off-by: Yijie Yang <quic_yijiyang@quicinc.com>
> >> ---
> >> Changes in v2:
> >> - Update the subject for the first patch.
> >> - Link to v1: https://lore.kernel.org/r/20241118-schema-v1-0-11b7c1583c0c@quicinc.com
> >>
> >> ---
> >> Yijie Yang (3):
> >> dt-bindings: net: qcom,ethqos: Drop fallback compatible for qcom,qcs615-ethqos
> >> dt-bindings: net: snps,dwmac: add description for qcs615
> >> net: stmmac: dwmac-qcom-ethqos: add support for EMAC on qcs615 platforms
> >>
> >> Documentation/devicetree/bindings/net/qcom,ethqos.yaml | 5 +----
> >> Documentation/devicetree/bindings/net/snps,dwmac.yaml | 2 ++
> >> drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c | 17 +++++++++++++++++
> >> 3 files changed, 20 insertions(+), 4 deletions(-)
> >> ---
> >> base-commit: 3664e6c4f4d07fa51834cd59d94b42b7f803e79b
> >
> > Which commit is it? I can't find it in linux-next
>
> It's a tag next-20241108, titled 'Add linux-next specific files for
> 20241108'.
Nearly two months old? okay...
--
With best wishes
Dmitry
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [PATCH v2 0/3] Add standalone ethernet MAC entries for qcs615
2024-12-24 5:53 ` Dmitry Baryshkov
@ 2024-12-24 6:02 ` Yijie Yang
0 siblings, 0 replies; 18+ messages in thread
From: Yijie Yang @ 2024-12-24 6:02 UTC (permalink / raw)
To: Dmitry Baryshkov
Cc: Vinod Koul, Andrew Lunn, David S. Miller, Eric Dumazet,
Jakub Kicinski, Paolo Abeni, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Bhupesh Sharma, Alexandre Torgue,
Giuseppe Cavallaro, Jose Abreu, Maxime Coquelin,
Krzysztof Kozlowski, netdev, linux-arm-msm, devicetree,
linux-kernel, linux-stm32, linux-arm-kernel
On 2024-12-24 13:53, Dmitry Baryshkov wrote:
> On Tue, 24 Dec 2024 at 07:47, Yijie Yang <quic_yijiyang@quicinc.com> wrote:
>>
>>
>>
>> On 2024-12-24 12:16, Dmitry Baryshkov wrote:
>>> On Tue, Dec 24, 2024 at 11:07:00AM +0800, Yijie Yang wrote:
>>>> Add separate EMAC entries for qcs615 since its core version is 2.3.1,
>>>> compared to sm8150's 2.1.2.
>>>>
>>>> Signed-off-by: Yijie Yang <quic_yijiyang@quicinc.com>
>>>> ---
>>>> Changes in v2:
>>>> - Update the subject for the first patch.
>>>> - Link to v1: https://lore.kernel.org/r/20241118-schema-v1-0-11b7c1583c0c@quicinc.com
>>>>
>>>> ---
>>>> Yijie Yang (3):
>>>> dt-bindings: net: qcom,ethqos: Drop fallback compatible for qcom,qcs615-ethqos
>>>> dt-bindings: net: snps,dwmac: add description for qcs615
>>>> net: stmmac: dwmac-qcom-ethqos: add support for EMAC on qcs615 platforms
>>>>
>>>> Documentation/devicetree/bindings/net/qcom,ethqos.yaml | 5 +----
>>>> Documentation/devicetree/bindings/net/snps,dwmac.yaml | 2 ++
>>>> drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c | 17 +++++++++++++++++
>>>> 3 files changed, 20 insertions(+), 4 deletions(-)
>>>> ---
>>>> base-commit: 3664e6c4f4d07fa51834cd59d94b42b7f803e79b
>>>
>>> Which commit is it? I can't find it in linux-next
>>
>> It's a tag next-20241108, titled 'Add linux-next specific files for
>> 20241108'.
>
> Nearly two months old? okay...
I will provide an update in the next version.
>
--
Best Regards,
Yijie
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [PATCH v2 1/3] dt-bindings: net: qcom,ethqos: Drop fallback compatible for qcom,qcs615-ethqos
2024-12-24 3:07 ` [PATCH v2 1/3] dt-bindings: net: qcom,ethqos: Drop fallback compatible for qcom,qcs615-ethqos Yijie Yang
@ 2024-12-24 9:02 ` Krzysztof Kozlowski
2024-12-25 8:58 ` Yijie Yang
0 siblings, 1 reply; 18+ messages in thread
From: Krzysztof Kozlowski @ 2024-12-24 9:02 UTC (permalink / raw)
To: Yijie Yang, Vinod Koul, Andrew Lunn, David S. Miller,
Eric Dumazet, Jakub Kicinski, Paolo Abeni, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Bhupesh Sharma,
Alexandre Torgue, Giuseppe Cavallaro, Jose Abreu, Maxime Coquelin
Cc: netdev, linux-arm-msm, devicetree, linux-kernel, linux-stm32,
linux-arm-kernel
On 24/12/2024 04:07, Yijie Yang wrote:
> The core version of EMAC on qcs615 has minor differences compared to that
> on sm8150. During the bring-up routine, the loopback bit needs to be set,
> and the Power-On Reset (POR) status of the registers isn't entirely
> consistent with sm8150 either.
> Therefore, it should be treated as a separate entity rather than a
> fallback option.
... and explanation of ABI impact? You were asked about this last time,
so this is supposed to end up here.
>
> Fixes: 32535b9410b8 ("dt-bindings: net: qcom,ethqos: add description for qcs615")
> Signed-off-by: Yijie Yang <quic_yijiyang@quicinc.com>
> ---
> Documentation/devicetree/bindings/net/qcom,ethqos.yaml | 5 +----
> 1 file changed, 1 insertion(+), 4 deletions(-)
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [PATCH v2 2/3] dt-bindings: net: snps,dwmac: add description for qcs615
2024-12-24 3:07 ` [PATCH v2 2/3] dt-bindings: net: snps,dwmac: add description for qcs615 Yijie Yang
@ 2024-12-24 9:03 ` Krzysztof Kozlowski
0 siblings, 0 replies; 18+ messages in thread
From: Krzysztof Kozlowski @ 2024-12-24 9:03 UTC (permalink / raw)
To: Yijie Yang, Vinod Koul, Andrew Lunn, David S. Miller,
Eric Dumazet, Jakub Kicinski, Paolo Abeni, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Bhupesh Sharma,
Alexandre Torgue, Giuseppe Cavallaro, Jose Abreu, Maxime Coquelin
Cc: netdev, linux-arm-msm, devicetree, linux-kernel, linux-stm32,
linux-arm-kernel
On 24/12/2024 04:07, Yijie Yang wrote:
> Add the necessary compatible entries for qcs615 to ensure its validation.
>
> Signed-off-by: Yijie Yang <quic_yijiyang@quicinc.com>
> ---
> Documentation/devicetree/bindings/net/snps,dwmac.yaml | 2 ++
> 1 file changed, 2 insertions(+)
>
This should be squashed with previous, otherwise patchset is not bisectable.
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [PATCH v2 3/3] net: stmmac: dwmac-qcom-ethqos: add support for EMAC on qcs615 platforms
2024-12-24 5:05 ` Dmitry Baryshkov
@ 2024-12-25 8:47 ` Yijie Yang
0 siblings, 0 replies; 18+ messages in thread
From: Yijie Yang @ 2024-12-25 8:47 UTC (permalink / raw)
To: Dmitry Baryshkov
Cc: Vinod Koul, Andrew Lunn, David S. Miller, Eric Dumazet,
Jakub Kicinski, Paolo Abeni, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Bhupesh Sharma, Alexandre Torgue,
Giuseppe Cavallaro, Jose Abreu, Maxime Coquelin,
Krzysztof Kozlowski, netdev, linux-arm-msm, devicetree,
linux-kernel, linux-stm32, linux-arm-kernel
On 2024-12-24 13:05, Dmitry Baryshkov wrote:
> On Tue, Dec 24, 2024 at 12:36:29PM +0800, Yijie Yang wrote:
>>
>>
>> On 2024-12-24 12:18, Dmitry Baryshkov wrote:
>>> On Tue, Dec 24, 2024 at 11:07:03AM +0800, Yijie Yang wrote:
>>>> qcs615 uses EMAC version 2.3.1, add the relevant defines and add the new
>>>> compatible.
>>>>
>>>> Signed-off-by: Yijie Yang <quic_yijiyang@quicinc.com>
>>>> ---
>>>> drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c | 17 +++++++++++++++++
>>>> 1 file changed, 17 insertions(+)
>>>>
>>>> diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c b/drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c
>>>> index 901a3c1959fa57efb078da795ad4f92a8b6f71e1..8c76beaee48821eb2853f4e3f8bfd37db8cadf78 100644
>>>> --- a/drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c
>>>> +++ b/drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c
>>>> @@ -249,6 +249,22 @@ static const struct ethqos_emac_driver_data emac_v2_1_0_data = {
>>>> .has_emac_ge_3 = false,
>>>> };
>>>> +static const struct ethqos_emac_por emac_v2_3_1_por[] = {
>>>> + { .offset = RGMII_IO_MACRO_CONFIG, .value = 0x00C01343 },
>>>> + { .offset = SDCC_HC_REG_DLL_CONFIG, .value = 0x2004642C },
>>>
>>> lowercase the hex, please.
>>
>> I will take care of it.
>>
>>>
>>>> + { .offset = SDCC_HC_REG_DDR_CONFIG, .value = 0x00000000 },
>>>> + { .offset = SDCC_HC_REG_DLL_CONFIG2, .value = 0x00200000 },
>>>> + { .offset = SDCC_USR_CTL, .value = 0x00010800 },
>>>> + { .offset = RGMII_IO_MACRO_CONFIG2, .value = 0x00002060 },
>>>> +};
>>>> +
>>>> +static const struct ethqos_emac_driver_data emac_v2_3_1_data = {
>>>> + .por = emac_v2_3_1_por,
>>>> + .num_por = ARRAY_SIZE(emac_v2_3_1_por),
>>>> + .rgmii_config_loopback_en = true,
>>>> + .has_emac_ge_3 = false,
>>>> +};
>>>
>>> Modulo emac_v2_3_1_por vs emac_v2_3_0_por, this is the same as
>>> emac_v2_3_0_data. Which means that bindings for qcs615-ethqos should be
>>> corrected to use qcom,qcs404-ethqos as as fallback entry, making this
>>> patch unused. Please correct the bindings instead.
>>
>> Although they currently share the same data, they are actually two different
>> versions. Their differences are not apparent now but will become evident
>> once new features are uploaded. If I revert to qcom,qcs404-ethqos now, it
>> will be challenging to distinguish between them in the future.
>
> Which features? Moreover, note, the use of the fallback doesn't preclude
> you from addign a new compat entry later on. By having a fallback you
> simply declare that the device A is also compatible with the device B.
>
Yes, you're right. I confirmed with the hardware team that the EMAC of
qcs615-ride is the same as that of qcs404. I will fall back the
compatible of qcs615 to the latter and drop the unnecessary patches.
>>
>>>
>>>> +
>>>> static const struct ethqos_emac_por emac_v3_0_0_por[] = {
>>>> { .offset = RGMII_IO_MACRO_CONFIG, .value = 0x40c01343 },
>>>> { .offset = SDCC_HC_REG_DLL_CONFIG, .value = 0x2004642c },
>>>> @@ -898,6 +914,7 @@ static int qcom_ethqos_probe(struct platform_device *pdev)
>>>> static const struct of_device_id qcom_ethqos_match[] = {
>>>> { .compatible = "qcom,qcs404-ethqos", .data = &emac_v2_3_0_data},
>>>> + { .compatible = "qcom,qcs615-ethqos", .data = &emac_v2_3_1_data},
>>>> { .compatible = "qcom,sa8775p-ethqos", .data = &emac_v4_0_0_data},
>>>> { .compatible = "qcom,sc8280xp-ethqos", .data = &emac_v3_0_0_data},
>>>> { .compatible = "qcom,sm8150-ethqos", .data = &emac_v2_1_0_data},
>>>>
>>>> --
>>>> 2.34.1
>>>>
>>>
>>
>> --
>> Best Regards,
>> Yijie
>>
>
--
Best Regards,
Yijie
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [PATCH v2 1/3] dt-bindings: net: qcom,ethqos: Drop fallback compatible for qcom,qcs615-ethqos
2024-12-24 9:02 ` Krzysztof Kozlowski
@ 2024-12-25 8:58 ` Yijie Yang
2024-12-25 16:17 ` Andrew Lunn
2024-12-27 7:14 ` Krzysztof Kozlowski
0 siblings, 2 replies; 18+ messages in thread
From: Yijie Yang @ 2024-12-25 8:58 UTC (permalink / raw)
To: Krzysztof Kozlowski, Vinod Koul, Andrew Lunn, David S. Miller,
Eric Dumazet, Jakub Kicinski, Paolo Abeni, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Bhupesh Sharma,
Alexandre Torgue, Giuseppe Cavallaro, Jose Abreu, Maxime Coquelin
Cc: netdev, linux-arm-msm, devicetree, linux-kernel, linux-stm32,
linux-arm-kernel
On 2024-12-24 17:02, Krzysztof Kozlowski wrote:
> On 24/12/2024 04:07, Yijie Yang wrote:
>> The core version of EMAC on qcs615 has minor differences compared to that
>> on sm8150. During the bring-up routine, the loopback bit needs to be set,
>> and the Power-On Reset (POR) status of the registers isn't entirely
>> consistent with sm8150 either.
>> Therefore, it should be treated as a separate entity rather than a
>> fallback option.
>
> ... and explanation of ABI impact? You were asked about this last time,
> so this is supposed to end up here.
I actually replied to this query last time, but maybe it wasn't clear.
Firstly, no one is using Ethernet on this platform yet. Secondly, the
previous fallback to sm8150 is incorrect and causes packet loss.
Instead, it should fall back to qcs404.
>
>>
>> Fixes: 32535b9410b8 ("dt-bindings: net: qcom,ethqos: add description for qcs615")
>> Signed-off-by: Yijie Yang <quic_yijiyang@quicinc.com>
>> ---
>> Documentation/devicetree/bindings/net/qcom,ethqos.yaml | 5 +----
>> 1 file changed, 1 insertion(+), 4 deletions(-)
> Best regards,
> Krzysztof
--
Best Regards,
Yijie
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [PATCH v2 1/3] dt-bindings: net: qcom,ethqos: Drop fallback compatible for qcom,qcs615-ethqos
2024-12-25 8:58 ` Yijie Yang
@ 2024-12-25 16:17 ` Andrew Lunn
2024-12-26 1:13 ` Yijie Yang
2024-12-27 7:14 ` Krzysztof Kozlowski
1 sibling, 1 reply; 18+ messages in thread
From: Andrew Lunn @ 2024-12-25 16:17 UTC (permalink / raw)
To: Yijie Yang
Cc: Krzysztof Kozlowski, Vinod Koul, Andrew Lunn, David S. Miller,
Eric Dumazet, Jakub Kicinski, Paolo Abeni, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Bhupesh Sharma,
Alexandre Torgue, Giuseppe Cavallaro, Jose Abreu, Maxime Coquelin,
netdev, linux-arm-msm, devicetree, linux-kernel, linux-stm32,
linux-arm-kernel
On Wed, Dec 25, 2024 at 04:58:20PM +0800, Yijie Yang wrote:
>
>
> On 2024-12-24 17:02, Krzysztof Kozlowski wrote:
> > On 24/12/2024 04:07, Yijie Yang wrote:
> > > The core version of EMAC on qcs615 has minor differences compared to that
> > > on sm8150. During the bring-up routine, the loopback bit needs to be set,
> > > and the Power-On Reset (POR) status of the registers isn't entirely
> > > consistent with sm8150 either.
> > > Therefore, it should be treated as a separate entity rather than a
> > > fallback option.
> >
> > ... and explanation of ABI impact? You were asked about this last time,
> > so this is supposed to end up here.
>
> I actually replied to this query last time, but maybe it wasn't clear.
> Firstly, no one is using Ethernet on this platform yet. Secondly, the
> previous fallback to sm8150 is incorrect and causes packet loss. Instead, it
> should fall back to qcs404.
One of the purposes of the commit message is to answer questions
reviews might have. You were even asked this question, so that should
of been a clue to include the answer in the commit message.
Andrew
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [PATCH v2 1/3] dt-bindings: net: qcom,ethqos: Drop fallback compatible for qcom,qcs615-ethqos
2024-12-25 16:17 ` Andrew Lunn
@ 2024-12-26 1:13 ` Yijie Yang
0 siblings, 0 replies; 18+ messages in thread
From: Yijie Yang @ 2024-12-26 1:13 UTC (permalink / raw)
To: Andrew Lunn
Cc: Krzysztof Kozlowski, Vinod Koul, Andrew Lunn, David S. Miller,
Eric Dumazet, Jakub Kicinski, Paolo Abeni, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Bhupesh Sharma,
Alexandre Torgue, Giuseppe Cavallaro, Jose Abreu, Maxime Coquelin,
netdev, linux-arm-msm, devicetree, linux-kernel, linux-stm32,
linux-arm-kernel
On 2024-12-26 00:17, Andrew Lunn wrote:
> On Wed, Dec 25, 2024 at 04:58:20PM +0800, Yijie Yang wrote:
>>
>>
>> On 2024-12-24 17:02, Krzysztof Kozlowski wrote:
>>> On 24/12/2024 04:07, Yijie Yang wrote:
>>>> The core version of EMAC on qcs615 has minor differences compared to that
>>>> on sm8150. During the bring-up routine, the loopback bit needs to be set,
>>>> and the Power-On Reset (POR) status of the registers isn't entirely
>>>> consistent with sm8150 either.
>>>> Therefore, it should be treated as a separate entity rather than a
>>>> fallback option.
>>>
>>> ... and explanation of ABI impact? You were asked about this last time,
>>> so this is supposed to end up here.
>>
>> I actually replied to this query last time, but maybe it wasn't clear.
>> Firstly, no one is using Ethernet on this platform yet. Secondly, the
>> previous fallback to sm8150 is incorrect and causes packet loss. Instead, it
>> should fall back to qcs404.
>
> One of the purposes of the commit message is to answer questions
> reviews might have. You were even asked this question, so that should
> of been a clue to include the answer in the commit message.
>
I will include it in the commit message in the next version.
> Andrew
--
Best Regards,
Yijie
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [PATCH v2 1/3] dt-bindings: net: qcom,ethqos: Drop fallback compatible for qcom,qcs615-ethqos
2024-12-25 8:58 ` Yijie Yang
2024-12-25 16:17 ` Andrew Lunn
@ 2024-12-27 7:14 ` Krzysztof Kozlowski
1 sibling, 0 replies; 18+ messages in thread
From: Krzysztof Kozlowski @ 2024-12-27 7:14 UTC (permalink / raw)
To: Yijie Yang, Vinod Koul, Andrew Lunn, David S. Miller,
Eric Dumazet, Jakub Kicinski, Paolo Abeni, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Bhupesh Sharma,
Alexandre Torgue, Giuseppe Cavallaro, Jose Abreu, Maxime Coquelin
Cc: netdev, linux-arm-msm, devicetree, linux-kernel, linux-stm32,
linux-arm-kernel
On 25/12/2024 09:58, Yijie Yang wrote:
>
>
> On 2024-12-24 17:02, Krzysztof Kozlowski wrote:
>> On 24/12/2024 04:07, Yijie Yang wrote:
>>> The core version of EMAC on qcs615 has minor differences compared to that
>>> on sm8150. During the bring-up routine, the loopback bit needs to be set,
>>> and the Power-On Reset (POR) status of the registers isn't entirely
>>> consistent with sm8150 either.
>>> Therefore, it should be treated as a separate entity rather than a
>>> fallback option.
>>
>> ... and explanation of ABI impact? You were asked about this last time,
>> so this is supposed to end up here.
>
> I actually replied to this query last time, but maybe it wasn't clear.
> Firstly, no one is using Ethernet on this platform yet. Secondly, the
> previous fallback to sm8150 is incorrect and causes packet loss.
> Instead, it should fall back to qcs404.
>
And if you send v3 with same commit msg, I will ask the same. Your
commit msg must answer to this.
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 18+ messages in thread
end of thread, other threads:[~2024-12-27 7:15 UTC | newest]
Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-24 3:07 [PATCH v2 0/3] Add standalone ethernet MAC entries for qcs615 Yijie Yang
2024-12-24 3:07 ` [PATCH v2 1/3] dt-bindings: net: qcom,ethqos: Drop fallback compatible for qcom,qcs615-ethqos Yijie Yang
2024-12-24 9:02 ` Krzysztof Kozlowski
2024-12-25 8:58 ` Yijie Yang
2024-12-25 16:17 ` Andrew Lunn
2024-12-26 1:13 ` Yijie Yang
2024-12-27 7:14 ` Krzysztof Kozlowski
2024-12-24 3:07 ` [PATCH v2 2/3] dt-bindings: net: snps,dwmac: add description for qcs615 Yijie Yang
2024-12-24 9:03 ` Krzysztof Kozlowski
2024-12-24 3:07 ` [PATCH v2 3/3] net: stmmac: dwmac-qcom-ethqos: add support for EMAC on qcs615 platforms Yijie Yang
2024-12-24 4:18 ` Dmitry Baryshkov
2024-12-24 4:36 ` Yijie Yang
2024-12-24 5:05 ` Dmitry Baryshkov
2024-12-25 8:47 ` Yijie Yang
2024-12-24 4:16 ` [PATCH v2 0/3] Add standalone ethernet MAC entries for qcs615 Dmitry Baryshkov
2024-12-24 5:47 ` Yijie Yang
2024-12-24 5:53 ` Dmitry Baryshkov
2024-12-24 6:02 ` Yijie Yang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).