clk: mediatek: mt8365: Fix inverted topclk operations
authorMarkus Schneider-Pargmann <msp@baylibre.com>
Thu, 11 May 2023 13:32:26 +0000 (15:32 +0200)
committerStephen Boyd <sboyd@kernel.org>
Tue, 13 Jun 2023 01:12:09 +0000 (18:12 -0700)
commita1043fbc8f99c7df2d70993eecad3baee07dc180
tree2cc746321be97fc8f75653e7e4315d724f15445c
parentd54fb4b25a0261bf2f2bb7093fdf11a36718bf25
clk: mediatek: mt8365: Fix inverted topclk operations

The given operations are inverted for the wrong registers which makes
multiple of the mt8365 hardware units unusable. In my setup at least usb
did not work.

Fixed by swapping the operations with the inverted ones.

Reported-by: Alexandre Mergnat <amergnat@baylibre.com>
Fixes: 905b7430d3cc ("clk: mediatek: mt8365: Convert simple_gate to mtk_gate clocks")
Signed-off-by: Markus Schneider-Pargmann <msp@baylibre.com>
Link: https://lore.kernel.org/r/20230511133226.913600-1-msp@baylibre.com
Tested-by: Alexandre Mergnat <amergnat@baylibre.com>
Reviewed-by: Alexandre Mergnat <amergnat@baylibre.com>
Reviewed-by: Matthias Brugger <matthias.bgg@gmail.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/mediatek/clk-mt8365.c