Skip to content

Commit 06f76e4

Browse files
mwallevinodkoul
authored andcommitted
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: efda51a ("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>
1 parent 0f40d50 commit 06f76e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/phy/mediatek/phy-mtk-mipi-dsi-mt8183.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ static void mtk_mipi_tx_pll_disable(struct clk_hw *hw)
100100
static long mtk_mipi_tx_pll_round_rate(struct clk_hw *hw, unsigned long rate,
101101
unsigned long *prate)
102102
{
103-
return clamp_val(rate, 50000000, 1600000000);
103+
return clamp_val(rate, 125000000, 1600000000);
104104
}
105105

106106
static const struct clk_ops mtk_mipi_tx_pll_ops = {

0 commit comments

Comments
 (0)