On Thu, Feb 21 2013, John Stultz wrote:In many cases, documentation around composite drivers suggestIf the driver is not compiled as a module, setting those variables won't
setting the idVendor and other module params as follows:
$ insmod g_ffs.ko idVendor=<ID> iSerialNumber=<string>
However, this won't work if the driver is not compiled in as a
module, as the module_param permissions are S_IRUGO.
Thus this patch changes the composite module_param permissions
to S_IRUGO|S_IWUSR to allow the module_params to be set at
runtime via /sys/modules/<driver>/parameters/
work anyway. Or am I missing something?
You can, however, pass them on Linux command line (with some prefixThat's right. Yea. g_ffs.idVendor and g_ffs.idProduct works for me. Thanks for the reminder!
which I can never remember).
If you want to configure things at run-time without having to compile
stuff as modules, you need to wait for the configfs based gadgets.