Hi Suzuki,
On Mar 18, 2020, at 5:45 PM, Suzuki K Poulose <suzuki.poulose@xxxxxxx> wrote:
Hello,
Please find my comments below.
On 03/18/2020 12:28 AM, Tuan Phan wrote:
Add support for probing device from ACPI node.
Each DSU ACPI node defines "cpus" package which
each element is the MPIDR of associated cpu.
Signed-off-by: Tuan Phan <tuanphan@xxxxxxxxxxxxxxxxxxxxxx>
=> I couldnât find the device tree binding document of DSU anywhere. Is It enough+#else /* CONFIG_ACPI */
+ int i, cpu, ret;
+ const union acpi_object *obj;
+ struct acpi_device *adev = ACPI_COMPANION(&pdev->dev);
+ struct dsu_pmu *dsu_pmu =
+ (struct dsu_pmu *) platform_get_drvdata(pdev);
+
+ ret = acpi_dev_get_property(adev, "cpus", ACPI_TYPE_ANY, &obj);
Is the binding documented somewhere ?
nit: Also, why not :
ret = acpi_dev_get_propert(adev, "cpus", ACPI_TYPE_PACKAGE, &obj);
if (ret < 0)
return ret;
?
to put a comment describing the acpi binding in the code or need somewhere else?