[U-Boot] [PATCH] mmc: add the device name in debugging message for supplying vmmc

If vmmc didn't supply, we didn't know which card didn't supply vmmc. And changed from "put" to "debug".
Signed-off-by: Jaehoon Chung jh80.chung@samsung.com --- drivers/mmc/mmc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c index 320413a..4380c7c 100644 --- a/drivers/mmc/mmc.c +++ b/drivers/mmc/mmc.c @@ -1595,7 +1595,7 @@ static int mmc_power_init(struct mmc *mmc) ret = device_get_supply_regulator(mmc->dev, "vmmc-supply", &vmmc_supply); if (ret) { - puts("No vmmc supply\n"); + debug("%s: No vmmc supply\n", mmc->dev->name); return 0; }

Hi Chung, On Mon, Oct 24, 2016 at 03:22:22PM +0900, Jaehoon Chung wrote:
If vmmc didn't supply, we didn't know which card didn't supply vmmc. And changed from "put" to "debug".
Signed-off-by: Jaehoon Chung jh80.chung@samsung.com
Reviewed-by: Peng Fan peng.fan@nxp.com
Regards, Peng.
drivers/mmc/mmc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c index 320413a..4380c7c 100644 --- a/drivers/mmc/mmc.c +++ b/drivers/mmc/mmc.c @@ -1595,7 +1595,7 @@ static int mmc_power_init(struct mmc *mmc) ret = device_get_supply_regulator(mmc->dev, "vmmc-supply", &vmmc_supply); if (ret) {
puts("No vmmc supply\n");
return 0; }debug("%s: No vmmc supply\n", mmc->dev->name);
-- 2.10.1
U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

On 10/24/2016 05:51 PM, Peng Fan wrote:
Hi Chung, On Mon, Oct 24, 2016 at 03:22:22PM +0900, Jaehoon Chung wrote:
If vmmc didn't supply, we didn't know which card didn't supply vmmc. And changed from "put" to "debug".
Signed-off-by: Jaehoon Chung jh80.chung@samsung.com
Reviewed-by: Peng Fan peng.fan@nxp.com
Applied on u-boot-mmc. Thanks.
Best Regards, Jaehoon Chung
Regards, Peng.
drivers/mmc/mmc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c index 320413a..4380c7c 100644 --- a/drivers/mmc/mmc.c +++ b/drivers/mmc/mmc.c @@ -1595,7 +1595,7 @@ static int mmc_power_init(struct mmc *mmc) ret = device_get_supply_regulator(mmc->dev, "vmmc-supply", &vmmc_supply); if (ret) {
puts("No vmmc supply\n");
return 0; }debug("%s: No vmmc supply\n", mmc->dev->name);
-- 2.10.1
U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
participants (2)
-
Jaehoon Chung
-
Peng Fan