Re: [PATCH v2] xhci: Prevent deadlock when xhci adapter breaks during init

2019-09-23 Thread Mathias Nyman
On 23.9.2019 16.58, Bill Kuzeja wrote: The system can hit a deadlock if an xhci adapter breaks while initializing. The deadlock is between two threads: thread 1 is tearing down the adapter and is stuck in usb_unlocked_disable_lpm waiting to lock the hcd->handwidth_mutex. Thread 2 is holding this

[PATCH v2] xhci: Prevent deadlock when xhci adapter breaks during init

2019-09-23 Thread Bill Kuzeja
The system can hit a deadlock if an xhci adapter breaks while initializing. The deadlock is between two threads: thread 1 is tearing down the adapter and is stuck in usb_unlocked_disable_lpm waiting to lock the hcd->handwidth_mutex. Thread 2 is holding this mutex (while still trying to add a usb de