phy: mediatek: hdmi: mt8195: fix wrong pll calculus
authorGuillaume Ranquet <granquet@baylibre.com>
Fri, 14 Apr 2023 16:07:47 +0000 (18:07 +0200)
committerVinod Koul <vkoul@kernel.org>
Thu, 4 May 2023 17:42:11 +0000 (23:12 +0530)
commit9d9ff3d2a4a567b543b71c2967d2ccc5e0ac6816
tree9f14465942677067fa902f9e0894dea41db96635
parent714dd3c29a2241fb799586a5b03773103ca50fe5
phy: mediatek: hdmi: mt8195: fix wrong pll calculus

The clock rate calculus in mtk_hdmi_pll_calc() was wrong when it has
been replaced by 'div_u64'.

Fix the issue by multiplying the values in the denominator instead of
dividing them.

Fixes: 45810d486bb44 ("phy: mediatek: add support for phy-mtk-hdmi-mt8195")
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: Guillaume Ranquet <granquet@baylibre.com>
Link: https://lore.kernel.org/r/20230413-fixes-for-mt8195-hdmi-phy-v2-2-bbad62e64321@baylibre.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/mediatek/phy-mtk-hdmi-mt8195.c