phy: mscc: Fix parsing of unicast frames
authorHoratiu Vultur <horatiu.vultur@microchip.com>
Sat, 26 Jul 2025 14:03:07 +0000 (16:03 +0200)
committerJakub Kicinski <kuba@kernel.org>
Thu, 31 Jul 2025 01:06:36 +0000 (18:06 -0700)
commit6fb5ff63b35b7e849cc8510957f25753f87f63d2
tree002498ed70d5c72e43894276f069bad289d3a1c4
parent2da4def0f487f24bbb0cece3bb2bcdcb918a0b72
phy: mscc: Fix parsing of unicast frames

According to the 1588 standard, it is possible to use both unicast and
multicast frames to send the PTP information. It was noticed that if the
frames were unicast they were not processed by the analyzer meaning that
they were not timestamped. Therefore fix this to match also these
unicast frames.

Fixes: ab2bf9339357 ("net: phy: mscc: 1588 block initialization")
Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://patch.msgid.link/20250726140307.3039694-1-horatiu.vultur@microchip.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/phy/mscc/mscc_ptp.c
drivers/net/phy/mscc/mscc_ptp.h