Skip to contentSkip to conversation

Add PTP support for sama7g5

PATCH Applied Durai Manickam KR 6 participants 10 messages Mar 15, 2023 – Mar 17, 2023

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

cover Add PTP support for sama7g5

This patch series is intended to add PTP capability to the GEM and EMAC for sama7g5.

Durai Manickam KR (2):
net: macb: Add PTP support to GEM for sama7g5
net: macb: Add PTP support to EMAC for sama7g5

 drivers/net/ethernet/cadence/macb_main.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
Signature · 7 lines
2.25.1


_______________________________________________
linux-riscv mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-riscv
#1 lore raw

PATCH 1/2 net: macb: Add PTP support to GEM for sama7g5

Add PTP capability to the Gigabit Ethernet MAC.

---
 drivers/net/ethernet/cadence/macb_main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/cadence/macb_main.c +1 -1
index 6e141a8bbf43..27fc6c903d25 100644
@@ -4844,7 +4844,7 @@ static const struct macb_config mpfs_config = {
 
 static const struct macb_config sama7g5_gem_config = {
 	.caps = MACB_CAPS_GIGABIT_MODE_AVAILABLE | MACB_CAPS_CLK_HW_CHG |
-		MACB_CAPS_MIIONRGMII,
+		MACB_CAPS_MIIONRGMII | MACB_CAPS_GEM_HAS_PTP,
 	.dma_burst_length = 16,
 	.clk_init = macb_clk_init,
 	.init = macb_init,
Signature · 7 lines
2.25.1


_______________________________________________
linux-riscv mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-riscv
Reviewed-by on v1 1/2
#2 lore raw

Re: [PATCH 1/2] net: macb: Add PTP support to GEM for sama7g5

Quoted 3 lines · Durai Manickam KR

Add PTP capability to the Gigabit Ethernet MAC.

Quoted 9 lines
---
 drivers/net/ethernet/cadence/macb_main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/cadence/macb_main.c +0 -0
index 6e141a8bbf43..27fc6c903d25 100644

drivers/net/ethernet/cadence/macb_main.c static const struct macb_config mpfs_config = { · line 4850

Quoted 8 lines
drivers/net/ethernet/cadence/macb_main.c +1 -1
@@ -4844,7 +4844,7 @@ static const struct macb_config mpfs_config = {
 
 static const struct macb_config sama7g5_gem_config = {
 	.caps = MACB_CAPS_GIGABIT_MODE_AVAILABLE | MACB_CAPS_CLK_HW_CHG |
-		MACB_CAPS_MIIONRGMII,
+		MACB_CAPS_MIIONRGMII | MACB_CAPS_GEM_HAS_PTP,
 	.dma_burst_length = 16,
 	.clk_init = macb_clk_init,
 	.init = macb_init,

_______________________________________________
linux-riscv mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-riscv

#3 lore raw

PATCH 2/2 net: macb: Add PTP support to EMAC for sama7g5

In reply to Durai Manickam KR

Add PTP capability to the Ethernet MAC.

---
 drivers/net/ethernet/cadence/macb_main.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/net/ethernet/cadence/macb_main.c +2 -1
index 27fc6c903d25..1dbee16fe90a 100644
@@ -4853,7 +4853,8 @@ static const struct macb_config sama7g5_gem_config = {
 
 static const struct macb_config sama7g5_emac_config = {
 	.caps = MACB_CAPS_USRIO_DEFAULT_IS_MII_GMII |
-		MACB_CAPS_USRIO_HAS_CLKEN | MACB_CAPS_MIIONRGMII,
+		MACB_CAPS_USRIO_HAS_CLKEN | MACB_CAPS_MIIONRGMII |
+		MACB_CAPS_GEM_HAS_PTP,
 	.dma_burst_length = 16,
 	.clk_init = macb_clk_init,
 	.init = macb_init,
Signature · 7 lines
2.25.1


_______________________________________________
linux-riscv mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-riscv
Reviewed-by on v1 2/2
#4 lore raw

Re: [PATCH 2/2] net: macb: Add PTP support to EMAC for sama7g5

Quoted 3 lines · Durai Manickam KR

Add PTP capability to the Ethernet MAC.

Quoted 8 lines

---> drivers/net/ethernet/cadence/macb_main.c | 3 ++-

 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/net/ethernet/cadence/macb_main.c +0 -0
index 27fc6c903d25..1dbee16fe90a 100644

drivers/net/ethernet/cadence/macb_main.c static const struct macb_config sama7g5_gem_config = { · line 4860

Quoted 9 lines
drivers/net/ethernet/cadence/macb_main.c +2 -1
@@ -4853,7 +4853,8 @@ static const struct macb_config sama7g5_gem_config = {
 
 static const struct macb_config sama7g5_emac_config = {
 	.caps = MACB_CAPS_USRIO_DEFAULT_IS_MII_GMII |
-		MACB_CAPS_USRIO_HAS_CLKEN | MACB_CAPS_MIIONRGMII,
+		MACB_CAPS_USRIO_HAS_CLKEN | MACB_CAPS_MIIONRGMII |
+		MACB_CAPS_GEM_HAS_PTP,
 	.dma_burst_length = 16,
 	.clk_init = macb_clk_init,
 	.init = macb_init,

_______________________________________________
linux-riscv mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-riscv

Reviewed-by on the v1 series
#5 lore raw
In reply to Durai Manickam KR
Quoted 10 lines · Durai Manickam KR

This patch series is intended to add PTP capability to the GEM and EMAC for sama7g5.

Durai Manickam KR (2):
net: macb: Add PTP support to GEM for sama7g5
net: macb: Add PTP support to EMAC for sama7g5

 drivers/net/ethernet/cadence/macb_main.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

Side question, doesn't it need any software implementation? Or it is already implemented, or it is only hw caps?

Quoted 3 lines
Signature · 1 line
2.25.1
#6 lore raw
Quoted 12 lines · Michal Swiatkowski

[Some people who received this message don't often get email from [email protected]. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ]

EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe

Quoted 7 lines · Durai Manickam KR

This patch series is intended to add PTP capability to the GEM and EMAC for sama7g5.

Durai Manickam KR (2):
net: macb: Add PTP support to GEM for sama7g5
net: macb: Add PTP support to EMAC for sama7g5

Quoted 7 lines
Quoted 3 lines
  drivers/net/ethernet/cadence/macb_main.c | 5 +++--
  1 file changed, 3 insertions(+), 2 deletions(-)

Side question, doesn't it need any software implementation? Or it is already implemented, or it is only hw caps?

Hi Michal,

It is already implemented. Here the scope is to just enable it for sama7g5.

Quoted 3 lines
Quoted 3 lines

--
2.25.1

#7 lore raw
Quoted 16 lines · On Wed, Mar 15, 2023 at 11:56:15AM +0000, [email protected] wrote:
Quoted 15 lines · Michal Swiatkowski

[Some people who received this message don't often get email from [email protected]. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ]

EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe

Quoted 10 lines · Durai Manickam KR

This patch series is intended to add PTP capability to the GEM and EMAC for sama7g5.

Durai Manickam KR (2):
net: macb: Add PTP support to GEM for sama7g5
net: macb: Add PTP support to EMAC for sama7g5

  drivers/net/ethernet/cadence/macb_main.c | 5 +++--
  1 file changed, 3 insertions(+), 2 deletions(-)
Quoted 9 lines
Quoted 4 lines

Side question, doesn't it need any software implementation? Or it is already implemented, or it is only hw caps?

Hi Michal,

It is already implemented. Here the scope is to just enable it for sama7g5.

Also, since commits lack target tree (net-next?) I'm not sure if the patches will be picked by bot and tested.

Piotr.

Quoted 4 lines
Quoted 3 lines
Quoted 3 lines

--
2.25.1

_______________________________________________
linux-riscv mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-riscv

maintainer
#8 lore raw
Quoted 4 lines · On Wed, 15 Mar 2023 13:43:17 +0100 Piotr Raczynski wrote:
Quoted 1 line

It is already implemented. Here the scope is to just enable it for sama7g5.

Also, since commits lack target tree (net-next?) I'm not sure if the patches will be picked by bot and tested.

The tree_selection check reports what tree it ended up picking, FWIW

#9 lore raw
In reply to Durai Manickam KR
This series was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Hello:

This series was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Quoted 8 lines · On Wed, 15 Mar 2023 15:20:51 +0530 you wrote:

This patch series is intended to add PTP capability to the GEM and EMAC for sama7g5.

Durai Manickam KR (2):
net: macb: Add PTP support to GEM for sama7g5
net: macb: Add PTP support to EMAC for sama7g5

[...]

Here is the summary with links:
- [1/2] net: macb: Add PTP support to GEM for sama7g5

    https://git.kernel.org/netdev/net-next/c/abc783a7b0ff
  - [2/2] net: macb: Add PTP support to EMAC for sama7g5
    https://git.kernel.org/netdev/net-next/c/9bae0dd05e61

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html