mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
pcie-dma-trx: Reinit completion signal before dma start
Change-Id: Ic353c7f6b5195026eade229df7d77adb3c495945 Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
This commit is contained in:
@@ -286,6 +286,7 @@ static void rk_pcie_dma_trx_work(struct work_struct *work)
|
||||
WARN_ON(1);
|
||||
return;
|
||||
}
|
||||
reinit_completion(&obj->done);
|
||||
obj->start_dma_func(obj);
|
||||
}
|
||||
}
|
||||
@@ -538,7 +539,6 @@ static long rk_pcie_misc_ioctl(struct file *filp, unsigned int cmd,
|
||||
DMA_FROM_DEVICE);
|
||||
break;
|
||||
case PCIE_DMA_WAIT_TRANSFER_COMPLETE:
|
||||
reinit_completion(&obj->done);
|
||||
ret = wait_for_completion_interruptible(&obj->done);
|
||||
if (WARN_ON(ret)) {
|
||||
pr_info("failed to wait complete\n");
|
||||
|
||||
Reference in New Issue
Block a user