Skip to contentSkip to conversation

DMA interrupt mask value should not be hard coded

PATCH New chao bi 1 participant 1 message Nov 20, 2012 dmaengine

lore
Share & tools
lore

chao bi

author
#0 lore raw

PATCH 1/1 DMA interrupt mask value should not be hard coded

In intel_mid_dma.c, when setup DMA controller, its interrupt mask value is hard coded, it's not needed because this value has already been initiated and set value according to DMA channels which are used.

---
 drivers/dma/intel_mid_dma.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
drivers/dma/intel_mid_dma.c +0 -1
index 02b21d7..11a1a48 100644
@@ -1161,7 +1161,6 @@ static int mid_setup_dma(struct pci_dev *pdev)
 		if (0 != err)
 			goto err_irq;
 	} else {
-		dma->intr_mask = 0x03;
 		pr_debug("MDMA:Requesting irq for DMAC2\n");
 		err = request_irq(pdev->irq, intel_mid_dma_interrupt2,
 			IRQF_SHARED, "INTEL_MID_DMAC2", dma);
Signature · 1 line
1.7.1