[PATCH V1 1/2] mmc: core: Adjust some error messages for SD UHS-II cards
From: Victor Shih
Date: Fri May 16 2025 - 05:28:02 EST
From: Victor Shih <victor.shih@xxxxxxxxxxxxxxxxxxx>
Adjust some error messages to debug mode to avoid causing
misunderstanding it is an error.
Signed-off-by: Ben Chuang <ben.chuang@xxxxxxxxxxxxxxxxxxx>
Signed-off-by: Victor Shih <victor.shih@xxxxxxxxxxxxxxxxxxx>
---
drivers/mmc/core/sd_uhs2.c | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/drivers/mmc/core/sd_uhs2.c b/drivers/mmc/core/sd_uhs2.c
index 1c31d0dfa961..58c4cef37f7c 100644
--- a/drivers/mmc/core/sd_uhs2.c
+++ b/drivers/mmc/core/sd_uhs2.c
@@ -36,6 +36,10 @@
#include "sd_ops.h"
#include "mmc_ops.h"
+#define DRIVER_NAME "sd_uhs2"
+#define DBG(f, x...) \
+ pr_debug(DRIVER_NAME " [%s()]: " f, __func__, ## x)
+
#define UHS2_WAIT_CFG_COMPLETE_PERIOD_US (1 * 1000)
#define UHS2_WAIT_CFG_COMPLETE_TIMEOUT_MS 100
@@ -91,8 +95,8 @@ static int sd_uhs2_phy_init(struct mmc_host *host)
err = host->ops->uhs2_control(host, UHS2_PHY_INIT);
if (err) {
- pr_err("%s: failed to initial phy for UHS-II!\n",
- mmc_hostname(host));
+ DBG("%s: failed to initial phy for UHS-II!\n",
+ mmc_hostname(host));
}
return err;
--
2.43.0