The "bus for gadgets" is preventing the use of multiple UDCs
Hi,
Before the introduction of this bus it was possible to use configfs with multiple device controllers:
echo "dwc3.1.auto" > usb_gadget/g1/UDC
echo "dwc3.2.auto" > usb_gadget/g2/UDCBut now only one UDC can be assigned. When I try to assign the second UDC for g2, I get this error:
Error: Driver 'configfs-gadget' is already registered, aborting... UDC core: g2: driver registration failed: -16
thanks,
Signature · 1 line
heikki
Quoted 5 lines · Heikki Krogerus
Hi,
Before the introduction of this bus it was possible to use configfs with multiple device controllers:
Quoted 8 lines
echo "dwc3.1.auto" > usb_gadget/g1/UDC echo "dwc3.2.auto" > usb_gadget/g2/UDCBut now only one UDC can be assigned. When I try to assign the second UDC for g2, I get this error:
Error: Driver 'configfs-gadget' is already registered, aborting... UDC core: g2: driver registration failed: -16
Two separate patches have been submitted to fix this. See:
https://lore.kernel.org/linux-usb/[email protected]/
https://lore.kernel.org/linux-usb/[email protected]/
So far, neither of them has been merged.
Alan Stern
Quoted 15 lines · Alan Stern
Quoted 5 lines · Heikki Krogerus
Hi,
Before the introduction of this bus it was possible to use configfs with multiple device controllers:
Quoted 8 lines
echo "dwc3.1.auto" > usb_gadget/g1/UDC echo "dwc3.2.auto" > usb_gadget/g2/UDCBut now only one UDC can be assigned. When I try to assign the second UDC for g2, I get this error:
Error: Driver 'configfs-gadget' is already registered, aborting... UDC core: g2: driver registration failed: -16
Quoted 6 lines
Two separate patches have been submitted to fix this. See:
https://lore.kernel.org/linux-usb/[email protected]/
https://lore.kernel.org/linux-usb/[email protected]/So far, neither of them has been merged.
Yes, I'm testing the patch v3 and will be sent out soon.
Chanh Ng
Quoted 16 lines · Chanh Nguyen
Quoted 15 lines · Alan Stern
Quoted 13 lines · Heikki Krogerus
Hi,
Before the introduction of this bus it was possible to use configfs with multiple device controllers:
echo "dwc3.1.auto" > usb_gadget/g1/UDC echo "dwc3.2.auto" > usb_gadget/g2/UDCBut now only one UDC can be assigned. When I try to assign the second UDC for g2, I get this error:
Error: Driver 'configfs-gadget' is already registered, aborting... UDC core: g2: driver registration failed: -16
Quoted 8 lines
Quoted 6 lines
Two separate patches have been submitted to fix this. See:
https://lore.kernel.org/linux-usb/[email protected]/
https://lore.kernel.org/linux-usb/[email protected]/So far, neither of them has been merged.
Yes, I'm testing the patch v3 and will be sent out soon.
Okay, great! Thanks guys!
Signature · 1 line
heikki