diff --git a/drivers/misc/sdma-dae/hisi_sdma.h b/drivers/misc/sdma-dae/hisi_sdma.h index 6ffba9973590715d76376aebe4c5e966019d79ac..c5cc92de5ffc3cf4d1fb91f511476973844af296 100644 --- a/drivers/misc/sdma-dae/hisi_sdma.h +++ b/drivers/misc/sdma-dae/hisi_sdma.h @@ -14,8 +14,8 @@ #define HISI_SDMA_MMAP_CQE 1 #define HISI_SDMA_MMAP_IO 2 #define HISI_SDMA_MMAP_SHMEM 3 -#define HISI_SDMA_FSM_INTERVAL 20 -#define HISI_SDMA_FSM_TIMEOUT 5 +#define HISI_SDMA_FSM_INTERVAL 1 +#define HISI_SDMA_FSM_TIMEOUT 100 #define HISI_SDMA_LOW_ADDR_SHIFT 32 #define HISI_SDMA_MAX_BASE_ADDR_SIZE 0x100000 diff --git a/drivers/misc/sdma-dae/sdma_main.c b/drivers/misc/sdma-dae/sdma_main.c index 5fb4a2d284c56c0e432c88404bfc6d60b14fcf75..8b4d330e15eba65539bfb633f54c481b4cef6a32 100644 --- a/drivers/misc/sdma-dae/sdma_main.c +++ b/drivers/misc/sdma-dae/sdma_main.c @@ -99,7 +99,7 @@ void sdma_channel_reset_sq_cq(struct hisi_sdma_channel *pchan) while (cq_head != cq_tail) { sdma_channel_set_cq_head(pchan, cq_tail); - msleep(SDMA_POLL_DELAY); + msleep(HISI_SDMA_FSM_INTERVAL); cq_head = sdma_channel_get_cq_head(pchan); cq_tail = sdma_channel_get_cq_tail(pchan);