On 14.04.22 12:58, Lukas Wunner wrote: > On Wed, Apr 13, 2022 at 08:59:48PM +0200, Oliver Neukum wrote: >> On 13.04.22 16:16, Lukas Wunner wrote: >> I see two options. >> 1. A dedicated flag in usbnet (then please with the correct smp barriers) >> 2. You introduce an API to usb core to query this. > I'd definitely prefer option 2 as I'd hate to duplicate functionality. Extremely valid point > What do you have in mind? A simple accessor to return intf->condition > or something like usb_interface_unbinding() which returns a bool? That is a question we also need wider and especially Greg's input. We definitely need to make sure that the interface is not already rebound, so somebody needs to look at locking. Regards Oliver