Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1341073 > unrolled thread

[PATCH 3.2 59/67] ARM: 8519/1: ICST: try other dividends than 1

Started byBen Hutchings <ben@decadent.org.uk>
First post2016-02-23 23:00 +0100
Last post2016-02-23 23:00 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 3.2 59/67] ARM: 8519/1: ICST: try other dividends than 1 Ben Hutchings <ben@decadent.org.uk> - 2016-02-23 23:00 +0100

#1341073 — [PATCH 3.2 59/67] ARM: 8519/1: ICST: try other dividends than 1

FromBen Hutchings <ben@decadent.org.uk>
Date2016-02-23 23:00 +0100
Subject[PATCH 3.2 59/67] ARM: 8519/1: ICST: try other dividends than 1
Message-ID<r5t9U-2Zj-13@gated-at.bofh.it>
3.2.78-rc1 review patch.  If anyone has any objections, please let me know.

------------------

From: Linus Walleij <linus.walleij@linaro.org>

commit e972c37459c813190461dabfeaac228e00aae259 upstream.

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>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
---
 arch/arm/common/icst.c | 1 +
 1 file changed, 1 insertion(+)

--- a/arch/arm/common/icst.c
+++ b/arch/arm/common/icst.c
@@ -62,6 +62,7 @@ icst_hz_to_vco(const struct icst_params
 
 		if (f > p->vco_min && f <= p->vco_max)
 			break;
+		i++;
 	} while (i < 8);
 
 	if (i >= 8)

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web