]> git.hungrycats.org Git - linux/commitdiff
drm/radeon/kms: switch back to min->max pll post divider iteration
authorAlex Deucher <alexdeucher@gmail.com>
Mon, 31 Jan 2011 21:48:50 +0000 (16:48 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 17 Feb 2011 23:15:13 +0000 (15:15 -0800)
commit a6f9761743bf35b052180f4a8bdae4d2cc0465f6 upstream.

Seems more reliable.  Fixes:
https://bugzilla.kernel.org/show_bug.cgi?id=26552

Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/gpu/drm/radeon/radeon_display.c

index 1df4dc6c063cc44e0e7e943da9b62e6c85d27d38..5b928329c63a7809f5d5f205b299e08457e173aa 100644 (file)
@@ -517,7 +517,7 @@ void radeon_compute_pll(struct radeon_pll *pll,
                max_fractional_feed_div = pll->max_frac_feedback_div;
        }
 
-       for (post_div = max_post_div; post_div >= min_post_div; --post_div) {
+       for (post_div = min_post_div; post_div <= max_post_div; ++post_div) {
                uint32_t ref_div;
 
                if ((pll->flags & RADEON_PLL_NO_ODD_POST_DIV) && (post_div & 1))