Re: [PATCH net-next v6 4/4] net: phy: realtek: add hardware timestamping for RTL8127a
From: Nicolai Buchwitz
Date: Sat Dec 05 2026 - 06:07:30 EST
Hi Javen
On 4.12.2026 03:11, javen wrote:
[...]
+static int rtl8127a_ptp_hwtstamp_set(struct mii_timestamper *mii_ts,
+ struct kernel_hwtstamp_config *config,
+ struct netlink_ext_ack *extack)
[...]
+ /* The hardware is either on or off, only reprogram it on a change */
+ mutex_lock(&ptp->lock);
IMHO this needs the runtime PM check too. The MAC may be suspended, e.g. when ptp4l starts before the cable is plugged in.
[...]
Thanks,
Nicolai