usb: dwc3-msm: Add support for interrupt moderation in device mode
Add support for interrupt moderation in device mode to ensure
minimum time interval between core interrupts.
Use the module parameter 'dwc3_gadget_imod_val' as follows:
To enable/modify moderation value:
- Disconnect the peripheral cable
- echo <imod_val> > /sys/module/dwc3_msm/parameters/dwc3_gadget_imod_val
- Start gadget by connecting peripheral cable.
- Moderation will be enabled/modified.
To disable interrupt moderation:
- echo 0 > /sys/module/dwc3_msm/parameters/dwc3_gadget_imod_val
- Start gadget by connecting peripheral cable.
- Moderation will be disabled.
Change-Id: Ic6189ef98d9003303332450afc67ed29413307be
Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org>
1 file changed