blob: b84131ea8201f994c82d86cd6dc261b1781074ed [file] [log] [blame]
Joel Stanleye50183f2017-02-28 12:17:46 +10301From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2From: "Y.C. Chen" <yc_chen@aspeedtech.com>
3Date: Wed, 22 Feb 2017 15:14:19 +1100
4Subject: [PATCH 14/15] drm/ast: Call open_key before enable_mmio in POST code
5
6open_key enables access the registers used by enable_mmio
7
8Signed-off-by: Y.C. Chen <yc_chen@aspeedtech.com>
9Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
10Signed-off-by: Joel Stanley <joel@jms.id.au>
11---
12 drivers/gpu/drm/ast/ast_post.c | 2 +-
13 1 file changed, 1 insertion(+), 1 deletion(-)
14
15diff --git a/drivers/gpu/drm/ast/ast_post.c b/drivers/gpu/drm/ast/ast_post.c
16index a5a780921553..f7d421359d56 100644
17--- a/drivers/gpu/drm/ast/ast_post.c
18+++ b/drivers/gpu/drm/ast/ast_post.c
19@@ -374,8 +374,8 @@ void ast_post_gpu(struct drm_device *dev)
20 pci_write_config_dword(ast->dev->pdev, 0x04, reg);
21
22 ast_enable_vga(dev);
23- ast_enable_mmio(dev);
24 ast_open_key(ast);
25+ ast_enable_mmio(dev);
26 ast_set_def_ext_reg(dev);
27
28 if (ast->config_mode == ast_use_p2a) {
29--
302.11.0
31