From faa55bd44b2a86b75fcd6c2eecab2cdec7613ffc Mon Sep 17 00:00:00 2001 From: Yangbo Lu Date: Tue, 29 Apr 2025 09:49:39 +0800 Subject: [PATCH] drivers: ptp_clock_nxp_enet: avoid configuring IRQ handlers again Converted ENET_Ptp1588Configure to ENET_Ptp1588StartTimer during reset. This is to avoid configuring IRQ handlers again in hal driver with ENET_Ptp1588Configure. Signed-off-by: Yangbo Lu --- drivers/ptp_clock/ptp_clock_nxp_enet.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/ptp_clock/ptp_clock_nxp_enet.c b/drivers/ptp_clock/ptp_clock_nxp_enet.c index 5ec6a4c9498..5165873fca9 100644 --- a/drivers/ptp_clock/ptp_clock_nxp_enet.c +++ b/drivers/ptp_clock/ptp_clock_nxp_enet.c @@ -179,8 +179,7 @@ void nxp_enet_ptp_clock_callback(const struct device *dev, ENET_Ptp1588SetChannelMode(data->base, kENET_PtpTimerChannel3, kENET_PtpChannelPulseHighonCompare, true); - ENET_Ptp1588Configure(data->base, data->enet_handle, - &ptp_config); + ENET_Ptp1588StartTimer(data->base, ptp_config.ptp1588ClockSrc_Hz); } }