RE: [PATCH net-next v12 07/15] net: ethernet: oa_tc6: Support for hardware timestamp

From: Selvamani Rajagopal

Date: Mon Nov 30 2026 - 02:08:28 EST



> -----Original Message-----
> From: netdev-bot+sashiko@xxxxxxxxxx <netdev-bot+sashiko@xxxxxxxxxx>
> Sent: Saturday, November 28, 2026 4:37 PM
> To: Selvamani Rajagopal <Selvamani.Rajagopal@xxxxxxxxxx>
> Subject: Re: [PATCH net-next v12 07/15] net: ethernet: oa_tc6: Support for hardware
> timestamp
>
>
> [Severity: Medium]
> Can a frame that was sitting in waiting_tx_skb when the interface
> went down still claim a capture register here?


Yes. Dropping any queued frame on interface down will prevent new
timestamp requests after the cleanup. Will fix it.

>
> On dev_close, ndo_stop() runs before NETDEV_DOWN. The vendor stop
> callbacks stop the TX queue, stop the PHY and clear the MAC TXEN.
> Nothing drops tc6->waiting_tx_skb.
>
>
> [Severity: Medium]
> What happens if the capture event for a claimed register never arrives?


So far, there is no evidence. If capture event didn't come, we should suspect
Everything, even the hardware. We prefer not to add recovery until we see some
evidence.

>
>
> [Severity: Medium]
> What state is left behind if this CONFIG0 write fails? By then
> INT_MASK0 has already been written, but tc6->ts_cfg still holds the
> old config.


If SPI read/write fails, control plane code is least of our worries. It would
affect traffic heavily. We can't come up with robust recovery when underlying
read/write fails either consistently or randomly. So, better not to address this.

>
>
> --
> Sashiko AI review · https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261124-s2500-
> mac-phy-support-v12-0-3575855d99f9%40onsemi.com
> <https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261124-s2500-mac-phy-support-v12-0-3575855d99f9%40onsemi.com
> =netdev-ai.bots.linux.dev>


pw-bot: cr