Home
last modified time | relevance | path

Searched hist:"4 aa69cf7" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/dma/
H A Dhisi_dma.c4aa69cf7 Tue Aug 30 01:22:48 CDT 2022 Jie Hai <haijie1@huawei.com> dmaengine: hisilicon: Use macros instead of magic number

readl_relaxed_poll_timeout() uses magic numbers 10 and 1000, which
indicate maximum time to sleep between reads in us and timeout in us,
respectively.

Use macros HISI_DMA_POLL_Q_STS_DELAY_US and
HISI_DMA_POLL_Q_STS_TIME_OUT_US instead of these two numbers.

Signed-off-by: Jie Hai <haijie1@huawei.com>
Acked-by: Zhou Wang <wangzhou1@hisilicon.com>
Link: https://lore.kernel.org/r/20220830062251.52993-5-haijie1@huawei.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>