netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] net: ethernet: renesas: rcar_gen4_ptp: Simplify register layout
@ 2025-09-08 15:44 Niklas Söderlund
  2025-09-08 15:44 ` [PATCH 1/3] net: ethernet: renesas: rcar_gen4_ptp: Remove different memory layout Niklas Söderlund
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Niklas Söderlund @ 2025-09-08 15:44 UTC (permalink / raw)
  To: Yoshihiro Shimoda, Andrew Lunn, David S. Miller, Eric Dumazet,
	Jakub Kicinski, Paolo Abeni, Richard Cochran, netdev,
	linux-renesas-soc
  Cc: Niklas Söderlund

Hello,

The daughter driver rcar_gen4_ptp used by both rswitch and rtsn where 
upstreamed with support for possible different memory layouts on 
different users. With all Gen4 boards upstream no such setup is 
documented.

There are other issues related to how the rcar_gen4_ptp driver is shared 
between multiple useres that needs to be cleaned up. But that will be a 
larger work. So before that get some simple fixes done.

Patch 1/3 and 2/3 removes the support to allow different register 
layouts on different SoCs by looking up offsets at runtime with a much 
simpler interface. The new interface computes the offsets at compile 
time.

While patch 3/3 is a drive-by patch taking a spurs comment and making a 
lockdep check of it.

There is no intentional functional change in this series just cleaning 
up in preparation of larger works to follow.

Niklas Söderlund (3):
  net: ethernet: renesas: rcar_gen4_ptp: Remove different memory layout
  net: ethernet: renesas: rcar_gen4_ptp: Hide register layout
  net: ethernet: renesas: rcar_gen4_ptp: Use lockdep to verify internal
    usage

 drivers/net/ethernet/renesas/rcar_gen4_ptp.c | 76 ++++++++------------
 drivers/net/ethernet/renesas/rcar_gen4_ptp.h | 33 +--------
 drivers/net/ethernet/renesas/rswitch_main.c  |  3 +-
 drivers/net/ethernet/renesas/rtsn.c          |  3 +-
 4 files changed, 32 insertions(+), 83 deletions(-)

-- 
2.51.0


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

end of thread, other threads:[~2025-09-12  2:00 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-08 15:44 [PATCH 0/3] net: ethernet: renesas: rcar_gen4_ptp: Simplify register layout Niklas Söderlund
2025-09-08 15:44 ` [PATCH 1/3] net: ethernet: renesas: rcar_gen4_ptp: Remove different memory layout Niklas Söderlund
2025-09-09 12:51   ` Simon Horman
2025-09-08 15:44 ` [PATCH 2/3] net: ethernet: renesas: rcar_gen4_ptp: Hide register layout Niklas Söderlund
2025-09-09 12:51   ` Simon Horman
2025-09-08 15:44 ` [PATCH 3/3] net: ethernet: renesas: rcar_gen4_ptp: Use lockdep to verify internal usage Niklas Söderlund
2025-09-09 12:51   ` Simon Horman
2025-09-12  2:00 ` [PATCH 0/3] net: ethernet: renesas: rcar_gen4_ptp: Simplify register layout patchwork-bot+netdevbpf

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