|
|
Log in / Subscribe / Register

net: stmmac: Add support for coarse timestamping

From:  Maxime Chevallier <maxime.chevallier-AT-bootlin.com>
To:  Alexandre Torgue <alexandre.torgue-AT-foss.st.com>, Jose Abreu <joabreu-AT-synopsys.com>, Andrew Lunn <andrew+netdev-AT-lunn.ch>, davem-AT-davemloft.net, Eric Dumazet <edumazet-AT-google.com>, Jakub Kicinski <kuba-AT-kernel.org>, Paolo Abeni <pabeni-AT-redhat.com>, Maxime Coquelin <mcoquelin.stm32-AT-gmail.com>, Richard Cochran <richardcochran-AT-gmail.com>, Russell King <linux-AT-armlinux.org.uk>, Köry Maincent <kory.maincent-AT-bootlin.com>
Subject:  [PATCH net-next v2 0/2] net: stmmac: Add support for coarse timestamping
Date:  Fri, 24 Oct 2025 09:07:16 +0200
Message-ID:  <20251024070720.71174-1-maxime.chevallier@bootlin.com>
Cc:  Maxime Chevallier <maxime.chevallier-AT-bootlin.com>, Vadim Fedorenko <vadim.fedorenko-AT-linux.dev>, Alexis Lothoré <alexis.lothore-AT-bootlin.com>, Thomas Petazzoni <thomas.petazzoni-AT-bootlin.com>, netdev-AT-vger.kernel.org, linux-stm32-AT-st-md-mailman.stormreply.com, linux-arm-kernel-AT-lists.infradead.org, linux-kernel-AT-vger.kernel.org
Archive-link:  Article

Hello everyone,

This is V2 for coarse timetamping support in stmmac. This version uses a
dedicated devlink param "ts_coarse" to control this mode.

This doesn't conflict with Russell's cleanup of hwif.

Maxime

[1] : https://lore.kernel.org/netdev/20200514102808.31163-1-oli...

Changes in V2:
 - Use devlink intead of tsconfig
 - Rebase on top of Russell's rework of has_xxx flags

V1: https://lore.kernel.org/netdev/20251015102725.1297985-1-m...

Maxime Chevallier (2):
  net: stmmac: Move subsecond increment configuration in dedicated
    helper
  net: stmmac: Add a devlink attribute to control timestamping mode

 Documentation/networking/devlink/index.rst    |   1 +
 Documentation/networking/devlink/stmmac.rst   |  31 ++++
 drivers/net/ethernet/stmicro/stmmac/Kconfig   |   1 +
 drivers/net/ethernet/stmicro/stmmac/stmmac.h  |   3 +
 .../net/ethernet/stmicro/stmmac/stmmac_main.c | 163 +++++++++++++++---
 5 files changed, 176 insertions(+), 23 deletions(-)
 create mode 100644 Documentation/networking/devlink/stmmac.rst

-- 
2.49.0




Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds