Re: [PATCH RFC DNM 09/15] thunderbolt: nhi: Resume the domain if the NHI suspend op fails
From: Mika Westerberg
Date: Tue Dec 01 2026 - 02:45:13 EST
Hi,
On Tue, Nov 24, 2026 at 09:01:38PM +0100, Konrad Dybcio wrote:
> nhi_suspend_noirq() and nhi_runtime_suspend() suspend the domain first
> and then call the NHI specific suspend op. If that op fails, the error
> is returned with the domain still suspended. The control channel is
> stopped and the switches are marked as suspended, but the PM core
routers
Note once the domain sleep is started, there is no way going back until it
enters sleep.
> treats the device as active: it does not call resume_noirq for a device
> whose suspend_noirq failed, nor runtime_resume after a failed
> runtime_suspend. Nothing ever resumes the domain. Hotplug and config
> space accesses stop working, and the next runtime suspend attempt
> suspends an already suspended domain.
>
> This happens on Qualcomm USB4 routers whenever the router firmware does
> not acknowledge the sleep request in time. The op then returns -EBUSY
> with the router still up.
Is there a reason why the firmware does not ack it in time?