Netdev List
 help / color / mirror / Atom feed
From: Ahmad Byagowi <ahmadexp@gmail.com>
To: netdev@vger.kernel.org
Cc: andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@kernel.org,
	kuba@kernel.org, pabeni@redhat.com, richardcochran@gmail.com,
	rmk+kernel@armlinux.org.uk, vadim.fedorenko@linux.dev,
	vladimir.oltean@nxp.com
Subject: [PATCH net v7 0/2] ptp: serialize requests and stop active EXTTS
Date: Fri, 27 Nov 2026 11:20:35 -0800	[thread overview]
Message-ID: <20261127-timecard-core-v7-0-ahmadexp@gmail.com> (raw)

This series is limited to the PTP/PHC core. No driver change is needed
to apply it.

The sysfs enable callbacks take pincfg_mux, as the ioctl callbacks
already do. The core tracks successfully enabled timestamp channels
under that mutex, including requests without a pin assignment. On
unregister, after the user interfaces have been removed, it disables
tracked channels and preserves existing cleanup for assigned pins.
The tracked channel indices go directly to EXTTS requests, without
changing pin assignments. PPS is disabled last, before source release.

Changes since v6:
  - Use the commit establishing the enable callback locking contract
    for the sysfs Fixes tag. Clarify unchanged error handling.
  - Replace the blanket disable loop with tracked channel cleanup.
    Do not call into drivers for idle, unassigned channels.
  - Keep the existing OCP detach and shared-PPS logic untouched.
  - Align the author name and coalesce the commit trailers.

Validation (local fixtures, not included in the patches): strict PTP
object builds on x86_64 and i386, allmodconfig and allyesconfig.
Source-derived tests model teardown, last-subscriber IRQ draining,
idle, failed and already-disabled requests, and unassigned channels.
The host fixture uses stubbed register and interrupt operations.
Nine local KUnit cases pass in QEMU with KASAN, lockdep and
DEBUG_ATOMIC_SLEEP, using real PTP unregister and sysfs callbacks
with a test clock.
No physical card or switch test was performed.

Coding-assistant support was used to review callback and teardown
paths, develop fixes and local test cases, and prepare changelogs.

v6: https://lore.kernel.org/r/20261126-timecard-core-v6-0-ahmadexp@gmail.com/
Review: https://lore.kernel.org/r/5d6416ea-d927-40ac-9424-dade40191373@linux.dev

Ahmad Byagowi (2):
  ptp: serialize sysfs enable requests with ioctl paths
  ptp: shut down enabled unassigned EXTTS channels on unregister

             reply	other threads:[~2026-11-27 19:20 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-27 19:20 Ahmad Byagowi [this message]
2026-11-27 19:20 ` [PATCH net v7 1/2] ptp: serialize sysfs enable requests with ioctl paths Ahmad Byagowi
2026-11-27 19:20 ` [PATCH net v7 2/2] ptp: shut down enabled unassigned EXTTS channels on unregister Ahmad Byagowi
2026-11-27 19:24 ` [PATCH net v7 0/2] ptp: serialize requests and stop active EXTTS netdev-bot+sinfo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261127-timecard-core-v7-0-ahmadexp@gmail.com \
    --to=ahmadexp@gmail.com \
    --cc=andrew+netdev@lunn.ch \
    --cc=davem@davemloft.net \
    --cc=edumazet@kernel.org \
    --cc=kuba@kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=richardcochran@gmail.com \
    --cc=rmk+kernel@armlinux.org.uk \
    --cc=vadim.fedorenko@linux.dev \
    --cc=vladimir.oltean@nxp.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox