Skip to content

Commit e972c37

Browse files
Linus WalleijRussell King
authored andcommitted
ARM: 8519/1: ICST: try other dividends than 1
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>
1 parent 5070fb1 commit e972c37

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎arch/arm/common/icst.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ icst_hz_to_vco(const struct icst_params *p, unsigned long freq)
6262

6363
if (f > p->vco_min && f <= p->vco_max)
6464
break;
65+
i++;
6566
} while (i < 8);
6667

6768
if (i >= 8)

0 commit comments

Comments
 (0)