[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20241029131752.226764-3-ulf.hansson@linaro.org>
Date: Tue, 29 Oct 2024 14:17:48 +0100
From: Ulf Hansson <ulf.hansson@...aro.org>
To: linux-mmc@...r.kernel.org,
Ulf Hansson <ulf.hansson@...aro.org>
Cc: Adrian Hunter <adrian.hunter@...el.com>,
Victor Shih <victor.shih@...esyslogic.com.tw>,
Victor Shih <victorshihgli@...il.com>,
linux-kernel@...r.kernel.org
Subject: [PATCH 2/3] mmc: core: Add error handling of sd_uhs2_power_up()
In sd_uhs2_reinit() the call to sd_uhs2_power_up() lacks error handling, so
let's add it.
Signed-off-by: Ulf Hansson <ulf.hansson@...aro.org>
---
drivers/mmc/core/sd_uhs2.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/mmc/core/sd_uhs2.c b/drivers/mmc/core/sd_uhs2.c
index 06857e1bbdb0..f0d631b4bbd7 100644
--- a/drivers/mmc/core/sd_uhs2.c
+++ b/drivers/mmc/core/sd_uhs2.c
@@ -999,7 +999,9 @@ static int sd_uhs2_reinit(struct mmc_host *host)
struct mmc_card *card = host->card;
int err;
- sd_uhs2_power_up(host);
+ err = sd_uhs2_power_up(host);
+ if (err)
+ return err;
err = sd_uhs2_phy_init(host);
if (err)
--
2.43.0
Powered by blists - more mailing lists