summaryrefslogtreecommitdiff
path: root/drivers/usb/dwc3/debug.h
AgeCommit message (Collapse)Author
2016-03-22USB: dwc3: Add debug support for DWC3 driverVijayavardhan Vennapusa
Add support for DWC3 driver to dump requests in SW queue list, requests queued to USB HW and trb list as well. Also add support for logging endpoint events through debugfs. Enable logging of EP0 control events by default. Example: To capture 2 in endpoint events echo -n 4 > /sys/module/dwc3/parameters/ep_addr_txdbg_mask To capture 3 out endpoint events echo -n 8 > /sys/module/dwc3/parameters/ep_addr_rxdbg_mask To print debug log events on endpoints cat /sys/kernel/debug/dwc3/events To dump requests in SW queue list for 6 out endpoint echo 6 0 > /sys/kernel/debug/dwc3/requests cat /sys/kernel/debug/dwc3/requests To dump requests queued to USB HW for 8 in endpoint echo 8 1 > /sys/kernel/debug/dwc3/queued_reqs cat /sys/kernel/debug/dwc3/queued_reqs To dump TRBs for 9 in endpoint echo 9 1 > /sys/kernel/debug/dwc3/trbs cat /sys/kernel/debug/dwc3/trbs Change-Id: I84e963b8299a1af76de9a35a6ea46ec34b9fe79e Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org> Signed-off-by: Jack Pham <jackp@codeaurora.org>
2014-09-05usb: dwc3: add tracepoints to aid debuggingFelipe Balbi
When we're debugging hard-to-reproduce and time-sensitive use cases, printk() poses too much overhead. That's when the kernel's tracing infrastructure comes into play. This patch implements a few initial tracepoints for the dwc3 driver. More traces can be added as necessary in order to ease the task of debugging dwc3. Reviewed-by: Paul Zimmerman <paulz@synopsys.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
2014-09-05usb: dwc3: debug: add dwc3_gadget_event_type_stringFelipe Balbi
this new helper will return a pretty string for DWC3 Gadget Events. Signed-off-by: Felipe Balbi <balbi@ti.com>
2014-09-05usb: dwc3: move all string helper functions to debug.hFelipe Balbi
Those functions are only using within debugging messages, grouping them into debug.h makes sense. While at that, also add missing multiple inclusion guard. Signed-off-by: Felipe Balbi <balbi@ti.com>
2013-07-29usb: dwc3: switch to GPL v2 onlyFelipe Balbi
This is a Linux-only driver which makes use of GPL-only symbols. It makes no sense to maintain Dual BSD/GPL licensing for this driver. Considering that the amount of work to use this driver in any different operating system would likely be as large as developing the driver from scratch and considering that we depend on GPL-only symbols, we will switch over to a GPL v2-only license. Cc: Anton Tikhomirov <av.tikhomirov@samsung.com> Acked-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Signed-off-by: Felipe Balbi <balbi@ti.com>
2011-10-04usb: dwc: remove "All rights reserved" statement.Sebastian Andrzej Siewior
Some people think that this line is not compatible with the GPL. The statement was required due to the Buenos Aires Convention and is now deprecated. I remove it because it is said that it is pointless nowdays. Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Signed-off-by: Felipe Balbi <balbi@ti.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2011-08-22usb: Introduce DesignWare USB3 DRD DriverFelipe Balbi
The DesignWare USB3 is a highly configurable IP Core which can be instantiated as Dual-Role Device (DRD), Peripheral Only and Host Only (XHCI) configurations. Several other parameters can be configured like amount of FIFO space, amount of TX and RX endpoints, amount of Host Interrupters, etc. The current driver has been validated with a virtual model of version 1.73a of that core and with an FPGA burned with version 1.83a of the DRD core. We have support for PCIe bus, which is used on FPGA prototyping, and for the OMAP5, more adaptation (or glue) layers can be easily added and the driver is half prepared to handle any possible configuration the HW engineer has chosen considering we have the information on one of the GHWPARAMS registers to do runtime checking of certain features. More runtime checks can, and should, be added in order to make this driver even more flexible with regards to number of endpoints, FIFO sizes, transfer types, etc. While this supports only the device side, for now, we will add support for Host side (xHCI - see the updated series Sebastian has sent [1]) and OTG after we have it all stabilized. [1] http://marc.info/?l=linux-usb&m=131341992020339&w=2 Signed-off-by: Felipe Balbi <balbi@ti.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>