]> git.baikalelectronics.ru Git - kernel.git/commit
drm/ast: Fix calculation of MCLK
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 17 Feb 2017 02:57:30 +0000 (13:57 +1100)
committerDave Airlie <airlied@redhat.com>
Tue, 28 Feb 2017 03:14:22 +0000 (13:14 +1000)
commitd5227285e17afb5b8f7a7b3a15e950ed4d41aeaf
treebb37714e4493a0757c5b97de3631a29eded9edf6
parenta8d0cc929faf3b1580a4ed82b7c2b8c7189801fc
drm/ast: Fix calculation of MCLK

Some braces were missing causing an incorrect calculation.

Y.C. Chen from Aspeed provided me with the right formula
which I tested on AST2400 and 2500.

The MCLK isn't currently used by the driver (it will eventually
to filter modes) so the issue isn't catastrophic.

Also make the printed value a bit more meaningful

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Acked-by: Joel Stanley <joel@jms.id.au>
Tested-by: Y.C. Chen <yc_chen@aspeedtech.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/ast/ast_main.c