drm/mgag200: fix G200ER pll picking algorithm
authorDave Airlie <airlied@gmail.com>
Thu, 9 Aug 2012 05:00:15 +0000 (15:00 +1000)
committerDave Airlie <airlied@gmail.com>
Fri, 10 Aug 2012 10:31:37 +0000 (20:31 +1000)
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.

Cc: stable@vger.kernel.org
Signed-off-by: Dave Airlie <airlied@redhat.com>

No differences found