[PATCH] mmc: sdhci-cadence6: Fix DT property value endianness

Marek Vasut marek.vasut at mailbox.org
Sun Sep 28 20:54:44 CEST 2025


On 9/28/25 8:38 PM, Tanmay Kathpalia wrote:
> Convert device tree property value to CPU endianness using
> fdt32_to_cpu(). This prevents incorrect values on platforms
> with differing endianness.
> 
> Signed-off-by: Tanmay Kathpalia <tanmay.kathpalia at altera.com>
> ---
>   drivers/mmc/sdhci-cadence6.c | 4 ++--
>   1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/mmc/sdhci-cadence6.c b/drivers/mmc/sdhci-cadence6.c
> index 9a92b8437a6..6f60fee6df4 100644
> --- a/drivers/mmc/sdhci-cadence6.c
> +++ b/drivers/mmc/sdhci-cadence6.c
> @@ -220,14 +220,14 @@ int sdhci_cdns6_phy_adj(struct udevice *dev, struct sdhci_cdns_plat *plat, u32 m
>   		prop = fdt_getprop(gd->fdt_blob, dev_of_offset(dev),
>   				   sdhci_cdns6_phy_cfgs[i].property, NULL);
Use dev_read_u32_default() or some such function from 
drivers/core/read.c , that should greatly simplify this code.


More information about the U-Boot mailing list