Re: [PATCH 1/2] iommu/tegra: smmu: Simplify allocation at once
From: Stephen Warren <hidden>
Date: 2012-05-14 23:34:20
Also in:
linux-iommu, linux-tegra, lkml
From: Stephen Warren <hidden>
Date: 2012-05-14 23:34:20
Also in:
linux-iommu, linux-tegra, lkml
On 05/14/2012 01:16 PM, Hiroshi DOYU wrote:
To simplify the code, alloc necessary data at once.
Signed-off-by: Hiroshi DOYU <redacted>
---
This patch requires:
[PATCH 1/2] iommu/tegra: smmu: Add device tree support for SMMU
http://marc.info/?l=linux-tegra&m=133663641107327&w=2
Also the above patch requires:
[PATCH 1/1] dt: Add general DMA window parser
http://marc.info/?l=linux-tegra&m=133671302703840&w=2I know I've been harping on about dependencies, but you typically only need to mention them if the dependencies are not already checked into the branch you expect this patch to be checked into.
- smmu = devm_kzalloc(dev, sizeof(*smmu), GFP_KERNEL); + if (of_property_read_u32(dev->of_node, "nvidia,#asids", &asids)) + return -ENODEV;
I believe you need to change the asids variable from int to u32 to avoid a warning here. Aside from that, the series, Acked-by: Stephen Warren <redacted>