Loading drivers/usb/musb/musb_cppi41.c +45 −43 Original line number Diff line number Diff line Loading @@ -225,10 +225,12 @@ static void cppi41_dma_callback(void *private_data) struct dma_channel *channel = private_data; struct cppi41_dma_channel *cppi41_channel = channel->private_data; struct musb_hw_ep *hw_ep = cppi41_channel->hw_ep; struct cppi41_dma_controller *controller; struct musb *musb = hw_ep->musb; unsigned long flags; struct dma_tx_state txstate; u32 transferred; int is_hs = 0; bool empty; spin_lock_irqsave(&musb->lock, flags); Loading @@ -251,9 +253,9 @@ static void cppi41_dma_callback(void *private_data) empty = musb_is_tx_fifo_empty(hw_ep); if (empty) { cppi41_trans_done(cppi41_channel); } else { struct cppi41_dma_controller *controller; int is_hs = 0; goto out; } /* * On AM335x it has been observed that the TX interrupt fires * too early that means the TXFIFO is not yet empty but the DMA Loading Loading @@ -302,7 +304,7 @@ static void cppi41_dma_callback(void *private_data) 20 * NSEC_PER_USEC, HRTIMER_MODE_REL); } } out: spin_unlock_irqrestore(&musb->lock, flags); } Loading Loading
drivers/usb/musb/musb_cppi41.c +45 −43 Original line number Diff line number Diff line Loading @@ -225,10 +225,12 @@ static void cppi41_dma_callback(void *private_data) struct dma_channel *channel = private_data; struct cppi41_dma_channel *cppi41_channel = channel->private_data; struct musb_hw_ep *hw_ep = cppi41_channel->hw_ep; struct cppi41_dma_controller *controller; struct musb *musb = hw_ep->musb; unsigned long flags; struct dma_tx_state txstate; u32 transferred; int is_hs = 0; bool empty; spin_lock_irqsave(&musb->lock, flags); Loading @@ -251,9 +253,9 @@ static void cppi41_dma_callback(void *private_data) empty = musb_is_tx_fifo_empty(hw_ep); if (empty) { cppi41_trans_done(cppi41_channel); } else { struct cppi41_dma_controller *controller; int is_hs = 0; goto out; } /* * On AM335x it has been observed that the TX interrupt fires * too early that means the TXFIFO is not yet empty but the DMA Loading Loading @@ -302,7 +304,7 @@ static void cppi41_dma_callback(void *private_data) 20 * NSEC_PER_USEC, HRTIMER_MODE_REL); } } out: spin_unlock_irqrestore(&musb->lock, flags); } Loading