]> git.baikalelectronics.ru Git - kernel.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)
committerDave Airlie <airlied@gmail.com>
Fri, 10 Aug 2012 10:31:37 +0000 (20:31 +1000)
commit4bc9dd2c11d950951ab8dc7be1fd70c7047ed9a5
treee99385fa8c9d9c1ab16bcb8a996959de9f4aa05d
parent26b3f8f905c1b8fd71ad9277157e109a42e6b29e
drm/mgag200: fix G200ER pll picking algorithm

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>
drivers/gpu/drm/mgag200/mgag200_mode.c