Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ef02ad48 authored by Susheel Khiani's avatar Susheel Khiani
Browse files

iommu: msm: Correct context bank count log shown in bootup logs



for_each_child_of_node function just counts number
of child nodes mentioned in device tree. It doesn't
consider if the status of child node is disabled.

Use for_each_available_child_of_node instead to
account for correct count of context banks in SMMU
because its possible that some of the context bank
might have status disabled.

Change-Id: I89585c48511ebca3f7570f28603cc866d6af8d0d
Signed-off-by: default avatarSusheel Khiani <skhiani@codeaurora.org>
parent ee927800
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -197,7 +197,7 @@ static int msm_iommu_parse_dt(struct platform_device *pdev,
	if (ret)
		goto fail;

	for_each_child_of_node(pdev->dev.of_node, child)
	for_each_available_child_of_node(pdev->dev.of_node, child)
		drvdata->ncb++;

	drvdata->asid = devm_kzalloc(&pdev->dev, drvdata->ncb * sizeof(int),