[PATCH v2] iommu/arm-smmu: Make use of phandle iterators in device-tree device-tree parsing

From: Joerg Roedel
Date: Wed Mar 23 2016 - 07:47:22 EST


On Tue, Mar 22, 2016 at 01:38:06PM -0500, Rob Herring wrote:
> > + struct of_phandle_iterator it;
> > + struct arm_smmu_phandle_args masterspec;
>
> Isn't this a bit big to put on the stack being ~512 bytes?

Yeah, you might be right. I havn't seen any problems booting with this
being allocated on the stack, but to be on the safe side I changed the
patch to allocate the masterspec with kmalloc, patch below.


Joerg