]> git.itanic.dy.fi Git - linux-stable/commit
phy: mediatek: mipi: mt8183: fix minimal supported frequency
authorMichael Walle <mwalle@kernel.org>
Thu, 23 Nov 2023 11:02:02 +0000 (12:02 +0100)
committerVinod Koul <vkoul@kernel.org>
Mon, 27 Nov 2023 12:53:26 +0000 (18:23 +0530)
commit06f76e464ac81c6915430b7155769ea4ef16efe4
treeb77a1872159d2e685430efe24cc20ca525d0435e
parent0f40d5099cd6d828fd7de6227d3eabe86016724c
phy: mediatek: mipi: mt8183: fix minimal supported frequency

The lowest supported clock frequency of the PHY is 125MHz (see also
mtk_mipi_tx_pll_enable()), but the clamping in .round_rate() has the
wrong minimal value, which will make the .enable() op return -EINVAL on
low frequencies. Fix the minimal clamping value.

Fixes: efda51a58b4a ("drm/mediatek: add mipi_tx driver for mt8183")
Signed-off-by: Michael Walle <mwalle@kernel.org>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://lore.kernel.org/r/20231123110202.2025585-1-mwalle@kernel.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/mediatek/phy-mtk-mipi-dsi-mt8183.c