]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
mmc: rockchip: Log some error returns
authorSimon Glass <sjg@chromium.org>
Fri, 20 Sep 2024 07:24:39 +0000 (09:24 +0200)
committerTom Rini <trini@konsulko.com>
Thu, 3 Oct 2024 17:52:17 +0000 (11:52 -0600)
Add a little logging to some places in this driver, to aid debugging
when something goes wrong.

Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/mmc/rockchip_dw_mmc.c

index fb77b049834501f6ce8a6628f9afccfe6b546279..7e341665aa34932c51e7c54cd0b85817e25a5872 100644 (file)
@@ -80,7 +80,7 @@ static int rockchip_dwmmc_of_to_plat(struct udevice *dev)
        priv->fifo_depth = dev_read_u32_default(dev, "fifo-depth", 0);
 
        if (priv->fifo_depth < 0)
-               return -EINVAL;
+               return log_msg_ret("rkp", -EINVAL);
        priv->fifo_mode = dev_read_bool(dev, "fifo-mode");
 
 #ifdef CONFIG_SPL_BUILD
@@ -96,7 +96,7 @@ static int rockchip_dwmmc_of_to_plat(struct udevice *dev)
                int val = dev_read_u32_default(dev, "max-frequency", -EINVAL);
 
                if (val < 0)
-                       return val;
+                       return log_msg_ret("rkc", val);
 
                priv->minmax[0] = 400000;  /* 400 kHz */
                priv->minmax[1] = val;