summaryrefslogtreecommitdiff
path: root/drivers/mmc/host/mmci.c
diff options
context:
space:
mode:
authorChen-Yu Tsai <wenst@chromium.org>2022-09-27 12:11:22 +0200
committerChen-Yu Tsai <wenst@chromium.org>2022-09-29 12:05:47 +0800
commitae333e63a2474a8277c9c34709615a40e46d2bb8 (patch)
treef0e4526f479057fb6e8ada68404ec23afef168b2 /drivers/mmc/host/mmci.c
parentb66add7a74e84a915dc8e1da89e192751e74bb4c (diff)
downloadlinux-ae333e63a2474a8277c9c34709615a40e46d2bb8.tar.gz
linux-ae333e63a2474a8277c9c34709615a40e46d2bb8.tar.bz2
linux-ae333e63a2474a8277c9c34709615a40e46d2bb8.zip
clk: mediatek: mt8183: Add clk mux notifier for MFG mux
When the MFG PLL clock, which is upstream of the MFG clock, is changed, the downstream clock and consumers need to be switched away from the PLL over to a stable clock to avoid glitches. This is done through the use of the newly added clk mux notifier. The notifier is set on the mux itself instead of the upstream PLL, but in practice this works, as the rate change notifitcations are propogated throughout the sub-tree hanging off the PLL. Just before rate changes, the MFG mux is temporarily and transparently switched to the 26 MHz main crystal. After the rate change, the mux is switched back. Signed-off-by: Chen-Yu Tsai <wenst@chromium.org> [Angelo: Rebased to assign clk_ops in mtk_mux_nb] Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Reviewed-by: Miles Chen <miles.chen@mediatek.com> Link: https://lore.kernel.org/r/20220927101128.44758-5-angelogioacchino.delregno@collabora.com Signed-off-by: Chen-Yu Tsai <wenst@chromium.org>
Diffstat (limited to 'drivers/mmc/host/mmci.c')
0 files changed, 0 insertions, 0 deletions