On Tue, Feb 06, 2018 at 11:31:40PM +0100, Alberto Esposito wrote: > Hello everybody! > > I'm trying to connect to a serial interface created with usb gadget > driver via WebUSB. > > I was successful in setting up the serial interface, but WebUSB > refuses to work because it can't claim the interface, since it's busy. > > The culprit is the cdc-acm driver, which correctly see the interface > and claims it first. > > How can I prevent the cdc-acm driver from claiming the interface, > without modifications to the client? Sorry, you can't. > Can I change the interface descriptors somehow, so that cdc-acm > doesn't recognize the device anymore? You could, but then you would not be a cdc-acm device, right? > Or maybe I have to create a new device type in the usb gadget driver, > to cover this specific case? Why not just disconnect the driver from the device when you want to grab it instead? You can do that in userspace just fine, and I think libusb even has a function for it. I thought that was what webusb did already, odd that it's not working for you. Have you tried talking to the webusb developers for the browser you are using? thanks, greg k-h -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html