Thread View: linux.kernel.netdev
1 messages
1 total messages
Started by "Singh, Ayush1X"
Mon, 23 Nov 2026 07:03
RE: [PATCH net v2] igb: initialize PTP state before registering PHC
Author: "Singh, Ayush1X"
Date: Mon, 23 Nov 2026 07:03
Date: Mon, 23 Nov 2026 07:03
41 lines
22600 bytes
22600 bytes
> -----Original Message-----
> From: Runyu Xiao <runyu.xiao@seu.edu.cn>
> Sent: 17 September 2026 20:33
> To: Nguyen, Anthony L <anthony.l.nguyen@intel.com>
> Cc: alessio.bogani@elettra.eu; Kitszel, Przemyslaw <przemyslaw.kitszel@intel.com>; andrew+netdev@lunn.ch; davem@davemloft.net; edumazet@google.com; kuba@kernel.org; pabeni@redhat.com; richardcochran@gmail.com; horms@kernel.org; intel-wired-lan@lists.osuosl.org; netdev@vger.kernel.org; linux-kernel@vger.kernel.org; stable@vger.kernel.org; runyu.xiao@seu.edu.cn; jianhao.xu@seu.edu.cn
> Subject: [PATCH net v2] igb: initialize PTP state before registering PHC
>
> igb_ptp_init() currently initializes the PTP lock, work items, timestamp configuration, and timecounter after ptp_clock_register().
> The PHC is published by that call, so PTP callbacks and timestamp interrupts can run before those objects are ready.
>
> Initialize the complete PTP state before registering the PHC. Skip the setup when CONFIG_PTP_1588_CLOCK is disabled, since the PTP registration helper is then a no-op. If PHC registration fails, cancel the work items queued by igb_ptp_reset() or a timestamp interrupt before returning.
>
> Fixes: b888c510f7b3 ("igb: Avoid starting unnecessary workqueues")
> Cc: stable@vger.kernel.org
> Link: https://lore.kernel.org/netdev/20260830154912.2712900-1-runyu.xiao@seu.edu.cn/
> Assisted-by: LLM
> Signed-off-by: Runyu Xiao <runyu.xiao@seu.edu.cn>
>
> ---
> v2:
> - Restore all PTP state initialization before PHC registration.
> - Skip PTP setup when CONFIG_PTP_1588_CLOCK is disabled.
> - Cancel both PTP work items when PHC registration fails.
> ---
> drivers/net/ethernet/intel/igb/igb_ptp.c | 31 +++++++++++++++---------
> 1 file changed, 19 insertions(+), 12 deletions(-)
Tested-by: Singh, Ayush1X < ayush1x.singh@intel.com > (A Contingent worker at Intel)
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads