]> git.baikalelectronics.ru Git - kernel.git/commit
iommu/rockchip: Fix zap cache during device attach
authorJohn Keeping <john@metanate.com>
Wed, 1 Jun 2016 15:46:10 +0000 (16:46 +0100)
committerJoerg Roedel <jroedel@suse.de>
Wed, 15 Jun 2016 10:03:00 +0000 (12:03 +0200)
commitdf12c07242dc80484d8b213e3b552c45cc998149
treecbd72db1653b55ee1f1f0f300a1071e11f990a26
parentc77d49a62d11fea3b3a00af8a098b2c65bab0870
iommu/rockchip: Fix zap cache during device attach

rk_iommu_command() takes a struct rk_iommu and iterates over the slave
MMUs, so this is doubly wrong in that we're passing in the wrong pointer
and talking to MMUs that we shouldn't be.

Fixes: ea1682f362f5 ("iommu/rockchip: Reconstruct to support multi slaves")
Cc: stable@vger.kernel.org
Signed-off-by: John Keeping <john@metanate.com>
Tested-by: Heiko Stuebner <heiko@sntech.de>
Reviewed-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/rockchip-iommu.c