* Krzysztof Opasiak <k.opasiak@xxxxxxxxxxx> [140923 07:48]: > > From: Tony Lindgren [mailto:tony@xxxxxxxxxxx] > > > > Is there an example somewhere that completely clears any configured > > gadget from /sys/config/? > > > > Yes, please check my master branch. > > There is a set of functions: usbg_rm_*() which can be used to remove > selected entity. The most convenient usage for gadget is to use > usbg_rm_gadget() with USBG_RM_RECURSE flag which works quite like rm -rf > *. > > There is also an example called gadget-vid-pid-remove which removes all > gadgets based on vid and pid. Currently this example is hardcoded to > remove gadget with vid 0x1d6b and pid 0x0104 (those are used along > almost all examples) but you may easily edit it to take vid pid or > gadget name from command line. > > Moreover there is also a command line tool called gt [1] to manipulate > usb gadgets but it's in very initial state (only command line parsing is > ready). This tool would do the thing in a future but currently this > functionality is not implemented. OK great thanks. Tony -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html