History

Merge tag 'usb-for-v5.3-part2' of git://git.kernel.org/pub/scm/linux/kernel/git/balbi/usb into usb-next

Felipe writes: USB: more changes for v5.3 merge window Turns out a few more important changes came about. We have the new Cadence DRD Driver being added here and that's the biggest, most important part. Together with that we have suport for new imx7ulp phy. Support for TigerLake Devices on dwc3. Also a couple important fixes which weren't completed in time for the -rc cycle. Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com> * tag 'usb-for-v5.3-part2' of git://git.kernel.org/pub/scm/linux/kernel/git/balbi/usb: usb: renesas_usbhs: add a workaround for a race condition of workqueue usb: gadget: udc: renesas_usb3: remove redundant assignment to ret usb: dwc2: use a longer AHB idle timeout in dwc2_core_reset() USB: gadget: function: fix issue Unneeded variable: "value" usb: phy: phy-mxs-usb: add imx7ulp support doc: dt-binding: mxs-usb-phy: add compatible for 7ulp usb:cdns3 Fix for stuck packets in on-chip OUT buffer. usb:cdns3 Add Cadence USB3 DRD Driver usb:gadget Simplify usb_decode_get_set_descriptor function. usb:gadget Patch simplify usb_decode_set_clear_feature function. usb:gadget Separated decoding functions from dwc3 driver. dt-bindings: add binding for USBSS-DRD controller. usb: dwc3: pci: add support for TigerLake Devices

Greg Kroah-Hartman committed 7 years ago

Commit 51785bd2 parents 7f61abc b23578332 files · +7693 −271Browse files

Showing the changes to include/linux (1 of 32 files). Show all

Unified · Split

include/linux/usb/gadget.h+26−0
@@ -889,4 +889,30 @@ extern void usb_ep_autoconfig_release(struct usb_ep *); · 888 unmodified lines
889889
890890 extern void usb_ep_autoconfig_reset(struct usb_gadget *);
891891
892+/*-------------------------------------------------------------------------*/
893+/**
894+ * usb_decode_ctrl - Returns human readable representation of control request.
895+ * @str: buffer to return a human-readable representation of control request.
896+ * This buffer should have about 200 bytes.
897+ * @size: size of str buffer.
898+ * @bRequestType: matches the USB bmRequestType field
899+ * @bRequest: matches the USB bRequest field
900+ * @wValue: matches the USB wValue field (CPU byte order)
901+ * @wIndex: matches the USB wIndex field (CPU byte order)
902+ * @wLength: matches the USB wLength field (CPU byte order)
903+ *
904+ * Function returns decoded, formatted and human-readable description of
905+ * control request packet.
906+ *
907+ * The usage scenario for this is for tracepoints, so function as a return
908+ * use the same value as in parameters. This approach allows to use this
909+ * function in TP_printk
910+ *
911+ * Important: wValue, wIndex, wLength parameters before invoking this function
912+ * should be processed by le16_to_cpu macro.
913+ */
914+extern const char *usb_decode_ctrl(char *str, size_t size, __u8 bRequestType,
915+ __u8 bRequest, __u16 wValue, __u16 wIndex,
916+ __u16 wLength);
917+
892918 #endif /* __LINUX_USB_GADGET_H */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t