Joel Stanley | e50183f | 2017-02-28 12:17:46 +1030 | [diff] [blame] | 1 | From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 |
| 2 | From: "Y.C. Chen" <yc_chen@aspeedtech.com> |
| 3 | Date: Wed, 22 Feb 2017 15:14:19 +1100 |
| 4 | Subject: [PATCH 14/15] drm/ast: Call open_key before enable_mmio in POST code |
| 5 | |
| 6 | open_key enables access the registers used by enable_mmio |
| 7 | |
| 8 | Signed-off-by: Y.C. Chen <yc_chen@aspeedtech.com> |
| 9 | Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> |
| 10 | Signed-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 | |
| 15 | diff --git a/drivers/gpu/drm/ast/ast_post.c b/drivers/gpu/drm/ast/ast_post.c |
| 16 | index 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 | -- |
| 30 | 2.11.0 |
| 31 | |