linux_dsm_epyc7002/drivers/usb/gadget/udc
Michal Sojka 0cfbd328d6 usb: Add LED triggers for USB activity
With this patch, USB activity can be signaled by blinking a LED. There
are two triggers, one for activity on USB host and one for USB gadget.

Both triggers should work with all host/device controllers. Tested only
with musb.

Performace: I measured performance overheads on ARM Cortex-A8 (TI
AM335x) running on 600 MHz.

Duration of usb_led_activity():
- with no LED attached to the trigger:        2 ± 1 µs
- with one GPIO LED attached to the trigger:  2 ± 1 µs or 8 ± 2 µs (two peaks in histogram)

Duration of functions calling usb_led_activity() (with this patch
applied and no LED attached to the trigger):
- __usb_hcd_giveback_urb():    10 - 25 µs
- usb_gadget_giveback_request(): 2 - 6 µs

Signed-off-by: Michal Sojka <sojka@merica.cz>
Acked-by: Felipe Balbi <balbi@ti.com>
Tested-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-09-25 17:05:12 +02:00
..
amd5536udc.c usb: gadget: Refactor request completion 2014-09-25 16:58:50 +02:00
amd5536udc.h
at91_udc.c usb: gadget: Refactor request completion 2014-09-25 16:58:50 +02:00
at91_udc.h
atmel_usba_udc.c usb: gadget: Refactor request completion 2014-09-25 16:58:50 +02:00
atmel_usba_udc.h
bcm63xx_udc.c usb: gadget: Refactor request completion 2014-09-25 16:58:50 +02:00
dummy_hcd.c usb: gadget: Refactor request completion 2014-09-25 16:58:50 +02:00
fotg210-udc.c usb: gadget: Refactor request completion 2014-09-25 16:58:50 +02:00
fotg210.h
fsl_mxc_udc.c
fsl_qe_udc.c usb: gadget: Refactor request completion 2014-09-25 16:58:50 +02:00
fsl_qe_udc.h
fsl_udc_core.c usb: gadget: Refactor request completion 2014-09-25 16:58:50 +02:00
fsl_usb2_udc.h
fusb300_udc.c usb: gadget: Refactor request completion 2014-09-25 16:58:50 +02:00
fusb300_udc.h usb: gadget: fusb300_udc.h: Fix typo in include guard 2014-09-03 09:15:57 -05:00
gadget_chips.h
goku_udc.c usb: gadget: Refactor request completion 2014-09-25 16:58:50 +02:00
goku_udc.h
gr_udc.c usb: gadget: Refactor request completion 2014-09-25 16:58:50 +02:00
gr_udc.h usb: gadget: gr_udc: Add bounce buffer to handle odd sized OUT requests 2014-09-16 10:01:45 -05:00
Kconfig usb: gadget: Add xilinx usb2 device support 2014-09-12 09:12:49 -05:00
lpc32xx_udc.c usb: gadget: Refactor request completion 2014-09-25 16:58:50 +02:00
m66592-udc.c usb: gadget: Refactor request completion 2014-09-25 16:58:50 +02:00
m66592-udc.h
Makefile usb: gadget: Add xilinx usb2 device support 2014-09-12 09:12:49 -05:00
mv_u3d_core.c usb: gadget: Refactor request completion 2014-09-25 16:58:50 +02:00
mv_u3d.h
mv_udc_core.c usb: gadget: Refactor request completion 2014-09-25 16:58:50 +02:00
mv_udc.h
net2272.c usb: gadget: Refactor request completion 2014-09-25 16:58:50 +02:00
net2272.h
net2280.c usb: gadget: Refactor request completion 2014-09-25 16:58:50 +02:00
net2280.h
omap_udc.c usb: gadget: Refactor request completion 2014-09-25 16:58:50 +02:00
omap_udc.h
pch_udc.c usb: gadget: Refactor request completion 2014-09-25 16:58:50 +02:00
pxa25x_udc.c usb: gadget: Refactor request completion 2014-09-25 16:58:50 +02:00
pxa25x_udc.h
pxa27x_udc.c usb: gadget: Refactor request completion 2014-09-25 16:58:50 +02:00
pxa27x_udc.h
r8a66597-udc.c usb: gadget: Refactor request completion 2014-09-25 16:58:50 +02:00
r8a66597-udc.h
s3c2410_udc.c usb: gadget: Refactor request completion 2014-09-25 16:58:50 +02:00
s3c2410_udc.h
s3c-hsudc.c usb: gadget: Refactor request completion 2014-09-25 16:58:50 +02:00
udc-core.c usb: Add LED triggers for USB activity 2014-09-25 17:05:12 +02:00
udc-xilinx.c usb: gadget: Add xilinx usb2 device support 2014-09-12 09:12:49 -05:00