State of gadget driver gadgetfs and functionfs

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

 



Hi,

we use gadget driver gadgetfs and implement a high-level protocol over USB.
Our hardware provides an USB WCID device [1]. But the recent state of gadgetfs
is unclear. There are a couple of problems and gadgetfs does not support USB3
SuperSpeed. I guess the driver will be removed from kernel. Is this correct?

I digged around and found functionfs which has similar functions. And I found
notes [2] that it is not to hard to convert a program from gadgetfs to
functionfs.

I looked at tools/usb/ffs-test.c implementation and in file f_fs.c.
If I correctly understand the driver, then the functionfs driver gets USB
descriptors only at the begining.
But I do not understand how I can add WCID specific descriptors. E.g.

- OS String Descriptor [3]
- ID Feature Descriptor [4]
- Extended Properties Feature Descriptor [5]

Can someone show me an example or give me a hint how I can add this descriptors
to functionfs driver?
Or is there an other solution(gadget) for this problem?

Regards,

Mario

[1] https://github.com/pbatard/libwdi/wiki/WCID-Devices
[2] http://www.spinics.net/lists/linux-usb/msg69097.html
[3] https://github.com/pbatard/libwdi/wiki/WCID-Devices#Microsoft_OS_String_Descriptor
    Table 1
[4] https://github.com/pbatard/libwdi/wiki/WCID-Devices#Microsoft_Compatible_ID_Feature_Descriptor
    Table 2
[5] https://github.com/pbatard/libwdi/wiki/WCID-Devices#Microsoft_Compatible_ID_Feature_Descriptor
    Table 4
--
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