[PATCH] mmc: ftsdc010: make command timeout 250 ms as in the comment

Rick Chen rickchen36 at gmail.com
Mon Sep 5 02:53:17 CEST 2022


> From: Sergei Antonov <saproj at gmail.com>
> Sent: Friday, September 02, 2022 3:40 PM
> To: u-boot at lists.denx.de
> Cc: jh80.chung at samsung.com; peng.fan at nxp.com; yamada.masahiro at socionext.com; sjg at chromium.org; Rick Jian-Zhi Chen(陳建志) <rick at andestech.com>; Sergei Antonov <saproj at gmail.com>
> Subject: [PATCH] mmc: ftsdc010: make command timeout 250 ms as in the comment
>
> Get rid of discrepancy beween comment /* 250 ms */ and code which shifts by 4 thus dividing by 16.
> So change code to shift by 2 and make the timeout value 250 ms.
>
> Signed-off-by: Sergei Antonov <saproj at gmail.com>
> ---
>  drivers/mmc/ftsdc010_mci.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/mmc/ftsdc010_mci.c b/drivers/mmc/ftsdc010_mci.c index 570d54cf9d8f..cabb747fbbdb 100644
> --- a/drivers/mmc/ftsdc010_mci.c
> +++ b/drivers/mmc/ftsdc010_mci.c
> @@ -30,7 +30,7 @@
>  #include <syscon.h>
>  #include <linux/err.h>
>
> -#define CFG_CMD_TIMEOUT (CONFIG_SYS_HZ >> 4) /* 250 ms */
> +#define CFG_CMD_TIMEOUT (CONFIG_SYS_HZ >> 2) /* 250 ms */

Reviewed-by: Rick Chen <rick at andestech.com>


More information about the U-Boot mailing list