iommu/rockchip: Use iopoll helpers to wait for hardware
authorTomasz Figa <tfiga@chromium.org>
Fri, 23 Mar 2018 07:38:05 +0000 (15:38 +0800)
committerJoerg Roedel <jroedel@suse.de>
Thu, 29 Mar 2018 10:22:26 +0000 (12:22 +0200)
commit0416bf6479acef646ad8c7396f73ecd936aa84bb
tree57b4209386f8540cc19f9ef55f16948901cbe555
parentf6717d727c9a2b0742ac23234a347db0d3ad718a
iommu/rockchip: Use iopoll helpers to wait for hardware

This patch converts the rockchip-iommu driver to use the in-kernel
iopoll helpers to wait for certain status bits to change in registers
instead of an open-coded custom macro.

Signed-off-by: Tomasz Figa <tfiga@chromium.org>
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
Reviewed-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/rockchip-iommu.c