]> 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)
commitae8a7910fb0568531033bd6ebe65590f7a4fa6e2
treecbd72db1653b55ee1f1f0f300a1071e11f990a26
parent9aeb26cfc2abc96be42b9df2d0f2dc5d805084ff
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: cd6438c5f844 ("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