usb: dwc3: Implement interrupt moderation
authorJohn Youn <johnyoun@synopsys.com>
Mon, 14 Nov 2016 20:32:43 +0000 (12:32 -0800)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Fri, 18 Nov 2016 11:54:51 +0000 (13:54 +0200)
commitcf40b86b6ef6df5262ef5a8463b42524e6aa5590
tree6b41f22b027882f680188af07bf8d2d736cca3fc
parent3922fb46f06035a246d31d25869a3276f1a1afa3
usb: dwc3: Implement interrupt moderation

Implement interrupt moderation which allows the interrupt rate to be
throttled. To enable this feature the dwc->imod_interval must be set to
1 or greater. This value specifies the minimum inter-interrupt interval,
in 250 ns increments. A value of 0 disables interrupt moderation.

This applies for DWC_usb3 version 3.00a and higher and for DWC_usb31
version 1.20a and higher.

Signed-off-by: John Youn <johnyoun@synopsys.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/dwc3/core.c
drivers/usb/dwc3/core.h
drivers/usb/dwc3/gadget.c