iommu/ipmmu-vmsa: Refactor micro-TLB lookup
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Thu, 15 May 2014 10:40:42 +0000 (12:40 +0200)
committerJoerg Roedel <jroedel@suse.de>
Mon, 26 May 2014 09:18:22 +0000 (11:18 +0200)
commit192d2045707b25b984436eabfbfd3c8f1ada5a56
tree56c707d26e8e2c35b75f269f87ab8146e4e89fd8
parentd25a2a16f0889de4a1cd8639896f35dc9465f6f5
iommu/ipmmu-vmsa: Refactor micro-TLB lookup

Cache the micro-TLB number in archdata allocated in the .add_device
handler instead of looking it up when the deviced is attached and
detached. This simplifies the .attach_dev and .detach_dev operations and
prepares for DT support.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/ipmmu-vmsa.c