mmc: fix return value check condition
PATCH 1/1 mmc: fix return value check condition
sd_read_ssr returns 0, means no error.
Fixes 5b2e72f32721484("mmc: read ssr only if MMC write support is enabled")
Signed-off-by Peng Fan <[email protected]>
Cc Jaehoon Chung <[email protected]>
Cc Jean-Jacques Hiblot <[email protected]>
--- drivers/mmc/mmc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/mmc/mmc.c +1 -1
@@ -1689,7 +1689,7 @@ static int sd_select_mode_and_width(struct mmc *mmc, uint card_caps)#if CONFIG_IS_ENABLED (MMC_WRITE ) err =sd_read_ssr (mmc); -if (!err) +if (err)pr_warn ("unable to read ssr\n" );#endif if (!err)
Signature · 1 line
2.14.1
PATCH 1/1 mmc: fix return value check condition
Hi Peng,
Quoted 6 lines · Peng Fan
sd_read_ssrreturns 0, means no error.Fixes 5b2e72f32721484("mmc: read ssr only if MMC write support is enabled")Signed-off-by Peng Fan <[email protected]>Cc Jaehoon Chung <[email protected]>Cc Jean-Jacques Hiblot <[email protected]>
Will apply your patch. I have a problem about firewall exception for git.denx.de. After fixing my problem, re-send the email about applying a patch.
Best Regards,
Jaehoon Chung
Quoted 18 lines
--- drivers/mmc/mmc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/mmc/mmc.c +1
-1@@ -1689,7 +1689,7 @@ static int sd_select_mode_and_width(struct mmc *mmc, uint card_caps)#if CONFIG_IS_ENABLED (MMC_WRITE ) err =sd_read_ssr (mmc); -if (!err) +if (err)pr_warn ("unable to read ssr\n" );#endif if (!err)
Hi,
Quoted 2 lines · Peng Fan
sd_read_ssrreturns 0, means no error.Fixes 5b2e72f32721484("mmc: read ssr only if MMC write support is enabled")
Sorry for late. Applied to u-boot-mmc. Thanks!
Best Regards,
Jaehoon Chung
Quoted 22 lines
Signed-off-by Peng Fan <[email protected]>Cc Jaehoon Chung <[email protected]>Cc Jean-Jacques Hiblot <[email protected]>--- drivers/mmc/mmc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/mmc/mmc.c +1
-1@@ -1689,7 +1689,7 @@ static int sd_select_mode_and_width(struct mmc *mmc, uint card_caps)#if CONFIG_IS_ENABLED (MMC_WRITE ) err =sd_read_ssr (mmc); -if (!err) +if (err)pr_warn ("unable to read ssr\n" );#endif if (!err)