OSDN Git Service

clk: at91: pll: fix input range validity check
authorBoris Brezillon <boris.brezillon@free-electrons.com>
Fri, 27 Mar 2015 22:53:15 +0000 (23:53 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 29 Jun 2015 19:29:07 +0000 (12:29 -0700)
commit425acc53f004527303496adec2c9c26b6e8932de
treef2c032845a750bbb0ac0ab3f1fbd413a807fba5d
parent229367940d16877ec300652fced3e577db2e5769
clk: at91: pll: fix input range validity check

commit 6c7b03e1aef2e92176435f4fa562cc483422d20f upstream.

The PLL impose a certain input range to work correctly, but it appears that
this input range does not apply on the input clock (or parent clock) but
on the input clock after it has passed the PLL divisor.
Fix the implementation accordingly.

Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Reported-by: Jonas Andersson <jonas@microbit.se>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/clk/at91/clk-pll.c