diff options
author | Mian Yousaf Kaukab <yousaf.kaukab@intel.com> | 2015-09-22 09:16:47 -0400 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2015-10-01 13:40:17 -0400 |
commit | 77dbf7138d59994d50b7875deb24992f51b811b5 (patch) | |
tree | 21b93bc95cff952ebdf08c1ff8d67514ee23ac13 /drivers | |
parent | 091473ad9b402f9e1b08a68a78b54e0d3c9affb6 (diff) |
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 <yousaf.kaukab@intel.com>
Tested-by: Robert Baldyga <r.baldyga@samsung.com>
Tested-by: Dinh Nguyen <dinguyen@opensource.altera.com>
Tested-by: John Youn <johnyoun@synopsys.com>
Acked-by: John Youn <johnyoun@synopsys.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/usb/dwc2/core.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/usb/dwc2/core.c b/drivers/usb/dwc2/core.c index f5c3120f4879..c5e0a45c565d 100644 --- a/drivers/usb/dwc2/core.c +++ b/drivers/usb/dwc2/core.c | |||
@@ -857,7 +857,8 @@ void dwc2_enable_host_interrupts(struct dwc2_hsotg *hsotg) | |||
857 | 857 | ||
858 | /* Enable host mode interrupts without disturbing common interrupts */ | 858 | /* Enable host mode interrupts without disturbing common interrupts */ |
859 | intmsk = dwc2_readl(hsotg->regs + GINTMSK); | 859 | intmsk = dwc2_readl(hsotg->regs + GINTMSK); |
860 | intmsk |= GINTSTS_DISCONNINT | GINTSTS_PRTINT | GINTSTS_HCHINT; | 860 | intmsk |= GINTSTS_DISCONNINT | GINTSTS_PRTINT | GINTSTS_HCHINT | |
861 | GINTSTS_DISCONNINT; | ||
861 | dwc2_writel(intmsk, hsotg->regs + GINTMSK); | 862 | dwc2_writel(intmsk, hsotg->regs + GINTMSK); |
862 | } | 863 | } |
863 | 864 | ||
@@ -872,7 +873,7 @@ void dwc2_disable_host_interrupts(struct dwc2_hsotg *hsotg) | |||
872 | 873 | ||
873 | /* Disable host mode interrupts without disturbing common interrupts */ | 874 | /* Disable host mode interrupts without disturbing common interrupts */ |
874 | intmsk &= ~(GINTSTS_SOF | GINTSTS_PRTINT | GINTSTS_HCHINT | | 875 | intmsk &= ~(GINTSTS_SOF | GINTSTS_PRTINT | GINTSTS_HCHINT | |
875 | GINTSTS_PTXFEMP | GINTSTS_NPTXFEMP); | 876 | GINTSTS_PTXFEMP | GINTSTS_NPTXFEMP | GINTSTS_DISCONNINT); |
876 | dwc2_writel(intmsk, hsotg->regs + GINTMSK); | 877 | dwc2_writel(intmsk, hsotg->regs + GINTMSK); |
877 | } | 878 | } |
878 | 879 | ||