Skip to content

Commit

Permalink
dmaengine: xilinx: frmbuf: Replace AP_READY with AP_DONE
Browse files Browse the repository at this point in the history
Use AP_DONE signal instead of AP_READY signal for interrupt generation.

Signed-off-by: Vishal Sagar <vishal.sagar@xilinx.com>
Tested-by: Nayan Bhavsar <nayanb@xilinx.com>
Reviewed-by: Hyun Kwon <hyun.kwon@xilinx.com>
  • Loading branch information
vishals-xlnx authored and Michal Simek committed Oct 27, 2020
1 parent a7b4c45 commit 2b983cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/dma/xilinx/xilinx_frmbuf.c
Expand Up @@ -1169,7 +1169,7 @@ static void xilinx_frmbuf_reset(struct xilinx_frmbuf_chan *chan)
static void xilinx_frmbuf_chan_reset(struct xilinx_frmbuf_chan *chan)
{
xilinx_frmbuf_reset(chan);
frmbuf_write(chan, XILINX_FRMBUF_IE_OFFSET, XILINX_FRMBUF_IE_AP_READY);
frmbuf_write(chan, XILINX_FRMBUF_IE_OFFSET, XILINX_FRMBUF_IE_AP_DONE);
frmbuf_write(chan, XILINX_FRMBUF_GIE_OFFSET, XILINX_FRMBUF_GIE_EN);
}

Expand Down Expand Up @@ -1206,7 +1206,7 @@ static irqreturn_t xilinx_frmbuf_irq_handler(int irq, void *data)
}
}

if (status & XILINX_FRMBUF_ISR_AP_READY_IRQ) {
if (status & XILINX_FRMBUF_ISR_AP_DONE_IRQ) {
spin_lock(&chan->lock);
chan->idle = true;
if (chan->active_desc) {
Expand Down

0 comments on commit 2b983cc

Please sign in to comment.