Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1626252
| From | Alexander Kochetkov <al.kochet@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH] mmc: dw_mmc: hide clock message when card is resuming |
| Date | 2017-04-19 17:00 +0200 |
| Message-ID | <txZfk-4Gn-29@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
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.
Fixes: e9748e0364fe ("mmc: dw_mmc: force setup bus if active slots exist")
Signed-off-by: Alexander Kochetkov <al.kochet@gmail.com>
---
drivers/mmc/host/dw_mmc.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/mmc/host/dw_mmc.c b/drivers/mmc/host/dw_mmc.c
index 73db085..faaf2c1 100644
--- a/drivers/mmc/host/dw_mmc.c
+++ b/drivers/mmc/host/dw_mmc.c
@@ -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,
--
1.7.9.5
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH] mmc: dw_mmc: hide clock message when card is resuming Alexander Kochetkov <al.kochet@gmail.com> - 2017-04-19 17:00 +0200
Re: [PATCH] mmc: dw_mmc: hide clock message when card is resuming Jaehoon Chung <jh80.chung@samsung.com> - 2017-04-20 12:10 +0200
Re: [PATCH] mmc: dw_mmc: hide clock message when card is resuming Alexander Kochetkov <al.kochet@gmail.com> - 2017-04-20 16:00 +0200
csiph-web