[PATCH 1/2] kernel: usb: Autoprobe g_serial

Chuanhong Guo gch981213 at gmail.com
Sun Nov 19 05:26:50 PST 2023


Hi!

On Sun, Nov 12, 2023 at 6:04 AM Linus Walleij <linus.walleij at linaro.org> wrote:
>
> For devices using USB gadget serial we need to probe the modules
> usb_f_acm and g_serial in order, then the available UDC (USB device
> controller) interface will be hooked up to a serial port as
> /dev/ttyGS0. (On the host side this appears as /dev/ttyACM0
> when plugging in the USB cable.)
>
> I don't quite understand why this wasn't done before for the
> module explicitly called kmod-usb-serial.

The g_*.ko gadget modules conflict with each other. I think
it isn't loaded by default to prevent that when users decided
to install multiple of them.

I made an init script to setup USB gadget using the "modern"
configfs approach:
https://github.com/openwrt/openwrt/pull/14005
Maybe you can make use of this one instead? :)

-- 
Regards,
Chuanhong Guo



More information about the openwrt-devel mailing list