* [PATCH net-next] ptp: netc: only enable periodic pulse event interrupts for PPS
@ 2025-09-15 8:25 Wei Fang
2025-09-17 22:30 ` patchwork-bot+netdevbpf
0 siblings, 1 reply; 2+ messages in thread
From: Wei Fang @ 2025-09-15 8:25 UTC (permalink / raw)
To: xiaoning.wang, richardcochran, andrew+netdev, davem, edumazet,
kuba, pabeni, Frank.Li
Cc: imx, netdev, linux-kernel
The periodic pulse event interrupts are used to register the PPS events
into the system, so it is only applicable to PTP_CLK_REQ_PPS request.
However, these interrupts are mistakenly enabled in PTP_CLK_REQ_PEROUT
request, so fix this error.
Fixes: 671e266835b8 ("ptp: netc: add periodic pulse output support")
Signed-off-by: Wei Fang <wei.fang@nxp.com>
---
This issue currently only exists in net-next tree, so the target tree
is net-next.
---
---
drivers/ptp/ptp_netc.c | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/drivers/ptp/ptp_netc.c b/drivers/ptp/ptp_netc.c
index 8c5fea1f43fa..4fefb5ef3685 100644
--- a/drivers/ptp/ptp_netc.c
+++ b/drivers/ptp/ptp_netc.c
@@ -304,13 +304,14 @@ static void netc_timer_enable_periodic_pulse(struct netc_timer *priv,
fiper_ctrl |= FIPER_CTRL_SET_PW(channel, fiper_pw);
fiper_ctrl |= alarm_id ? FIPER_CTRL_FS_ALARM(channel) : 0;
- priv->tmr_emask |= TMR_TEVNET_PPEN(channel) |
- TMR_TEVENT_ALMEN(alarm_id);
+ priv->tmr_emask |= TMR_TEVENT_ALMEN(alarm_id);
- if (pp->type == NETC_PP_PPS)
+ if (pp->type == NETC_PP_PPS) {
+ priv->tmr_emask |= TMR_TEVNET_PPEN(channel);
netc_timer_set_pps_alarm(priv, channel, integral_period);
- else
+ } else {
netc_timer_set_perout_alarm(priv, channel, integral_period);
+ }
netc_timer_wr(priv, NETC_TMR_TEMASK, priv->tmr_emask);
netc_timer_wr(priv, NETC_TMR_FIPER(channel), fiper);
--
2.34.1
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH net-next] ptp: netc: only enable periodic pulse event interrupts for PPS
2025-09-15 8:25 [PATCH net-next] ptp: netc: only enable periodic pulse event interrupts for PPS Wei Fang
@ 2025-09-17 22:30 ` patchwork-bot+netdevbpf
0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+netdevbpf @ 2025-09-17 22:30 UTC (permalink / raw)
To: Wei Fang
Cc: xiaoning.wang, richardcochran, andrew+netdev, davem, edumazet,
kuba, pabeni, Frank.Li, imx, netdev, linux-kernel
Hello:
This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@kernel.org>:
On Mon, 15 Sep 2025 16:25:28 +0800 you wrote:
> The periodic pulse event interrupts are used to register the PPS events
> into the system, so it is only applicable to PTP_CLK_REQ_PPS request.
> However, these interrupts are mistakenly enabled in PTP_CLK_REQ_PEROUT
> request, so fix this error.
>
> Fixes: 671e266835b8 ("ptp: netc: add periodic pulse output support")
> Signed-off-by: Wei Fang <wei.fang@nxp.com>
>
> [...]
Here is the summary with links:
- [net-next] ptp: netc: only enable periodic pulse event interrupts for PPS
https://git.kernel.org/netdev/net-next/c/2479cba20946
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-09-17 22:30 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-15 8:25 [PATCH net-next] ptp: netc: only enable periodic pulse event interrupts for PPS Wei Fang
2025-09-17 22:30 ` patchwork-bot+netdevbpf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox