[PATCH v6 2/3] firmware: add Exynos ACPM protocol driver
Tudor Ambarus
tudor.ambarus at linaro.org
Thu Feb 6 01:02:11 PST 2025
On 2/5/25 4:52 PM, Krzysztof Kozlowski wrote:
>> +static const struct acpm_handle *acpm_get_by_phandle(struct device *dev)
> "by_phandle" takes the name of the property with phandle as an argument,
> because otherwise you do not have here phandle part at all in the
> interface (see syscon API).
>
Indeed.
> Other option would be by actual phandle - see of_find_node_by_phandle().
>
> I would propose in such case only acpm_get() or maybe better of_acpm_get()?
>
>> +{
cut
>> + np = of_parse_phandle(dev->of_node, "exynos,acpm_ipc", 0);
> You need bindings for this somewhere and fix the underscore->hyphen...
> and vendor prefix. It really would not be accepted that way so please
> post consumer bindings anywhere.
There's no consumer upstreamed yet, I don't know where I shall specify
it. How about keeping the function name and modify the declaration to
+static const struct acpm_handle *acpm_get_by_phandle(struct device_node
*np,
+ const char *property)
This shall be in line with the syscon API and doesn't force me to
introduce bindings for the consumers now.
Thanks!
ta
More information about the linux-arm-kernel
mailing list