Skip to content

Commit 3de5bdf

Browse files
abresticp2mate-nv
authored andcommitted
clk: tegra: use max divider if divider overflows
When requesting a rate less than the minimum clock rate for a divider, use the maximum divider value instead of bailing out with an error. This matches the behavior of the generic clock divider. Signed-off-by: Andrew Bresticker <abrestic@chromium.org>
1 parent 88b4bd7 commit 3de5bdf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/clk/tegra/clk-divider.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ static int get_div(struct tegra_clk_frac_div *divider, unsigned long rate,
5959
return 0;
6060

6161
if (divider_ux1 > get_max_div(divider))
62-
return -EINVAL;
62+
return get_max_div(divider);
6363

6464
return divider_ux1;
6565
}

0 commit comments

Comments
 (0)