mmc: dw_mmc: hide clock message when card is resuming
Subsystems (2)
PATCH 1/1 mmc: dw_mmc: hide clock message when card is resuming
Commit e9748e0364fe ("mmc: dw_mmc: force setup bus if active slots exist") made a change resulted in clock message appears every time the card is resuming (every 5 second in average). Add condition that previously used to print the message.
--- drivers/mmc/host/dw_mmc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/mmc/host/dw_mmc.c +2 -1
@@ -1178,7 +1178,8 @@ static void dw_mci_setup_bus(struct dw_mci_slot *slot, bool force_clkinit)if ((clock != slot->__clk_old && !test_bit (DW_MMC_CARD_NEEDS_POLL , &slot->flags)) || - force_clkinit) { + (force_clkinit && + (slot->mmc->pm_flags &MMC_PM_KEEP_POWER ))) { dev_info(&slot->mmc->class_dev, "Bus speed (slot %d) = %dHz (slot req %dHz, actual %dHZ div = %d)\n", slot->id, host->bus_hz, clock,
Signature · 1 line
1.7.9.5
Jaehoon Chung
maintainerHi Alexander,
Quoted 4 lines · Alexander Kochetkov
Commit
e9748e0364fe("mmc:dw_mmc: force setup bus if active slots exist") made a change resulted in clock message appears every time the card is resuming (every 5 second in average). Add condition that previously used to print the message.
I think you are not using the latest kernel. which version do you use?
Could you check this?
Best Regards,
Jaehoon Chung
Quoted 22 lines
Fixes e9748e0364fe ("mmc: dw_mmc: force setup bus if active slots exist")Signed-off-by Alexander Kochetkov <[email protected]>--- drivers/mmc/host/dw_mmc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)drivers/mmc/host/dw_mmc.c +2
-1@@ -1178,7 +1178,8 @@ static void dw_mci_setup_bus(struct dw_mci_slot *slot, bool force_clkinit)if ((clock != slot->__clk_old && !test_bit (DW_MMC_CARD_NEEDS_POLL , &slot->flags)) || - force_clkinit) { + (force_clkinit && + (slot->mmc->pm_flags &MMC_PM_KEEP_POWER ))) { dev_info(&slot->mmc->class_dev, "Bus speed (slot %d) = %dHz (slot req %dHz, actual %dHZ div = %d)\n", slot->id, host->bus_hz, clock,
Quoted 8 lines
20 апр. 2017 г., в 13:06, Jaehoon Chung <[email protected]> написал(а):
I think you are not using the latest kernel. which version do you use?
Could you check this?
Commit ce69e2fea093 («mmc: dw_mmc: silent verbose log when calling from PM context») fix issue I have. So my patch not needed anymore.
I use 4.10.10, probably ce69e2fea093b7fa3991c87849c4955cd47796c9 should be backported to 4.10 branch. 4.9 branch doesn’t have commit e9748e0364fe ("mmc: dw_mmc: force setup bus if active slots exist») what cause the problem.
I’ll send request to stable.
Regards,
Alexander.