Re: [PATCH net] qca_spi: Avoid unsequenced accesses to jiffies in qcaspi_netdev_tx_timeout()

From: Nathan Chancellor

Date: Sun Nov 15 2026 - 22:44:34 EST


On Sun, Nov 15, 2026 at 03:08:23PM +0100, Stefan Wahren wrote:
> In general agree, but imo the jiffies itself were not helpful to debug a
> transmit timeout in the first place, so I hope we can avoid adding a local
> variable here.
>
> How about this:
>
> netdev_info(qca->net_dev, "Transmit timeout, latency %ld\n",
>             jiffies -  dev_trans_start(dev));
>
> The timestamp from netdev_info() is much more helpful.

Sure, that is totally fine with me. I will send a v2 with that shortly.

--
Cheers,
Nathan