Commit 70774b47 authored by Chris Leech's avatar Chris Leech Committed by Dan Williams

ioatdma: Remove the use of writeq from the ioatdma driver

There's only one now anyway, and it's not in a performance path,
so make it behave the same on 32-bit and 64-bit CPUs.
Signed-off-by: default avatarChris Leech <christopher.leech@intel.com>
parent e3828811
...@@ -608,13 +608,11 @@ static void ioat_start_null_desc(struct ioat_dma_chan *ioat_chan) ...@@ -608,13 +608,11 @@ static void ioat_start_null_desc(struct ioat_dma_chan *ioat_chan)
list_add_tail(&desc->node, &ioat_chan->used_desc); list_add_tail(&desc->node, &ioat_chan->used_desc);
spin_unlock_bh(&ioat_chan->desc_lock); spin_unlock_bh(&ioat_chan->desc_lock);
#if (BITS_PER_LONG == 64) writel(((u64) desc->phys) & 0x00000000FFFFFFFF,
writeq(desc->phys, ioat_chan->reg_base + IOAT_CHAINADDR_OFFSET);
#else
writel((u32) desc->phys,
ioat_chan->reg_base + IOAT_CHAINADDR_OFFSET_LOW); ioat_chan->reg_base + IOAT_CHAINADDR_OFFSET_LOW);
writel(0, ioat_chan->reg_base + IOAT_CHAINADDR_OFFSET_HIGH); writel(((u64) desc->phys) >> 32,
#endif ioat_chan->reg_base + IOAT_CHAINADDR_OFFSET_HIGH);
writeb(IOAT_CHANCMD_START, ioat_chan->reg_base + IOAT_CHANCMD_OFFSET); writeb(IOAT_CHANCMD_START, ioat_chan->reg_base + IOAT_CHANCMD_OFFSET);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment