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>
This commit is contained in:

committed by
Felipe Balbi

parent
d2521849d6
commit
376f040159
@@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user