dmaengine: uniphier-xdmac: Use readl_poll_timeout_atomic() in atomic state
authorKunihiko Hayashi <hayashi.kunihiko@socionext.com>
Tue, 27 Jul 2021 05:47:32 +0000 (14:47 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 Aug 2021 11:22:03 +0000 (13:22 +0200)
commitedf1b7911af221d3168ae3a465a426f72561f144
treea16595199e99d499ed339b42029644cb871b7125
parent4ebd11d1c78202d4c8ba4e2191cafca1b3d176ef
dmaengine: uniphier-xdmac: Use readl_poll_timeout_atomic() in atomic state

[ Upstream commit 55f24c27b6c1a840b62fe297616f1f9ea3576cb7 ]

The function uniphier_xdmac_chan_stop() is only called in atomic state.
Should use readl_poll_timeout_atomic() there instead of
readl_poll_timeout().

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Fixes: 667b9251440b ("dmaengine: uniphier-xdmac: Add UniPhier external DMA controller driver")
Signed-off-by: Kunihiko Hayashi <hayashi.kunihiko@socionext.com>
Link: https://lore.kernel.org/r/1627364852-28432-1-git-send-email-hayashi.kunihiko@socionext.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/dma/uniphier-xdmac.c