]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i2c: tda998x: correct PLL divider calculation
authorRussell King <rmk+kernel@armlinux.org.uk>
Thu, 2 Aug 2018 09:27:15 +0000 (10:27 +0100)
committerRussell King <rmk+kernel@armlinux.org.uk>
Tue, 7 Aug 2018 09:32:03 +0000 (10:32 +0100)
commitb5db1c4c9a98e7743dacf6985c67f3dcfb915924
tree76a65a5577508571a4789aa92bf28b3ecb02d5b2
parent48be8f48e721c55c023083e2440a70b586b483b8
drm/i2c: tda998x: correct PLL divider calculation

The serializer PLL divider is a power-of-two divider, so our calculation
which assumes that it's a numerical divider is incorrect.  Replace it
with one that results in a power-of-two divider value instead.

Tested with all supported modes with a Samsung S24C750.

Tested-by: Peter Rosin <peda@axentia.se>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
drivers/gpu/drm/i2c/tda998x_drv.c