Hi Robin,
On 01/18/2018 09:23 PM, Robin Murphy wrote:
@@ -837,7 +837,7 @@ static int rk_iommu_attach_device(struct
iommu_domain *domain,
ret = rk_iommu_enable_paging(iommu);
if (ret)
-return ret;
+goto err_disable_stall;
spin_lock_irqsave(_domain->iommus_lock,
On 18/01/18 11:52, Jeffy Chen wrote:
From: Tomasz Figa
Currently if the driver encounters an error while attaching device, it
will leave the IOMMU in an inconsistent state. Even though it shouldn't
really happen in reality, let's just add proper error path to keep
things
From: Tomasz Figa
Currently if the driver encounters an error while attaching device, it
will leave the IOMMU in an inconsistent state. Even though it shouldn't
really happen in reality, let's just add proper error path to keep
things consistent.
Signed-off-by: Tomasz Figa