linux/drivers/net/phy/mscc
Horatiu Vultur bc1a59cff9 phy: mscc: Fix timestamping for vsc8584
There was a problem when we received frames and the frames were
timestamped. The driver is configured to store the nanosecond part of
the timestmap in the ptp reserved bits and it would take the second part
by reading the LTC. The problem is that when reading the LTC we are in
atomic context and to read the second part will go over mdio bus which
might sleep, so we get an error.
The fix consists in actually put all the frames in a queue and start the
aux work and in that work to read the LTC and then calculate the full
received time.

Fixes: 7d272e63e0 ("net: phy: mscc: timestamping and PHC support")
Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com>
Reviewed-by: Vadim Fedorenko <vadim.fedorenko@linux.dev>
Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Link: https://patch.msgid.link/20250818081029.1300780-1-horatiu.vultur@microchip.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2025-08-19 17:52:02 -07:00
..
Makefile
mscc_fc_buffer.h
mscc_mac.h
mscc_macsec.c net: phy: mscc: macsec: reject PN update requests 2023-10-10 10:30:31 +02:00
mscc_macsec.h net: phy: mscc: macsec: do not copy encryption keys 2022-11-18 09:17:42 +00:00
mscc_main.c phy: mscc: Fix timestamping for vsc8584 2025-08-19 17:52:02 -07:00
mscc_ptp.c phy: mscc: Fix timestamping for vsc8584 2025-08-19 17:52:02 -07:00
mscc_ptp.h phy: mscc: Fix parsing of unicast frames 2025-07-30 18:06:36 -07:00
mscc_serdes.c
mscc_serdes.h
mscc.h phy: mscc: Fix timestamping for vsc8584 2025-08-19 17:52:02 -07:00