mirror_ubuntu-kernels/drivers/net/dsa/microchip
Christian Eggers bb01ad3057 net: dsa: microchip: ptp: manipulating absolute time using ptp hw clock
This patch is used for reconstructing the absolute time from the 32bit
hardware time stamping value. The do_aux ioctl is used for reading the
ptp hardware clock and store it to global variable.
The timestamped value in tail tag during rx and register during tx are
32 bit value (2 bit seconds and 30 bit nanoseconds). The time taken to
read entire ptp clock will be time consuming. In order to speed up, the
software clock is maintained. This clock time will be added to 32 bit
timestamp to get the absolute time stamp.

Signed-off-by: Christian Eggers <ceggers@arri.de>
Co-developed-by: Arun Ramadoss <arun.ramadoss@microchip.com>
Signed-off-by: Arun Ramadoss <arun.ramadoss@microchip.com>
Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2023-01-13 08:40:40 +00:00
..
Kconfig net: dsa: microchip: ptp: add the posix clock support 2023-01-13 08:40:40 +00:00
ksz8.h net: dsa: microchip: ksz8: add MTU configuration support 2022-12-07 11:57:58 +01:00
ksz8795_reg.h net: dsa: microchip: ksz8: add MTU configuration support 2022-12-07 11:57:58 +01:00
ksz8795.c net: dsa: microchip: ksz8: move all DSA configurations to one location 2022-12-07 11:57:58 +01:00
ksz8863_smi.c net: dsa: microchip: add dev_err_probe in probe functions 2022-11-09 13:06:01 +00:00
ksz9477_i2c.c net: dsa: microchip: ksz9477: Convert to i2c's .probe_new() 2022-11-23 12:50:06 -08:00
ksz9477_reg.h net: dsa: microchip: move max mtu to one location 2022-12-07 11:57:58 +01:00
ksz9477.c net: dsa: microchip: enable MTU normalization for KSZ8795 and KSZ9477 compatible switches 2022-12-07 11:57:58 +01:00
ksz9477.h net: dsa: microchip: move max mtu to one location 2022-12-07 11:57:58 +01:00
ksz_common.c net: dsa: microchip: ptp: Initial hardware time stamping support 2023-01-13 08:40:40 +00:00
ksz_common.h net: dsa: microchip: ptp: add 4 bytes in tail tag when ptp enabled 2023-01-13 08:40:40 +00:00
ksz_ptp_reg.h net: dsa: microchip: ptp: add the posix clock support 2023-01-13 08:40:40 +00:00
ksz_ptp.c net: dsa: microchip: ptp: manipulating absolute time using ptp hw clock 2023-01-13 08:40:40 +00:00
ksz_ptp.h net: dsa: microchip: ptp: manipulating absolute time using ptp hw clock 2023-01-13 08:40:40 +00:00
ksz_spi.c net: dsa: microchip: add dev_err_probe in probe functions 2022-11-09 13:06:01 +00:00
lan937x_main.c net: dsa: microchip: add error checking for ksz_pwrite 2022-11-09 13:06:01 +00:00
lan937x_reg.h net: dsa: microchip: add the support for set_ageing_time 2022-09-16 21:51:47 +01:00
lan937x.h net: dsa: microchip: add the support for set_ageing_time 2022-09-16 21:51:47 +01:00
Makefile net: dsa: microchip: ptp: add the posix clock support 2023-01-13 08:40:40 +00:00