summaryrefslogtreecommitdiff
path: root/drivers/clk/mediatek/clk-mux.h
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2021-01-25 20:08:19 +0300
committerStephen Boyd <sboyd@kernel.org>2021-02-09 11:01:28 +0300
commit31a42c2f3b5d3781eda0d1ed95e63151b746c7b9 (patch)
treefa2dea17149fc18343150e7d895c8b39104d21e8 /drivers/clk/mediatek/clk-mux.h
parent6df3c6d9fdde0d546767b2d4e7eba6a7d64847b6 (diff)
downloadlinux-31a42c2f3b5d3781eda0d1ed95e63151b746c7b9.tar.xz
clk: mediatek: mux: Update parent at enable time
The mux clocks don't always correctly take the new parent into account when the parent is updated while the clock is disabled. Set the update bit when enabling the clock to force an update of the mux. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Link: https://lore.kernel.org/r/20210125170819.26130-3-laurent.pinchart@ideasonboard.com Reviewed-by: Weiyi Lu <weiyi.lu@mediatek.com> Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Diffstat (limited to 'drivers/clk/mediatek/clk-mux.h')
-rw-r--r--drivers/clk/mediatek/clk-mux.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/clk/mediatek/clk-mux.h b/drivers/clk/mediatek/clk-mux.h
index 15c62366ba9a..f1946161ade1 100644
--- a/drivers/clk/mediatek/clk-mux.h
+++ b/drivers/clk/mediatek/clk-mux.h
@@ -14,6 +14,7 @@ struct mtk_clk_mux {
struct regmap *regmap;
const struct mtk_mux *data;
spinlock_t *lock;
+ bool reparent;
};
struct mtk_mux {