]> asedeno.scripts.mit.edu Git - linux.git/commit
usb: common: Separated decoding functions from dwc3 driver.
authorPawel Laszczak <pawell@cadence.com>
Mon, 26 Aug 2019 11:19:27 +0000 (12:19 +0100)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Thu, 29 Aug 2019 07:52:27 +0000 (10:52 +0300)
commit91f255a26bce80d27b5f3dcbb0333b852b5dbe2c
tree8794a7e71ac325aa299bb3ff1167c4cd8e5bbbf3
parenta7a3a6a941cf53d49c5f40529b669304d328caf4
usb: common: Separated decoding functions from dwc3 driver.

Patch moves some decoding functions from driver/usb/dwc3/debug.h driver
to driver/usb/common/debug.c file. These moved functions include:
    dwc3_decode_get_status
    dwc3_decode_set_clear_feature
    dwc3_decode_set_address
    dwc3_decode_get_set_descriptor
    dwc3_decode_get_configuration
    dwc3_decode_set_configuration
    dwc3_decode_get_intf
    dwc3_decode_set_intf
    dwc3_decode_synch_frame
    dwc3_decode_set_sel
    dwc3_decode_set_isoch_delay
    dwc3_decode_ctrl

These functions are used also in inroduced cdns3 driver.

All functions prefixes were changed from dwc3 to usb.
Also, function's parameters has been extended according to the name
of fields in standard SETUP packet.
Additionally, patch adds usb_decode_ctrl function to
include/linux/usb/ch9.h file.

Signed-off-by: Pawel Laszczak <pawell@cadence.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/common/Makefile
drivers/usb/common/debug.c [new file with mode: 0644]
drivers/usb/dwc3/debug.h
drivers/usb/dwc3/trace.h
include/linux/usb/ch9.h