mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
clk/rockchip/regmap: pll: limit postdiv2 max value
Change-Id: I0dcb5001960cf0dcaa82f992b7d428f6d08678ff Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
This commit is contained in:
@@ -152,6 +152,9 @@ static long clk_pll_round_rate(unsigned long fin, unsigned long fout,
|
||||
break;
|
||||
}
|
||||
|
||||
if (_postdiv2 > 7)
|
||||
return -EINVAL;
|
||||
|
||||
fout *= _postdiv1 * _postdiv2;
|
||||
} else {
|
||||
_postdiv1 = 1;
|
||||
|
||||
Reference in New Issue
Block a user