Skip to contentSkip to conversation

The "bus for gadgets" is preventing the use of multiple UDCs

DISCUSSION Heikki Krogerus 3 participants 4 messages Jan 4, 2023 – Jan 5, 2023 USB

lore
Share & tools
lore
#0 lore raw

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/UDC

But 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
#1 lore raw
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/UDC

But 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

#2 lore raw
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/UDC

But 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

#3 lore raw
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/UDC

But 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