usb: dwc2: gadget: mask fifo empty irq with dma
When using DMA, keep fifo empty interrupt disabled. Otherwise core is flooded by interrupts. Tested-by: Robert Baldyga <r.baldyga@samsung.com> Acked-by: Paul Zimmerman <paulz@synopsys.com> Signed-off-by: Gregory Herrero <gregory.herrero@intel.com> Signed-off-by: Mian Yousaf Kaukab <yousaf.kaukab@intel.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
This commit is contained in:
parent
f6c015922c
commit
6ff2e8326f
@ -2170,8 +2170,8 @@ void s3c_hsotg_core_init_disconnected(struct dwc2_hsotg *hsotg)
|
||||
* interrupts.
|
||||
*/
|
||||
|
||||
writel(((hsotg->dedicated_fifos) ? DIEPMSK_TXFIFOEMPTY |
|
||||
DIEPMSK_INTKNTXFEMPMSK : 0) |
|
||||
writel(((hsotg->dedicated_fifos && !using_dma(hsotg)) ?
|
||||
DIEPMSK_TXFIFOEMPTY | DIEPMSK_INTKNTXFEMPMSK : 0) |
|
||||
DIEPMSK_EPDISBLDMSK | DIEPMSK_XFERCOMPLMSK |
|
||||
DIEPMSK_TIMEOUTMSK | DIEPMSK_AHBERRMSK |
|
||||
DIEPMSK_INTKNEPMISMSK,
|
||||
|
Loading…
x
Reference in New Issue
Block a user