netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 0/4] PTP_CLK pin configuration for SJA1105 DSA driver
@ 2020-03-23 22:59 Vladimir Oltean
  2020-03-23 22:59 ` [PATCH net-next 1/4] net: dsa: sja1105: unconditionally set DESTMETA and SRCMETA in AVB table Vladimir Oltean
                   ` (4 more replies)
  0 siblings, 5 replies; 9+ messages in thread
From: Vladimir Oltean @ 2020-03-23 22:59 UTC (permalink / raw)
  To: davem, richardcochran
  Cc: f.fainelli, vivien.didelot, andrew, christian.herber, yangbo.lu,
	netdev

From: Vladimir Oltean <vladimir.oltean@nxp.com>

This series adds support for the PTP_CLK pin on SJA1105 to be configured
via the PTP subsystem, in the "periodic output" and "external timestamp
input" modes.

Vladimir Oltean (4):
  net: dsa: sja1105: unconditionally set DESTMETA and SRCMETA in AVB
    table
  net: dsa: sja1105: make future_base_time a common helper
  net: dsa: sja1105: make the AVB table dynamically reconfigurable
  net: dsa: sja1105: configure the PTP_CLK pin as EXT_TS or PER_OUT

 drivers/net/dsa/sja1105/sja1105.h             |   5 +
 .../net/dsa/sja1105/sja1105_dynamic_config.c  |  24 +-
 drivers/net/dsa/sja1105/sja1105_main.c        |  40 +++
 drivers/net/dsa/sja1105/sja1105_ptp.c         | 285 +++++++++++++++---
 drivers/net/dsa/sja1105/sja1105_ptp.h         |  31 ++
 drivers/net/dsa/sja1105/sja1105_spi.c         |   5 +
 .../net/dsa/sja1105/sja1105_static_config.c   |   5 +-
 .../net/dsa/sja1105/sja1105_static_config.h   |   1 +
 drivers/net/dsa/sja1105/sja1105_tas.c         |  27 --
 9 files changed, 355 insertions(+), 68 deletions(-)

-- 
2.17.1


^ permalink raw reply	[flat|nested] 9+ messages in thread
* RE: [PATCH net-next 1/4] net: dsa: sja1105: unconditionally set DESTMETA and SRCMETA in AVB table
@ 2020-03-24  7:39 Christian Herber
  2020-03-24  9:07 ` Vladimir Oltean
  0 siblings, 1 reply; 9+ messages in thread
From: Christian Herber @ 2020-03-24  7:39 UTC (permalink / raw)
  To: Vladimir Oltean, davem@davemloft.net, richardcochran@gmail.com
  Cc: f.fainelli@gmail.com, vivien.didelot@gmail.com, andrew@lunn.ch,
	Y.b. Lu, netdev@vger.kernel.org

>+static int sja1105_init_avb_params(struct sja1105_private *priv)
>+{
>+       struct sja1105_avb_params_entry *avb;
>+       struct sja1105_table *table;
>+
>+       table = &priv->static_config.tables[BLK_IDX_AVB_PARAMS];
>+
>+       /* Discard previous AVB Parameters Table */
>+       if (table->entry_count) {
>+               kfree(table->entries);
>+               table->entry_count = 0;
>+       }
>+
>+       table->entries = kcalloc(SJA1105_MAX_AVB_PARAMS_COUNT,
>+                                table->ops->unpacked_entry_size, GFP_KERNEL);
>+       if (!table->entries)
>+               return -ENOMEM;
>+
>+       table->entry_count = SJA1105_MAX_AVB_PARAMS_COUNT;
>+
>+       avb = table->entries;
>+
>+       /* Configure the MAC addresses for meta frames */
>+       avb->destmeta = SJA1105_META_DMAC;
>+       avb->srcmeta  = SJA1105_META_SMAC;
>+
>+       return 0;
>+}
>+
 
Would it be possible to use the MAC address of the connected eth as destination? This is nicer also when going over multiple cascaded switches.

Christian

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

end of thread, other threads:[~2020-03-24  9:07 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-03-23 22:59 [PATCH net-next 0/4] PTP_CLK pin configuration for SJA1105 DSA driver Vladimir Oltean
2020-03-23 22:59 ` [PATCH net-next 1/4] net: dsa: sja1105: unconditionally set DESTMETA and SRCMETA in AVB table Vladimir Oltean
2020-03-23 22:59 ` [PATCH net-next 2/4] net: dsa: sja1105: make future_base_time a common helper Vladimir Oltean
2020-03-23 22:59 ` [PATCH net-next 3/4] net: dsa: sja1105: make the AVB table dynamically reconfigurable Vladimir Oltean
2020-03-23 22:59 ` [PATCH net-next 4/4] net: dsa: sja1105: configure the PTP_CLK pin as EXT_TS or PER_OUT Vladimir Oltean
2020-03-23 23:26   ` Richard Cochran
2020-03-24  5:15 ` [PATCH net-next 0/4] PTP_CLK pin configuration for SJA1105 DSA driver David Miller
  -- strict thread matches above, loose matches on Subject: below --
2020-03-24  7:39 [PATCH net-next 1/4] net: dsa: sja1105: unconditionally set DESTMETA and SRCMETA in AVB table Christian Herber
2020-03-24  9:07 ` Vladimir Oltean

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).