diff options
author | Sevak Arakelyan <sevaka@synopsys.com> | 2018-01-24 17:43:06 +0400 |
---|---|---|
committer | Felipe Balbi <felipe.balbi@linux.intel.com> | 2018-03-13 10:47:48 +0200 |
commit | 376f04015944785d0634a288c9e1d1adb4439162 (patch) | |
tree | 15fc7b69708bfab474a894bcc2417d11c52ee46b /drivers/usb/dwc2/hcd.c | |
parent | d2521849d695a2c1f849611f39349faa70eed85f (diff) | |
download | linux-376f04015944785d0634a288c9e1d1adb4439162.tar.gz linux-376f04015944785d0634a288c9e1d1adb4439162.tar.bz2 linux-376f04015944785d0634a288c9e1d1adb4439162.zip |
usb: dwc2: Enable LPM Transaction Received interrupt
Enable "LPM Transaction Received" interrupt for receive an
interrupt when host will send LPM token.
Signed-off-by: Sevak Arakelyan <sevaka@synopsys.com>
Signed-off-by: Grigor Tovmasyan <tovmasya@synopsys.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Diffstat (limited to 'drivers/usb/dwc2/hcd.c')
-rw-r--r-- | drivers/usb/dwc2/hcd.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/usb/dwc2/hcd.c b/drivers/usb/dwc2/hcd.c index edcc9058274a..bbd3185a7364 100644 --- a/drivers/usb/dwc2/hcd.c +++ b/drivers/usb/dwc2/hcd.c @@ -91,6 +91,9 @@ static void dwc2_enable_common_interrupts(struct dwc2_hsotg *hsotg) intmsk |= GINTSTS_WKUPINT | GINTSTS_USBSUSP | GINTSTS_SESSREQINT; + if (dwc2_is_device_mode(hsotg) && hsotg->params.lpm) + intmsk |= GINTSTS_LPMTRANRCVD; + dwc2_writel(intmsk, hsotg->regs + GINTMSK); } |