]> git.baikalelectronics.ru Git - kernel.git/commit
drm/ast: POST chip at probe time if VGA not enabled
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 4 Sep 2014 07:50:11 +0000 (17:50 +1000)
committerDave Airlie <airlied@redhat.com>
Mon, 15 Sep 2014 01:37:44 +0000 (11:37 +1000)
commit660e8e51c7f5138bbbf5005ade0afb6719de3ef9
treee78133fd737c7ed848576c6dcc1584adbc0354d2
parent26f50eb7753bd9e4c5fdda2516201f23f2bed4ce
drm/ast: POST chip at probe time if VGA not enabled

We need to do it on machines without a BIOS such as POWER8. Also
for detection to work without triggering PCIe errors, we need
to enable VGA early on, inside ast_detect_chip().

While touching those files, replace a few hard coded register
numbers with the corresponding symbolic constant.

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