]> git.ipfire.org Git - thirdparty/linux.git/commit
net: rswitch: Use common defines for time stamping control
authorNiklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Tue, 4 Nov 2025 22:24:16 +0000 (23:24 +0100)
committerJakub Kicinski <kuba@kernel.org>
Fri, 7 Nov 2025 01:38:25 +0000 (17:38 -0800)
commitb314e4f7a9d9ba7821cfac57e1bf3648bb27a289
tree606414e2933b17fd28aad0f6fd928252e4beac1b
parent50ab1c6becdec42ce7cc9b52f2ea67c6a81218f2
net: rswitch: Use common defines for time stamping control

Instead of translating to/from driver specific flags for packet time
stamp control use the common flags directly. This simplifies the driver
as the translating code can be removed while at the same time making it
clear the flags are not flags written to hardware registers.

One thing to note is that the bit-wise and check in rswitch_rx() of
RCAR_GEN4_RXTSTAMP_TYPE_V2_L2_EVENT is replaced with a not set check of
HWTSTAMP_FILTER_NONE. This is okay as the bit of device specific event
replaced was set for all modes except HWTSTAMP_FILTER_NONE.

Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Link: https://patch.msgid.link/20251104222420.882731-4-niklas.soderlund+renesas@ragnatech.se
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/renesas/rswitch.h
drivers/net/ethernet/renesas/rswitch_main.c