arch/arm/stm32: fix the comment of the RX timestamp conversion.

The comment of stm32_eth_ptp_convert_rxtime() said that it converts to
CLOCK_REALTIME. Since the timestamp is delivered as the value of the
PTP counter of the MAC, which is the time base of /dev/ptp0, say
that.

Signed-off-by: Daniel P. Carvalho <danieloak@gmail.com>
Assisted-by: Claude:claude-sonnet-5
This commit is contained in:
Daniel P. Carvalho 2026-09-20 13:58:13 -03:00 • committed by Alan C. Assis
parent f7e3b0fa89
commit 392107954b

View file

@ -3987,7 +3987,10 @@ static inline void ptp_to_timespec(uint64_t timestamp, struct timespec *ts)
ts->tv_nsec = ((uint32_t)timestamp * (uint64_t)NSEC_PER_SEC) >> 32;
}
/* Convert RX timestamp to CLOCK_REALTIME */
/* Convert the RX timestamp of the MAC to a timespec. It is the value of the
* PTP counter of the MAC, which is the time base of /dev/ptp0, and not a
* value of CLOCK_REALTIME.
*/
#ifdef CONFIG_STM32_ETH_TIMESTAMP_RX
static void stm32_eth_ptp_convert_rxtime(struct stm32_ethmac_s *priv)
{