mmc: exynos_dw_mmc: Read common bus-width property
authorSam Protsenko <semen.protsenko@linaro.org>
Thu, 8 Aug 2024 03:14:32 +0000 (22:14 -0500)
committerMinkyu Kang <mk7.kang@samsung.com>
Mon, 19 Aug 2024 07:09:06 +0000 (16:09 +0900)
Instead of using non-standard "samsung,bus-width" dts property, read
common "bus-width" property used in upstream Linux kernel. It's safe to
do so, as "bus-width" property was already added to corresponding nodes
in all affected Exynos device tree files.

No functional change.

Signed-off-by: Sam Protsenko <semen.protsenko@linaro.org>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
drivers/mmc/exynos_dw_mmc.c
drivers/mmc/s5p_sdhci.c

index b5c8f59..612c2d0 100644 (file)
@@ -274,7 +274,7 @@ static int exynos_dwmmc_of_to_plat(struct udevice *dev)
 #endif
 
        /* Get the bus width from the device node (Default is 4bit buswidth) */
-       host->buswidth = dev_read_u32_default(dev, "samsung,bus-width", 4);
+       host->buswidth = dev_read_u32_default(dev, "bus-width", 4);
 
        /* Set the base address from the device node */
        host->ioaddr = dev_read_addr_ptr(dev);
index 80dbb38..278019f 100644 (file)
@@ -166,7 +166,7 @@ static int sdhci_get_config(const void *blob, int node, struct sdhci_host *host)
        host->index = dev_id - PERIPH_ID_SDMMC0;
 
        /* Get bus width */
-       bus_width = fdtdec_get_int(blob, node, "samsung,bus-width", 0);
+       bus_width = fdtdec_get_int(blob, node, "bus-width", 0);
        if (bus_width <= 0) {
                debug("MMC: Can't get bus-width\n");
                return -EINVAL;