Message ID | CALYqZ9k3xtoLBUaaqhuzz4cebWnDyScobxA06uzk4Gg6vM2OEQ@mail.gmail.com (mailing list archive) |
---|---|
State | Changes Requested |
Headers | show |
Series | [RESEND,1/2] : Fix DMAR Error NO_PASID when IOMMU is enabled | expand |
diff --git a/drivers/dma/xilinx/xdma.c b/drivers/dma/xilinx/xdma.c index 9ae615165cb6..9064793f5d18 100644 --- a/drivers/dma/xilinx/xdma.c +++ b/drivers/dma/xilinx/xdma.c @@ -926,16 +926,16 @@ static irqreturn_t xdma_channel_isr(int irq, void *dev_id) spin_lock(&xchan->vchan.lock); - /* get submitted request */ - vd = vchan_next_desc(&xchan->vchan); - if (!vd) - goto out; - /* Clear-on-read the status register */ ret = regmap_read(xdev->rmap, xchan->base + XDMA_CHAN_STATUS_RC, &st); if (ret) goto out; + /* get submitted request */ + vd = vchan_next_desc(&xchan->vchan); + if (!vd) + goto out; + desc = to_xdma_desc(vd); st &= XDMA_CHAN_STATUS_MASK;