Re: gadgetfs USB2.0 Chapter 9 Tests: Test after "Addressed State" fails

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello!
I have a question regarding the user space testapplication for FunctionFS
(http://stuff.mit.edu/afs/sipb/contrib/linux/tools/usb/ffs-test.c).
The struct "descriptors" that contains the header and the fs and hs descriptors
has only interface and endpoint descriptors. Those are written to "ep0".
I understand that device and config descriptor are added by the FunctionFS
module?
I tried adding them to the "descriptor" struct and increasing fs_count and
hs_count in the header filed by 2, but the write() on "ep0" then returns -1:
"ffs-test: crit: ep0: write: descriptors: (-22) Invalid argument".

Is it possible to pass my own device and config descriptor to the module or
do I have to patch the module?
Thanks!
--
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




[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux