]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: dsa: microchip: Wrap timestamp reading in a function
authorBastien Curutchet (Schneider Electric) <bastien.curutchet@bootlin.com>
Mon, 5 Jan 2026 13:08:08 +0000 (14:08 +0100)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 8 Jan 2026 12:01:16 +0000 (13:01 +0100)
commit3adff276e751051e77be4df8d29eab1cf0856fbf
tree22e6a0a2a22e24db1317a602905427c07dfcb1e0
parentb4df828dfc290ffbb59b1172d71fdf34371edc23
net: dsa: microchip: Wrap timestamp reading in a function

Timestamps are directly accessed through a register read in the
interrupt handler. KSZ8463's logic to access it will be a bit more
complex because the same interrupt can be triggered by two different
timestamps being ready.

Wrap the timestamp's reading in a dedicated function to ease the
KSZ8463's integration in upcoming patches.

Signed-off-by: Bastien Curutchet (Schneider Electric) <bastien.curutchet@bootlin.com>
Link: https://patch.msgid.link/20260105-ksz-rework-v1-9-a68df7f57375@bootlin.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/dsa/microchip/ksz_ptp.c