[PATCH 0/2] Handling per-device setup requests

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

 



There are some hosts (e.g. with a popular, proprietary operating system),
which issue setup requests directed at a device even though they mean
setup requests directed at a particular interface (usb function).

This series adds optional for_device attribute in struct usb_configuration.
If the attribute is non-NULL, the USB function it points to is used as the
last fallback when searching for handlers in composite_setup(). If the
attribute is NULL, then the composite_setup() behaviour remains unchanged.

The second patch adds a method to get/set the function to be used
as for_device in a configfs-composed gadget.

Since Felipe closed his tree for 3.18 this is meant for 3.19.

Andrzej Pietrasiewicz (2):
  usb: gadget: composite: optional handling of per-device requests
  usb: gadget: configfs: for_device attribute in configuration directory

 drivers/usb/gadget/composite.c | 16 +++++++++-----
 drivers/usb/gadget/configfs.c  | 50 +++++++++++++++++++++++++++++++++++++++++-
 include/linux/usb/composite.h  |  1 +
 3 files changed, 60 insertions(+), 7 deletions(-)

-- 
1.9.1

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