Re: [PATCH net v7 4/6] net: wwan: t7xx: do not exit the TX push kthread on resume failure
From: netdev-bot+sashiko
Date: Mon Nov 23 2026 - 21:30:04 EST
Thank you for your contribution! Sashiko AI review found more severe
issue(s) in other patches of this series. This mail is only an FYI, in case
you want to address the nit picks below when you respin.
Low priority / nit picks for your consideration:
- [Low] net: wwan: t7xx: wrong Fixes tag for
t7xx_dpmaif_tx_hw_push_thread() exit
--
> diff --git a/drivers/net/wwan/t7xx/t7xx_hif_dpmaif_tx.c b/drivers/net/wwan/t7xx/t7xx_hif_dpmaif_tx.c
> --- a/drivers/net/wwan/t7xx/t7xx_hif_dpmaif_tx.c
> +++ b/drivers/net/wwan/t7xx/t7xx_hif_dpmaif_tx.c
> @@ -468,8 +469,19 @@ static int t7xx_dpmaif_tx_hw_push_thread(void *arg)
> ret = pm_runtime_resume(dpmaif_ctrl->dev);
> if (ret < 0 && ret != -EACCES) {
> pm_runtime_put_noidle(dpmaif_ctrl->dev);
> - return ret;
> + /* Do not exit: t7xx_dpmaif_tx_thread_rel() kthread_stop()s
> + * this task. Retry until the resume works or we are stopped.
> + */
> + if (!resume_failed)
> + dev_err(dpmaif_ctrl->dev,
> + "Failed to resume for TX push: %d\n", ret);
> + resume_failed = true;
> + wait_event_interruptible_timeout(dpmaif_ctrl->tx_wq,
> + kthread_should_stop(),
> + HZ);
> + continue;
> }
> + resume_failed = false;
>
> /* A runtime suspended device was resumed above and had its queues
> * restarted, so a stopped queue here belongs to a system suspend
[Severity: Low]
The Fixes tag seems to point at the wrong commit. As far as I can
tell, 46e8f49ed7b3 ("net: wwan: t7xx: Introduce power management")
only added the system suspend/resume PM entity callbacks. It did not
touch t7xx_hif_dpmaif_tx.c at all.
The pm_runtime_resume() call in t7xx_dpmaif_tx_hw_push_thread() came
in with d10b3a695ba0 ("net: wwan: t7xx: Runtime PM"). So did the early
return when ret < 0 && ret != -EACCES. That return is what lets the
kthread exit and leaves dpmaif_ctrl->tx_thread pointing at a dead
task.
The tag drives stable backport selection, so it matters which trees
this lands in. Could you confirm with git blame and, if you agree,
change it to:
Fixes: d10b3a695ba0 ("net: wwan: t7xx: Runtime PM")
--
Sashiko AI review · https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261120015556.131547-1-tim770802%40gmail.com