Documentation: devicetree: change the mediatek ethernet compatible string
Subsystems (5)
PATCH 1/2 Documentation: devicetree: change the mediatek ethernet compatible string
When the binding was defined, I was not aware that mt2701 was an earlier version of the SoC. For sake of consistency, the ethernet driver should use mt2701 inside the compat string as this is the earliest SoC with the ethernet core.
The ethernet driver is currently of no real use until we finish and upstream the DSA driver. There are no users of this binding yet. It should be safe to fix this now before it is too late and we need to provide backward compatibility for the mt7623-eth compat string.
--- Documentation/devicetree/bindings/net/mediatek-net.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/devicetree/bindings/net/mediatek-net.txt +1 -1
@@ -7,7 +7,7 @@ have dual GMAC each represented by a child node.. * Ethernet controller node Required properties: -- compatible: Should be "mediatek,mt7623-eth" +- compatible: Should be "mediatek,mt2701-eth" - reg: Address and length of the register set for the device - interrupts: Should contain the three frame engines interrupts in numeric order. These are fe_int0, fe_int1 and fe_int2.
Signature · 1 line
1.7.10.4
PATCH 2/2 net-next: ethernet: mediatek: change the compatible string
When the binding was defined, I was not aware that mt2701 was an earlier version of the SoC. For sake of consistency, the ethernet driver should use mt2701 inside the compat string as this is the earliest SoC with the ethernet core.
The ethernet driver is currently of no real use until we finish and upstream the DSA driver. There are no users of this binding yet. It should be safe to fix this now before it is too late and we need to provide backward compatibility for the mt7623-eth compat string.
--- drivers/net/ethernet/mediatek/mtk_eth_soc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/mediatek/mtk_eth_soc.c +1 -1
@@ -2515,7 +2515,7 @@ static int mtk_remove(struct platform_device *pdev) }const struct of_device_id of_mtk_match[] = { - { .compatible ="mediatek,mt7623-eth" }, + { .compatible ="mediatek,mt2701-eth" }, {}, };MODULE_DEVICE_TABLE (of, of_mtk_match);
Signature · 1 line
1.7.10.4
Matthias Brugger
Reviewed-byQuoted 5 lines · John Crispin
When the binding was defined, I was not aware that mt2701 was an earlier version of the SoC. For sake of consistency, the ethernet driver should use mt2701 inside the compat string as this is the earliest SoC with the ethernet core.
Quoted 8 lines
The ethernet driver is currently of no real use until we finish and upstream the DSA driver. There are no users of this binding yet. It should be safe to fix this now before it is too late and we need to provide backward compatibility for the mt7623-eth compat string.
Signed-off-by John Crispin <[email protected]>---
sounds reasonable to me:
Quoted 9 lines
Documentation/devicetree/bindings/net/mediatek-net.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)Documentation/devicetree/bindings/net/mediatek-net.txt +0
-0
Documentation/devicetree/bindings/net/mediatek-net.txt have dual GMAC each represented by a child node.. · line 13
Quoted 8 lines
Documentation/devicetree/bindings/net/mediatek-net.txt +1
-1@@ -7,7 +7,7 @@ have dual GMAC each represented by a child node.. * Ethernet controller node Required properties: -- compatible: Should be "mediatek,mt7623-eth" +- compatible: Should be "mediatek,mt2701-eth" - reg: Address and length of the register set for the device - interrupts: Should contain the three frame engines interrupts in numeric order. These are fe_int0, fe_int1 and fe_int2.
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
From: John Crispin <[email protected]>
Date: Wed, 25 Jan 2017 09:20:54 +0100
Quoted 5 lines
When the binding was defined, I was not aware that mt2701 was an earlier version of the SoC. For sake of consistency, the ethernet driver should use mt2701 inside the compat string as this is the earliest SoC with the ethernet core.
Quoted 7 lines
The ethernet driver is currently of no real use until we finish and upstream the DSA driver. There are no users of this binding yet. It should be safe to fix this now before it is too late and we need to provide backward compatibility for the mt7623-eth compat string.
Reported-by Sean Wang <[email protected]>Signed-off-by John Crispin <[email protected]>
Applied.
Re: [PATCH 2/2] net-next: ethernet: mediatek: change the compatible string
In reply to a message not in the archiveFrom: John Crispin <[email protected]>
Date: Wed, 25 Jan 2017 09:20:55 +0100
Quoted 5 lines
When the binding was defined, I was not aware that mt2701 was an earlier version of the SoC. For sake of consistency, the ethernet driver should use mt2701 inside the compat string as this is the earliest SoC with the ethernet core.
Quoted 7 lines
The ethernet driver is currently of no real use until we finish and upstream the DSA driver. There are no users of this binding yet. It should be safe to fix this now before it is too late and we need to provide backward compatibility for the mt7623-eth compat string.
Signed-off-by John Crispin <[email protected]>
Applied.
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 9 lines · John Crispin
When the binding was defined, I was not aware that mt2701 was an earlier version of the SoC. For sake of consistency, the ethernet driver should use mt2701 inside the compat string as this is the earliest SoC with the ethernet core.
The ethernet driver is currently of no real use until we finish and upstream the DSA driver. There are no users of this binding yet. It should be safe to fix this now before it is too late and we need to provide backward compatibility for the mt7623-eth compat string.
Thanks for the explanation.
Quoted 11 lines
Signed-off-by John Crispin <[email protected]>--- Documentation/devicetree/bindings/net/mediatek-net.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)Documentation/devicetree/bindings/net/mediatek-net.txt +0
-0
Documentation/devicetree/bindings/net/mediatek-net.txt have dual GMAC each represented by a child node.. · line 10
Quoted 5 lines
Documentation/devicetree/bindings/net/mediatek-net.txt +1
-1@@ -7,7 +7,7 @@ have dual GMAC each represented by a child node.. * Ethernet controller node Required properties: -- compatible: Should be "mediatek,mt7623-eth" +- compatible: Should be "mediatek,mt2701-eth"
You should have both strings with 2701 being last. That way if you ever find a difference in the 7623, you don't need a DT update to fix it.
Quoted 6 lines
Documentation/devicetree/bindings/net/mediatek-net.txt +0
-0- reg: Address and length of the register set for the device - interrupts: Should contain the three frame engines interrupts in numeric order. These are fe_int0, fe_int1 and fe_int2.Signature · 1 line
1.7.10.4
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 5 lines · John Crispin
When the binding was defined, I was not aware that mt2701 was an earlier version of the SoC. For sake of consistency, the ethernet driver should use mt2701 inside the compat string as this is the earliest SoC with the ethernet core.
Quoted 7 lines
The ethernet driver is currently of no real use until we finish and upstream the DSA driver. There are no users of this binding yet. It should be safe to fix this now before it is too late and we need to provide backward compatibility for the mt7623-eth compat string.
Reported-by Sean Wang <[email protected]>Signed-off-by John Crispin <[email protected]>
Quoted 17 lines
--- Documentation/devicetree/bindings/net/mediatek-net.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)Documentation/devicetree/bindings/net/mediatek-net.txt +1
-1@@ -7,7 +7,7 @@ have dual GMAC each represented by a child node.. * Ethernet controller node Required properties: -- compatible: Should be "mediatek,mt7623-eth" +- compatible: Should be "mediatek,mt2701-eth" - reg: Address and length of the register set for the device - interrupts: Should contain the three frame engines interrupts in numeric order. These are fe_int0, fe_int1 and fe_int2.
Re: [PATCH 2/2] net-next: ethernet: mediatek: change the compatible string
In reply to John CrispinQuoted 5 lines · John Crispin
When the binding was defined, I was not aware that mt2701 was an earlier version of the SoC. For sake of consistency, the ethernet driver should use mt2701 inside the compat string as this is the earliest SoC with the ethernet core.
Quoted 7 lines
The ethernet driver is currently of no real use until we finish and upstream the DSA driver. There are no users of this binding yet. It should be safe to fix this now before it is too late and we need to provide backward compatibility for the mt7623-eth compat string.
Reported-by Sean Wang <[email protected]>Signed-off-by John Crispin <[email protected]>
Quoted 17 lines
--- drivers/net/ethernet/mediatek/mtk_eth_soc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/net/ethernet/mediatek/mtk_eth_soc.c +1
-1@@ -2515,7 +2515,7 @@ static int mtk_remove(struct platform_device *pdev) }const struct of_device_id of_mtk_match[] = { - { .compatible ="mediatek,mt7623-eth" }, + { .compatible ="mediatek,mt2701-eth" }, {}, };MODULE_DEVICE_TABLE (of, of_mtk_match);