clk: mediatek: mux: Update parent at enable time
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Mon, 25 Jan 2021 17:08:19 +0000 (19:08 +0200)
committerStephen Boyd <sboyd@kernel.org>
Tue, 9 Feb 2021 08:01:28 +0000 (00:01 -0800)
commit31a42c2f3b5d3781eda0d1ed95e63151b746c7b9
treefa2dea17149fc18343150e7d895c8b39104d21e8
parent6df3c6d9fdde0d546767b2d4e7eba6a7d64847b6
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>
drivers/clk/mediatek/clk-mux.c
drivers/clk/mediatek/clk-mux.h