g_ffs provides a set of standard module parameters which
allows to set device indentity. As usb host tests expects
a predefined identity of test device let's use those module
params to set it.
Change-Id: I32782d61f756e6cd4fb13cbcccc2b5ef3bd0a91e
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
}
/* If you need to setup vid, pid or other data use module parameters */
- ret = load_module("g_ffs", "idVendor=0x1D6B idProduct=0x104");
+ ret = load_module("g_ffs",
+ "idVendor=0x1D6B"
+ " idProduct=0x104"
+ " bcdDevice=0x0001"
+ " iManufacturer=\"Foo Inc.\""
+ " iProduct=\"Bar Gadget\""
+ " iSerialNumber=\"0123456789\"");
if (ret < 0) {
using_legacy = 0;
_I("Legacy gadget g_ffs not found. Using ConfigFS.");