Re: [PATCH kernel v10 03/34] powerpc/powernv/ioda: Clean up IOMMU group registration

2015-05-12 Thread Gavin Shan
On Tue, May 12, 2015 at 01:38:52AM +1000, Alexey Kardashevskiy wrote: >The existing code has 3 calls to iommu_register_group() and >all 3 branches actually cover all possible cases. > >This replaces 3 calls with one and moves the registration earlier; >the latter will make more sense when we add TC

[PATCH kernel v10 03/34] powerpc/powernv/ioda: Clean up IOMMU group registration

2015-05-11 Thread Alexey Kardashevskiy
The existing code has 3 calls to iommu_register_group() and all 3 branches actually cover all possible cases. This replaces 3 calls with one and moves the registration earlier; the latter will make more sense when we add TCE table sharing. Signed-off-by: Alexey Kardashevskiy --- arch/powerpc/pl