[PATCH v2 31/31] clk: mediatek: Warn if clk IDs are duplicated

AngeloGioacchino Del Regno angelogioacchino.delregno at collabora.com
Thu Feb 3 01:47:29 PST 2022


Il 02/02/22 14:48, Chen-Yu Tsai ha scritto:
> The Mediatek clk driver library handles duplicate clock IDs in two
> different ways: either ignoring the duplicate entry, or overwriting
> the old clk. Either way may cause unexpected behavior, and the latter
> also causes an orphan clk that cannot be cleaned up.
> 
> Align the behavior so that later duplicate entries are ignored, and
> a warning printed. The warning will also aid in making the issue
> noticeable.
> 
> Signed-off-by: Chen-Yu Tsai <wenst at chromium.org>
> Reviewed-by: Miles Chen <miles.chen at mediatek.com>

Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno at collabora.com>




More information about the Linux-mediatek mailing list