Thread (24 messages) 24 messages, 4 authors, 2025-11-13

Re: [PATCH v5 2/8] net: stmmac: qcom-ethqos: use generic device properties

From: Bartosz Golaszewski <hidden>
Date: 2025-11-13 13:19:01
Also in: imx, linux-amlogic, linux-arm-msm, linux-devicetree, linux-mips, linux-renesas-soc, linux-riscv, linux-rockchip, linux-sunxi, lkml

On Fri, Nov 7, 2025 at 11:49 AM Konrad Dybcio
[off-list ref] wrote:
On 11/7/25 11:29 AM, Bartosz Golaszewski wrote:
quoted
From: Bartosz Golaszewski <redacted>

In order to drop the dependency on CONFIG_OF, convert all device property
getters from OF-specific to generic device properties and stop pulling
in any linux/of.h symbols.

Signed-off-by: Bartosz Golaszewski <redacted>
---
[...]
quoted
-     if (of_property_read_bool(np, "snps,tso"))
+     if (device_property_present(dev, "snps,tso"))
This is a change in behavior - "snps,tso = <0>" would have previously
returned false, it now returns true
This property is a boolean flag, it cannot have a value.

Bartosz
although it seems like it's the plat driver clunkily working around
not including the common compatible and inlining parts of the common
probe functions..

Konrad
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help