OSDN Git Service

usb: dwc3: Implement interrupt moderation
authorJohn Youn <johnyoun@synopsys.com>
Mon, 14 Nov 2016 20:32:43 +0000 (12:32 -0800)
committerMayank Rana <mrana@codeaurora.org>
Fri, 31 Mar 2017 22:19:34 +0000 (15:19 -0700)
commitdf622b175986bfa5bdb726af5b77e68c6e0b7cac
tree99b024ffcc9db01b9b3d3bc48760d8ae86c40fec
parent4be017341694f93a14f5b5d75a5eecc340ef7799
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>
Change-Id: I5c5997c6eea817e49102b8e080f3a9bcf45305b4
Git-commit: cf40b86b6ef6df5262ef5a8463b42524e6aa5590
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
[hemantk@codeaurora.org: removed write to DWC3_DEV_IMOD in dwc3_interrupt,
and fixed merge conflicts]
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
drivers/usb/dwc3/core.c
drivers/usb/dwc3/core.h
drivers/usb/dwc3/gadget.c