[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20260201183745.1075399-1-niklas.soderlund+renesas@ragnatech.se>
Date: Sun, 1 Feb 2026 19:37:41 +0100
From: Niklas Söderlund <niklas.soderlund+renesas@...natech.se>
To: Yoshihiro Shimoda <yoshihiro.shimoda.uh@...esas.com>,
Andrew Lunn <andrew+netdev@...n.ch>,
"David S. Miller" <davem@...emloft.net>,
Eric Dumazet <edumazet@...gle.com>,
Jakub Kicinski <kuba@...nel.org>,
Paolo Abeni <pabeni@...hat.com>,
Geert Uytterhoeven <geert+renesas@...der.be>,
Magnus Damm <magnus.damm@...il.com>,
Richard Cochran <richardcochran@...il.com>,
netdev@...r.kernel.org,
linux-renesas-soc@...r.kernel.org
Cc: Niklas Söderlund <niklas.soderlund+renesas@...natech.se>
Subject: [net-next 0/4] net: ethernet: renesas: rcar_gen4_ptp: Hide private data
Hello,
The R-Car Gen4 PTP module started out as an exclusive feature of a
single driver, but have since been extended to cover both R-Car Switch
and TSN driver implementations on Gen4.
The feature have already been extended to be built as its own module
with an interface exposed thru a local header file. The header file
however also exposes the modules private data structure. The two
existing users have already started to poke at members of the struct.
The exposed private data being manipulated by users makes refactoring
and future rework hard as the interface for the module becomes to
chaotic. This small series aims to create two helpers to hide the
private data.
This is done as a small preparation before a third, new, users of the
Gen4 PTP will be added in a follow up series.
Niklas Söderlund (4):
net: ethernet: renesas: rcar_gen4_ptp: Move address assignment
net: ethernet: renesas: rcar_gen4_ptp: Add helper to get clock index
net: ethernet: renesas: rcar_gen4_ptp: Add helper to read time
net: ethernet: renesas: rcar_gen4_ptp: Hide private data from users
drivers/net/ethernet/renesas/rcar_gen4_ptp.c | 34 +++++++++++++++++++-
drivers/net/ethernet/renesas/rcar_gen4_ptp.h | 18 ++++-------
drivers/net/ethernet/renesas/rswitch_main.c | 11 +++----
drivers/net/ethernet/renesas/rtsn.c | 30 +++++++----------
4 files changed, 57 insertions(+), 36 deletions(-)
--
2.52.0
Powered by blists - more mailing lists