]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drm/mgag200: fix G200ER pll picking algorithm
authorDave Airlie <airlied@gmail.com>
Thu, 9 Aug 2012 05:00:15 +0000 (15:00 +1000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 26 Aug 2012 02:31:39 +0000 (19:31 -0700)
commitbe67f30591ffe86e250955645a97e3d68f5a2cdf
treeb61f09923182986d4d9d9ba1f8ece78e27c02de3
parentdd9c8a48cc8546afbad374583e56b4aa38a6031f
drm/mgag200: fix G200ER pll picking algorithm

commit 9830605d4c070b16ec5c24a75503877cc7698409 upstream.

The original code was misported from the X driver,

a) an int went to unsigned int, breaking the downward counting testm code
b) the port did the vco/computed clock bits completely wrong.

This fixes an infinite loop on modprobe on some Dell servers with the G200ER
chipset variant.

Found in internal testing.

Signed-off-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/mgag200/mgag200_mode.c