Skip to contentSkip to conversation

net: dwc_eth_ops: Correct check for FDT_64BIT

PATCH In review Tom Rini 2 participants 2 messages Oct 8, 2025 Network drivers

lore
Share & tools
lore

Tom Rini

author
#0 lore raw

PATCH v2 1/1 net: dwc_eth_ops: Correct check for FDT_64BIT

There is no xPL_FDT_64BIT symbol and it would furthermore not likely make sense for there to be one. Correct this check to use IS_ENABLED and not CONFIG_IS_ENABLED.

---
Changes in v2:
- Fix the commit message per Jerome

Cc Jerome Forissier <[email protected]>
---
 drivers/net/dwc_eth_qos.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/dwc_eth_qos.c +1 -1
index 551ee0ea6a02..a098916a674b 100644
@@ -1411,7 +1411,7 @@ static fdt_addr_t eqos_get_base_addr_common(struct udevice *dev, fdt_addr_t addr
 	struct eqos_priv *eqos = dev_get_priv(dev);
 
 	if (addr == FDT_ADDR_T_NONE) {
-#if CONFIG_IS_ENABLED(FDT_64BIT)
+#if IS_ENABLED(CONFIG_FDT_64BIT)
 		dev_err(dev, "addr=0x%llx is invalid.\n", addr);
 #else
 		dev_err(dev, "addr=0x%x is invalid.\n", addr);
Signature · 1 line
2.43.0
Acked-by on v2 1/1
#1 lore raw
Quoted 19 lines · Tom Rini

There is no xPL_FDT_64BIT symbol and it would furthermore not likely make sense for there to be one. Correct this check to use IS_ENABLED and not CONFIG_IS_ENABLED.

---
Changes in v2:
- Fix the commit message per Jerome

Cc Jerome Forissier <[email protected]>
---
 drivers/net/dwc_eth_qos.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/dwc_eth_qos.c +0 -0
index 551ee0ea6a02..a098916a674b 100644

drivers/net/dwc_eth_qos.c static fdt_addr_t eqos_get_base_addr_common(struct udevice *dev, fdt_addr_t addr · line 1417

Quoted 8 lines
drivers/net/dwc_eth_qos.c +1 -1
@@ -1411,7 +1411,7 @@ static fdt_addr_t eqos_get_base_addr_common(struct udevice *dev, fdt_addr_t addr
 	struct eqos_priv *eqos = dev_get_priv(dev);
 
 	if (addr == FDT_ADDR_T_NONE) {
-#if CONFIG_IS_ENABLED(FDT_64BIT)
+#if IS_ENABLED(CONFIG_FDT_64BIT)
 		dev_err(dev, "addr=0x%llx is invalid.\n", addr);
 #else
 		dev_err(dev, "addr=0x%x is invalid.\n", addr);

Thanks!

Signature · 1 line
Jerome