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