[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210307170742.70949-1-paul@crapouillou.net>
Date: Sun, 7 Mar 2021 17:07:40 +0000
From: Paul Cercueil <paul@...pouillou.net>
To: Michael Turquette <mturquette@...libre.com>,
Stephen Boyd <sboyd@...nel.org>,
Ulf Hansson <ulf.hansson@...aro.org>,
Russell King <linux@...linux.org.uk>
Cc: od@...c.me, linux-clk@...r.kernel.org,
linux-kernel@...r.kernel.org, linux-mips@...r.kernel.org,
linux-mmc@...r.kernel.org, Paul Cercueil <paul@...pouillou.net>
Subject: [PATCH 0/2] mmc: jz4740: Support PLL frequency changes
Hi,
This set of two patches enables the MMC driver to cope with the main PLL
updating its rate, typically when the CPU frequency is being updated.
The first patch introduces clk_get_first_to_set_rate(), which will allow
the MMC driver to get a pointer to the clock that will effectively be
modified when calling clk_set_rate(); this is required to avoid a
chicken-and-egg situation with the clock notifier.
If accepted, this function will be reused in a few more drivers which
need to perform the same operation.
The patch to the MMC driver adds a atomic/mutex couple so that the
frequency change will happen when we know that the controller is not in
use.
Cheers,
-Paul
Paul Cercueil (2):
clk: Add clk_get_first_to_set_rate
mmc: jz4740: Add support for monitoring PLL clock rate changes
drivers/clk/clk.c | 9 +++++
drivers/mmc/host/jz4740_mmc.c | 70 ++++++++++++++++++++++++++++++++++-
include/linux/clk.h | 16 ++++++++
3 files changed, 94 insertions(+), 1 deletion(-)
--
2.30.1
Powered by blists - more mailing lists