mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-16 16:54:20 +08:00
usb: dwc2: Fixed SOF interrupt enabling/disabling
In case of DDMA mode we don't need to get an SOF interrupt so disable the unmasking of SOF interrupt in DDMA mode. Signed-off-by: Sevak Arakelyan <sevaka@synopsys.com> Signed-off-by: John Youn <johnyoun@synopsys.com> Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
This commit is contained in:
parent
b0d659022e
commit
907a444718
@ -1709,7 +1709,8 @@ void dwc2_hcd_qh_unlink(struct dwc2_hsotg *hsotg, struct dwc2_qh *qh)
|
|||||||
|
|
||||||
dwc2_deschedule_periodic(hsotg, qh);
|
dwc2_deschedule_periodic(hsotg, qh);
|
||||||
hsotg->periodic_qh_count--;
|
hsotg->periodic_qh_count--;
|
||||||
if (!hsotg->periodic_qh_count) {
|
if (!hsotg->periodic_qh_count &&
|
||||||
|
hsotg->core_params->dma_desc_enable <= 0) {
|
||||||
intr_mask = dwc2_readl(hsotg->regs + GINTMSK);
|
intr_mask = dwc2_readl(hsotg->regs + GINTMSK);
|
||||||
intr_mask &= ~GINTSTS_SOF;
|
intr_mask &= ~GINTSTS_SOF;
|
||||||
dwc2_writel(intr_mask, hsotg->regs + GINTMSK);
|
dwc2_writel(intr_mask, hsotg->regs + GINTMSK);
|
||||||
|
Loading…
Reference in New Issue
Block a user