Re: [PATCH] usb: hcd-pci: avoid double disable on surprise removal

From: Alan Stern

Date: Tue Oct 20 2026 - 15:55:35 EST


On Tue, Oct 20, 2026 at 03:52:28PM -0400, Alan Stern wrote:
> On Tue, Oct 20, 2026 at 05:05:39PM +0200, Konrad Dybcio wrote:
> > A PCI HCD can be surprise-removed after suspend_common() disables it
> > and before resume_common() re-enables it. Avoid a second call to
> > pci_disable_device() in the remove path when no enable reference
> > remains.
>
> Does the double disable actually cause any problems?

Also, is your patch any different from this one from two days ago?

https://lore.kernel.org/linux-usb/20261018164134.134106-1-cole@xxxxxxxxx/

Alan Stern