mirror of
https://github.com/torvalds/linux.git
synced 2026-11-26 00:12:52 +00:00
usb: dwc2: host: add disconnect interrupt to host only interrupts
GINTSTS.DisconnInt is host only interrupt and should be disable after dwc2_disable_host_interrupts is called. Signed-off-by: Mian Yousaf Kaukab <[email protected]> Tested-by: Robert Baldyga <[email protected]> Tested-by: Dinh Nguyen <[email protected]> Tested-by: John Youn <[email protected]> Acked-by: John Youn <[email protected]> Signed-off-by: Felipe Balbi <[email protected]>
This commit is contained in:
committed by
Felipe Balbi
parent
091473ad9b
commit
77dbf7138d
@@ -857,7 +857,8 @@ void dwc2_enable_host_interrupts(struct dwc2_hsotg *hsotg)
|
||||
|
||||
/* Enable host mode interrupts without disturbing common interrupts */
|
||||
intmsk = dwc2_readl(hsotg->regs + GINTMSK);
|
||||
intmsk |= GINTSTS_DISCONNINT | GINTSTS_PRTINT | GINTSTS_HCHINT;
|
||||
intmsk |= GINTSTS_DISCONNINT | GINTSTS_PRTINT | GINTSTS_HCHINT |
|
||||
GINTSTS_DISCONNINT;
|
||||
dwc2_writel(intmsk, hsotg->regs + GINTMSK);
|
||||
}
|
||||
|
||||
@@ -872,7 +873,7 @@ void dwc2_disable_host_interrupts(struct dwc2_hsotg *hsotg)
|
||||
|
||||
/* Disable host mode interrupts without disturbing common interrupts */
|
||||
intmsk &= ~(GINTSTS_SOF | GINTSTS_PRTINT | GINTSTS_HCHINT |
|
||||
GINTSTS_PTXFEMP | GINTSTS_NPTXFEMP);
|
||||
GINTSTS_PTXFEMP | GINTSTS_NPTXFEMP | GINTSTS_DISCONNINT);
|
||||
dwc2_writel(intmsk, hsotg->regs + GINTMSK);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user