]> git.baikalelectronics.ru Git - kernel.git/commit
iommu/qcom: Use domain rather than dev as tlb cookie
authorRob Clark <robdclark@chromium.org>
Mon, 20 Jul 2020 15:52:17 +0000 (08:52 -0700)
committerJoerg Roedel <jroedel@suse.de>
Wed, 22 Jul 2020 15:29:28 +0000 (17:29 +0200)
commitb6d2c8e33d80d2020a3ee6ca0a8d24cd9e725eb8
tree7835284dfa818382ba3109580c0c5b7d12a615d9
parent21d0a5cf950768933cb88e716f8a3bf1031bcec4
iommu/qcom: Use domain rather than dev as tlb cookie

The device may be torn down, but the domain should still be valid.  Lets
use that as the tlb flush ops cookie.

Fixes a problem reported in [1]

[1] https://lkml.org/lkml/2020/7/20/104

Reported-by: Naresh Kamboju <naresh.kamboju@linaro.org>
Signed-off-by: Rob Clark <robdclark@chromium.org>
Tested-by: Naresh Kamboju <naresh.kamboju@linaro.org>
Fixes: e4a2a8d50c31 ("iommu/qcom: Use accessor functions for iommu private data")
Link: https://lore.kernel.org/r/20200720155217.274994-1-robdclark@gmail.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/qcom_iommu.c