]> 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)
commit5f3c9d296856e63bec638c91e4884ed457c6df24
treecbd72db1653b55ee1f1f0f300a1071e11f990a26
parent092aae9d2b20690342fde45dea1a1a1b5eca48ec
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: 24a2ee2c2090 ("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