[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1482213199-29152-2-git-send-email-riteshh@codeaurora.org>
Date: Tue, 20 Dec 2016 11:23:16 +0530
From: Ritesh Harjani <riteshh@...eaurora.org>
To: ulf.hansson@...aro.org, adrian.hunter@...el.com
Cc: linux-mmc@...r.kernel.org, shawn.lin@...k-chips.com,
linux-kernel@...r.kernel.org, stummala@...eaurora.org,
georgi.djakov@...aro.org, linux-arm-msm@...r.kernel.org,
pramod.gurav@...aro.org, jeremymc@...hat.com,
venkatg@...eaurora.org, asutoshd@...eaurora.org,
Ritesh Harjani <riteshh@...eaurora.org>
Subject: [PATCH 1/4] mmc: core: Return from mmc_set_clock if hz is already set to ios.clock
Signed-off-by: Ritesh Harjani <riteshh@...eaurora.org>
---
drivers/mmc/core/core.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c
index 543eadd..125f8a9 100644
--- a/drivers/mmc/core/core.c
+++ b/drivers/mmc/core/core.c
@@ -1139,6 +1139,9 @@ void mmc_set_clock(struct mmc_host *host, unsigned int hz)
if (hz > host->f_max)
hz = host->f_max;
+ if (hz == host->ios.clock)
+ return;
+
host->ios.clock = hz;
mmc_set_ios(host);
}
--
The Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project.
Powered by blists - more mailing lists