Skip to content

Commit 341d203

Browse files
AngeloGioacchino Del Regnowens
authored andcommitted
clk: mediatek: clk-mt8192-mfg: Propagate rate changes to parent
Following what was done on MT8183 and MT8195, also propagate the rate changes to MFG_BG3D's parent on MT8192 to allow for proper GPU DVFS. Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Reviewed-by: Chen-Yu Tsai <wenst@chromium.org> Link: https://lore.kernel.org/r/20220927101128.44758-10-angelogioacchino.delregno@collabora.com Signed-off-by: Chen-Yu Tsai <wenst@chromium.org>
1 parent 72d38ed commit 341d203

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

drivers/clk/mediatek/clk-mt8192-mfg.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,10 @@ static const struct mtk_gate_regs mfg_cg_regs = {
1818
.sta_ofs = 0x0,
1919
};
2020

21-
#define GATE_MFG(_id, _name, _parent, _shift) \
22-
GATE_MTK(_id, _name, _parent, &mfg_cg_regs, _shift, &mtk_clk_gate_ops_setclr)
21+
#define GATE_MFG(_id, _name, _parent, _shift) \
22+
GATE_MTK_FLAGS(_id, _name, _parent, &mfg_cg_regs, \
23+
_shift, &mtk_clk_gate_ops_setclr, \
24+
CLK_SET_RATE_PARENT)
2325

2426
static const struct mtk_gate mfg_clks[] = {
2527
GATE_MFG(CLK_MFG_BG3D, "mfg_bg3d", "mfg_pll_sel", 0),

0 commit comments

Comments
 (0)