Re: [PATCH v2 2/2] clk: mediatek: Remove CLK_SET_PARENT from all MSDC core clocks

From: Alexandre Mergnat
Date: Tue May 23 2023 - 06:58:40 EST


On 16/05/2023 15:52, AngeloGioacchino Del Regno wrote:
Various MSDC core clocks, used for multiple MSDC controller instances,
share the same parent(s): in order to add parents selection in the
mtk-sd driver to achieve an accurate clock rate for all modes, remove
the CLK_SET_RATE_PARENT flag from all MSDC clocks for all SoCs: this
will make sure that a clk_set_rate() call performed for a clock on
a secondary controller will not change the rate of a common parent,
which would result in an overclock or underclock of one of the
controllers.

Signed-off-by: AngeloGioacchino Del Regno<angelogioacchino.delregno@xxxxxxxxxxxxx>
Reviewed-by: Matthias Brugger<matthias.bgg@xxxxxxxxx>
Reviewed-by: Markus Schneider-Pargmann<msp@xxxxxxxxxxxx>

Tested on mt8365-evk board.

Reviewed-by: Alexandre Mergnat <amergnat@xxxxxxxxxxxx>
Tested-by: Alexandre Mergnat <amergnat@xxxxxxxxxxxx>