Skip to contentSkip to conversation

dmaengine: ioatdma: set the completion address register after channel reset

DISCUSSION Sinan Kaya 1 participant 1 message Jun 11, 2018 dmaengine

lore
Share & tools
lore

Sinan Kaya

author
#0 lore raw

Review

Quoted 5 lines · Dave Jiang
(quoted diff) +5 -0
+	/* set the completion address register again */
+	writel(((u64)ioat_chan->completion_dma) & 0x00000000FFFFFFFF,
+	       ioat_chan->reg_base + IOAT_CHANCMP_OFFSET_LOW);
+	writel(((u64)ioat_chan->completion_dma) >> 32,
+	       ioat_chan->reg_base + IOAT_CHANCMP_OFFSET_HIGH);

You could have used lower_32_bits() and upper_32_bits() macros here.