Skip to content

Commit

Permalink
usb: musb: musb_cppi41: Dont reprogram DMA if tear down is initiated
Browse files Browse the repository at this point in the history
Reprogramming the DMA after tear down is initiated leads to warning.
This is mainly seen with ISOCH since we do a delayed completion for
ISOCH transfers. In ISOCH transfers dma_completion should not reprogram
if the channel tear down is initiated.

Signed-off-by: George Cherian <george.cherian@ti.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
  • Loading branch information
George Cherian authored and Vinod Koul committed Mar 11, 2014
1 parent 8f83f50 commit f967d10
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/usb/musb/musb_cppi41.c
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,8 @@ static void cppi41_trans_done(struct cppi41_dma_channel *cppi41_channel)
struct musb_hw_ep *hw_ep = cppi41_channel->hw_ep;
struct musb *musb = hw_ep->musb;

if (!cppi41_channel->prog_len) {
if (!cppi41_channel->prog_len ||
(cppi41_channel->channel.status == MUSB_DMA_STATUS_FREE)) {

/* done, complete */
cppi41_channel->channel.actual_len =
Expand Down

0 comments on commit f967d10

Please sign in to comment.