Commit 7c07553
USB: gadget: Add ID numbers to configfs-gadget driver names
It is unable to use configfs to attach more than one gadget. When
attaching the second gadget, it always fails and the kernel message
prints out:
Error: Driver 'configfs-gadget' is already registered, aborting...
UDC core: g1: driver registration failed: -16
This commit fixes the problem by using the gadget name as a suffix
to each configfs_gadget's driver name, thus making the names
distinct.
Fixes: fc274c1 ("USB: gadget: Add a new bus for gadgets")
Cc: stable <[email protected]>
Signed-off-by: Chanh Nguyen <[email protected]>
Reviewed-by: Andrzej Pietrasiewicz <[email protected]>
Tested-by: Heikki Krogerus <[email protected]>
Reviewed-by: Frank Li <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>1 parent 36f7847 commit 7c07553
1 file changed
+10
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
393 | 393 | | |
394 | 394 | | |
395 | 395 | | |
| 396 | + | |
396 | 397 | | |
397 | 398 | | |
398 | 399 | | |
| |||
1572 | 1573 | | |
1573 | 1574 | | |
1574 | 1575 | | |
1575 | | - | |
1576 | 1576 | | |
1577 | 1577 | | |
1578 | 1578 | | |
| |||
1623 | 1623 | | |
1624 | 1624 | | |
1625 | 1625 | | |
| 1626 | + | |
| 1627 | + | |
| 1628 | + | |
| 1629 | + | |
| 1630 | + | |
1626 | 1631 | | |
1627 | 1632 | | |
1628 | 1633 | | |
1629 | 1634 | | |
1630 | | - | |
| 1635 | + | |
1631 | 1636 | | |
1632 | 1637 | | |
| 1638 | + | |
| 1639 | + | |
| 1640 | + | |
1633 | 1641 | | |
1634 | 1642 | | |
1635 | 1643 | | |
| |||
0 commit comments