Skip to content

Commit

Permalink
DMA: PL330: allow submitting 2 requests at a time
Browse files Browse the repository at this point in the history
Fix the logic to allow mc programming of second transfer after first
has been done, by removing immediate return upon success and iterating
until we detect QFull or DMAC dying.

Reported-by: Alvaro Moran <dirac3000@gmail.com>
Tested-by: Alvaro Moran <dirac3000@gmail.com>
Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
  • Loading branch information
Jassi Brar authored and Vinod Koul committed Apr 15, 2013
1 parent 41ef2d5 commit 30fb980
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/dma/pl330.c
Original file line number Diff line number Diff line change
Expand Up @@ -2288,13 +2288,12 @@ static inline void fill_queue(struct dma_pl330_chan *pch)

/* If already submitted */
if (desc->status == BUSY)
break;
continue;

ret = pl330_submit_req(pch->pl330_chid,
&desc->req);
if (!ret) {
desc->status = BUSY;
break;
} else if (ret == -EAGAIN) {
/* QFull or DMAC Dying */
break;
Expand Down

0 comments on commit 30fb980

Please sign in to comment.