[PATCHv3 0/3] OS descriptors in FunctionFS

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

 



OS String descriptor can be provided by using FunctionFS with configfs.
In order for FunctionFS to support Feature Descriptors, corresponding
Extended Compatibility and Extended Properties descriptors must be
passed to ep0. This series adds parsing the said descriptors and
setting up appropriate internal data structures.

Rebased onto Felipe's testing/next.

This is meant for 3.17.

v1..v2:
- changed confused naming of two existing functions
- OS descriptors proper implementation with fixes suggested by Michal;
thanks, Michal!

v2..v3:
- introduced helper functions for accessing particular locations within
a buffer holding extended properties
- fixes after Michal's second review; thanks Michal!

Andrzej Pietrasiewicz (3):
  usb: gadget: f_fs: rename descriptor parsing functions
  usb: gadget: u_os_desc: helper functions for accessing ext prop buffer
  usb: gadget: f_fs: OS descriptors support

 drivers/usb/gadget/function/f_fs.c  | 347 ++++++++++++++++++++++++++++++++++--
 drivers/usb/gadget/function/u_fs.h  |   7 +
 drivers/usb/gadget/u_os_desc.h      |  59 ++++--
 include/uapi/linux/usb/functionfs.h |  81 ++++++++-
 4 files changed, 468 insertions(+), 26 deletions(-)

-- 
1.8.3.2

--
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