Commit ce69e2fe authored by Shawn Lin's avatar Shawn Lin Committed by Ulf Hansson

mmc: dw_mmc: silent verbose log when calling from PM context

When deploying runtime PM, it's quite verbose to print the
log of ios setting. Also it's useless to print it from system
PM as it should be the same with booting time. We also have
sysfs to get all these information from ios attribute, so let's
skip this print from PM context.
Signed-off-by: default avatarShawn Lin <shawn.lin@rock-chips.com>
Signed-off-by: default avatarJaehoon Chung <jh80.chung@samsung.com>
Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
parent e13934bd
...@@ -1182,11 +1182,13 @@ static void dw_mci_setup_bus(struct dw_mci_slot *slot, bool force_clkinit) ...@@ -1182,11 +1182,13 @@ static void dw_mci_setup_bus(struct dw_mci_slot *slot, bool force_clkinit)
if ((clock != slot->__clk_old && if ((clock != slot->__clk_old &&
!test_bit(DW_MMC_CARD_NEEDS_POLL, &slot->flags)) || !test_bit(DW_MMC_CARD_NEEDS_POLL, &slot->flags)) ||
force_clkinit) { force_clkinit) {
dev_info(&slot->mmc->class_dev, /* Silent the verbose log if calling from PM context */
"Bus speed (slot %d) = %dHz (slot req %dHz, actual %dHZ div = %d)\n", if (!force_clkinit)
slot->id, host->bus_hz, clock, dev_info(&slot->mmc->class_dev,
div ? ((host->bus_hz / div) >> 1) : "Bus speed (slot %d) = %dHz (slot req %dHz, actual %dHZ div = %d)\n",
host->bus_hz, div); slot->id, host->bus_hz, clock,
div ? ((host->bus_hz / div) >> 1) :
host->bus_hz, div);
/* /*
* If card is polling, display the message only * If card is polling, display the message only
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment