]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ARM: 8519/1: ICST: try other dividends than 1
authorLinus Walleij <linus.walleij@linaro.org>
Wed, 10 Feb 2016 08:25:17 +0000 (09:25 +0100)
committerSasha Levin <sasha.levin@oracle.com>
Fri, 4 Mar 2016 15:25:41 +0000 (10:25 -0500)
commit1c35d875d020c798da316ddbac5da7be93b6901c
tree3ff781dcc60fe5776e9f26a8dff447f1a20a99c8
parent5ae3f5ad236f18bda2486bc557333427ec8a6797
ARM: 8519/1: ICST: try other dividends than 1

[ Upstream commit e972c37459c813190461dabfeaac228e00aae259 ]

Since the dawn of time the ICST code has only supported divide
by one or hang in an eternal loop. Luckily we were always dividing
by one because the reference frequency for the systems using
the ICSTs is 24MHz and the [min,max] values for the PLL input
if [10,320] MHz for ICST307 and [6,200] for ICST525, so the loop
will always terminate immediately without assigning any divisor
for the reference frequency.

But for the code to make sense, let's insert the missing i++

Reported-by: David Binderman <dcb314@hotmail.com>
Cc: stable@vger.kernel.org
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
arch/arm/common/icst.c