OSDN Git Service

iommu/arm-smmu: Fix broken ATOS check
authorWill Deacon <will.deacon@arm.com>
Mon, 29 Jun 2015 16:47:42 +0000 (17:47 +0100)
committerDavid Keitel <dkeitel@codeaurora.org>
Tue, 22 Mar 2016 18:15:14 +0000 (11:15 -0700)
commitfbf1b8f3fab32340ee2f21b71229b65547947f69
tree5645307eedd19828506eeb9b2e1ee49abd0ce92e
parentf3a5289d8733c8c6aa956dce7ec3d7506db75ab1
iommu/arm-smmu: Fix broken ATOS check

Commit 83a60ed8f0b5 ("iommu/arm-smmu: fix ARM_SMMU_FEAT_TRANS_OPS
condition") accidentally negated the ID0_ATOSNS predicate in the ATOS
feature check, causing the driver to attempt ATOS requests on SMMUv2
hardware without the ATOS feature implemented.

This patch restores the predicate to the correct value.

Cc: <stable@vger.kernel.org> # 4.0+
Reported-by: Varun Sethi <varun.sethi@freescale.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/arm-smmu.c