Re: [PATCH v2] of: iommu: make of_iommu_init() postcore_initcall_sync

2016-06-08 Thread Robin Murphy
On 08/06/16 16:44, Rob Herring wrote: On Wed, Jun 1, 2016 at 1:06 AM, Kefeng Wang wrote: The of_iommu_init() is called multiple times by arch code, make it postcore_initcall_sync, then we can drop relevant calls fully. Note, the IOMMUs should have a chance to perform some basic initialisation

Re: [PATCH v2] of: iommu: make of_iommu_init() postcore_initcall_sync

2016-06-08 Thread Rob Herring
On Wed, Jun 1, 2016 at 1:06 AM, Kefeng Wang wrote: > The of_iommu_init() is called multiple times by arch code, > make it postcore_initcall_sync, then we can drop relevant > calls fully. > > Note, the IOMMUs should have a chance to perform some basic > initialisation before we start adding masters

[PATCH v2] of: iommu: make of_iommu_init() postcore_initcall_sync

2016-05-31 Thread Kefeng Wang
The of_iommu_init() is called multiple times by arch code, make it postcore_initcall_sync, then we can drop relevant calls fully. Note, the IOMMUs should have a chance to perform some basic initialisation before we start adding masters to them. So postcore_initcall_sync is good choice, it ensures