]> git.baikalelectronics.ru Git - kernel.git/commit
drm/ast: Don't assume DVO enabled means SIL164 on uninitialized chips
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 4 Sep 2014 07:50:21 +0000 (17:50 +1000)
committerDave Airlie <airlied@redhat.com>
Mon, 15 Sep 2014 01:37:45 +0000 (11:37 +1000)
commit1028d8286bd5b5b505afb290200462a04b18cebb
tree718b8bdb20f7539a6175cb2cda6a09deffbfb050
parente251a433b0135c8b97b77e0358b24a789300ecf5
drm/ast: Don't assume DVO enabled means SIL164 on uninitialized chips

It looks like the AST2400 comes up with the DVO enable bit set,
which causes us to incorrectly assume we have a SIL164 regardless
of the value of the scratch registers setup by the BMC firmware.

So let's limit that test to the case where the chip has already
been setup by a BIOS.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/ast/ast_main.c