]> git.proxmox.com Git - mirror_ubuntu-focal-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)
commit42fb1427443b8a72a3c07efa14d53c63d324cba8
tree718b8bdb20f7539a6175cb2cda6a09deffbfb050
parent261a3ad42605f5824072d1410d3c5f7b93f7cad8
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