Expand description
MTK (MediaTek) USB gadget implementation using ConfigFS.
This module provides USB mass storage support for MTK-based Kobo devices
(platform mt8113t-ntx). It uses ConfigFS to configure the USB gadget
instead of shell commands.
ยงConfigFS write convention
All values are written with a trailing \n to match the behaviour of the
echo shell command used in the Linux kernel ConfigFS gadget documentation
examples. The kernel docs do not explicitly require a newline, but omitting
it caused the UDC bind to silently fail on the Libra Colour (MTK platform)
in practice.
Structsยง
- MtkUsb
Manager - USB mass storage manager for MTK platforms.
Constantsยง
- CONFIGFS_
GADGET_ ๐DIR - Base path for ConfigFS USB gadget configuration.
- UDC_DIR ๐
- Path to the UDC directory for auto-discovery.
Functionsยง
- discover_
udc ๐ - Discovers the USB Device Controller (UDC) name.