iommu/sun50i: Change the readl timeout to the atomic variant
authorMaxime Ripard <maxime@cerno.tech>
Sun, 28 Jun 2020 18:08:43 +0000 (20:08 +0200)
committerJoerg Roedel <jroedel@suse.de>
Tue, 30 Jun 2020 10:05:09 +0000 (12:05 +0200)
commitbc8784f348836ab8967e6116486c5079c7025999
treeeeda1df49b3a8617ccb6d3b40c623b8605e47357
parent9ebcfadb0610322ac537dd7aa5d9cbc2b2894c68
iommu/sun50i: Change the readl timeout to the atomic variant

The flush_all_tlb call back can be called from an atomic context, so using
readl_poll_timeout that embeds a udelay doesn't work.

Fixes: 4100b8c229b3 ("iommu: Add Allwinner H6 IOMMU driver")
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Link: https://lore.kernel.org/r/20200628180844.79205-1-maxime@cerno.tech
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/sun50i-iommu.c