librem5: use USB gadget configfs like all other devices
At the moment, the Librem 5 uses the g_multi
(Multifunction Composite Gadget module). The g_*
modules are legacy, hardcoded configurations in the kernel. They have fixed USB vendor/device IDs, device strings and more which means the device will show up as Multifunction Composite Gadget
instead of Librem 5
.
The USB Gadget configfs allows configuring an arbitrary number of USB gadgets through the file system. We use this for all other mainline devices, and should use the same for the Librem 5 (IMO).
Actually it should work out of the box once the necessary kernel options are enabled.
Edited by Minecrell