public inbox for linux-pm@vger.kernel.org
 help / color / mirror / Atom feed
* USB4 thunderbolt device suspend/resume problems. Unplug during suspend.
@ 2025-02-17 20:44 James Dutton
  2025-03-13 20:45 ` Lukas Wunner
  0 siblings, 1 reply; 4+ messages in thread
From: James Dutton @ 2025-02-17 20:44 UTC (permalink / raw)
  To: Linux PM mailing list

Hi,

I have a thunderbolt / usb4 10Gbps ethernet adapter.
While plugged in, it appears to handle suspend and resume OK.
The problem is the following:
1) Thunderbolt device plugged in. Device appears in "lscpi".
2) Suspend Laptop
3) Unplug the device while it is asleep.
4) Resume the Laptop
5) Laptop locks up, no stack trace, nothing output.

Further diagnosis has found the following:
I locks up in:
drivers/base/power/main.c:
static void device_resume(struct device *dev, pm_message_t state, bool async)
at the line that says:
"device_lock(dev);"
where "dev" is the dev of the 10Gbps ethernet adapter.

I don't have any other usb4 / thunderbolt devices but I am thinking
that this might affect all usb4 / thunderbolt devices that appear in
lspci.
Essentially, it looks to the OS like a PCIe card is removed during suspend.

Does anyone have any hints of where in the code to look for a fix for this?

Kind Regards

James

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2025-04-25 16:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-17 20:44 USB4 thunderbolt device suspend/resume problems. Unplug during suspend James Dutton
2025-03-13 20:45 ` Lukas Wunner
2025-03-22 13:38   ` James Dutton
2025-04-25 16:22     ` Lukas Wunner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox