diff options
author | John Keeping <[email protected]> | 2016-04-05 15:05:46 +0100 |
---|---|---|
committer | Joerg Roedel <[email protected]> | 2016-04-07 14:50:18 +0200 |
commit | fbedd9b9905c1643b9f7244d88999e39632bbd87 (patch) | |
tree | ffa7def37d3a6843c3c9fc88018e1640c7a9d090 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | eebb8034a5be8c2177cbf07ca2ecd2ff8a058958 (diff) |
iommu/rockchip: Fix "is stall active" check
Since commit cd6438c5f844 ("iommu/rockchip: Reconstruct to support multi
slaves") rk_iommu_is_stall_active() always returns false because the
bitwise AND operates on the boolean flag promoted to an integer and a
value that is either zero or BIT(2).
Explicitly convert the right-hand value to a boolean so that both sides
are guaranteed to be either zero or one.
rk_iommu_is_paging_enabled() does not suffer from the same problem since
RK_MMU_STATUS_PAGING_ENABLED is BIT(0), but let's apply the same change
for consistency and to make it clear that it's correct without needing
to lookup the value.
Fixes: cd6438c5f844 ("iommu/rockchip: Reconstruct to support multi slaves")
Signed-off-by: John Keeping <[email protected]>
Reviewed-by: Heiko Stuebner <[email protected]>
Tested-by: Tomeu Vizoso <[email protected]>
Signed-off-by: Joerg Roedel <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions