Fix ADI driver header dependencies
Subsystems (2)
cover Fix ADI driver header dependencies
Between 2025.07 and 2025.10 many header dependency chains were improved, but this exposed implicit header usage in several of our drivers. This wasn't discovered before or included in the original fixes because our drivers are not yet used by any mainline-supported boards, so build tests did not find them. This series addresses the two build failures I've encountered while rebasing our work onto 2025.10 and continuing to prepare the next submission of our board files.
Greg Malysa (2):
net: dwc_eth_qos_adi: Add missing header
mmc: adi_sdhci: Update headers
drivers/mmc/adi_sdhci.c | 1 + drivers/net/dwc_eth_qos_adi.c | 1 + 2 files changed, 2 insertions(+)
Signature · 4 lines
2.45.2 base-commit: 76b8edbc732e327d1e56f08c641f51fdefdbff06 branch: dev/uboot2025.10-fixes
PATCH 1/2 net: dwc_eth_qos_adi: Add missing header
Following header dependency cleanups, an implicit dependence on env.h was exposed in dwc_eth_qos_adi. However because this driver is not (yet) enabled in any defconfigs, build tests did not identify the missing header. This adds the missing #include so that the driver builds correctly when enabled.
---
--- drivers/net/dwc_eth_qos_adi.c | 1 + 1 file changed, 1 insertion(+)
drivers/net/dwc_eth_qos_adi.c +1 -0
@@ -10,6 +10,7 @@#include <clk.h> #include <dm.h> +#include <env.h> #include <net.h> #include <phy.h> #include <reset.h>
Signature · 1 line
2.45.2
PATCH 2/2 mmc: adi_sdhci: Update headers
In reply to Greg MalysaAs part of the header dependency cleanup between 2025.07 and 2025.10, an implicit route to obtain SZ_128M from linux/sizes.h was removed. This adds an explicit reference to linux/sizes.h to fix build failures for this driver.
---
drivers/mmc/adi_sdhci.c | 1 + 1 file changed, 1 insertion(+)
drivers/mmc/adi_sdhci.c +1 -0
@@ -15,6 +15,7 @@#include <malloc.h> #include <sdhci.h> #include <asm/cache.h> +#include <linux/sizes.h> /* 400KHz is max freq for card ID etc. Use that as min */ #define EMMC_MIN_FREQ 400000
Signature · 1 line
2.45.2
RE: [PATCH 2/2] mmc: adi_sdhci: Update headers
Quoted 18 lines
Subject: [PATCH 2/2] mmc:
adi_sdhci: Update headersAs part of the header dependency cleanup between 2025.07 and 2025.10, an implicit route to obtain
SZ_128Mfromlinux/sizes.hwas removed. This adds an explicit reference tolinux/sizes.hto fix build failures for this driver.Signed-off-by Greg Malysa <[email protected]>---
drivers/mmc/adi_sdhci.c | 1 + 1 file changed, 1 insertion(+)drivers/mmc/adi_sdhci.c index renamed from drivers/mmc/adi_sdhci.c +0
-0
65a22cefb71..f58897b5218100644
drivers/mmc/adi_sdhci.c line 19
Quoted 5 lines
drivers/mmc/adi_sdhci.c +1
-0@@ -15,6 +15,7 @@#include <malloc.h> #include <sdhci.h> #include <asm/cache.h> +#include <linux/sizes.h>
Quoted 9 lines · Greg Malysa
Between 2025.07 and 2025.10 many header dependency chains were improved, but this exposed implicit header usage in several of our drivers. This wasn't discovered before or included in the original fixes because our drivers are not yet used by any mainline-supported boards, so build tests did not find them. This series addresses the two build failures I've encountered while rebasing our work onto 2025.10 and continuing to prepare the next submission of our board files.
[...]
Applied to u-boot/next, thanks!
[1/2] net: dwc_eth_qos_adi: Add missing header
commit: 56aa947c2ad6cbdf4e7a4281e83689ac3fbc8498
[2/2] mmc: adi_sdhci: Update headers
commit: 2941e4c0476c69ef10e0900a8d9cac40a6dcc831Signature · 1 line
Tom