From: Y.C. Chen Date: Wed, 22 Feb 2017 04:14:19 +0000 (+1100) Subject: drm/ast: Call open_key before enable_mmio in POST code X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9bb92f51558f2ef5f56c257bdcea0588f31d857e;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git drm/ast: Call open_key before enable_mmio in POST code open_key enables access the registers used by enable_mmio Signed-off-by: Y.C. Chen Signed-off-by: Benjamin Herrenschmidt Acked-by: Joel Stanley Tested-by: Y.C. Chen Cc: Signed-off-by: Dave Airlie --- diff --git a/drivers/gpu/drm/ast/ast_post.c b/drivers/gpu/drm/ast/ast_post.c index a5a780921553..f7d421359d56 100644 --- a/drivers/gpu/drm/ast/ast_post.c +++ b/drivers/gpu/drm/ast/ast_post.c @@ -374,8 +374,8 @@ void ast_post_gpu(struct drm_device *dev) pci_write_config_dword(ast->dev->pdev, 0x04, reg); ast_enable_vga(dev); - ast_enable_mmio(dev); ast_open_key(ast); + ast_enable_mmio(dev); ast_set_def_ext_reg(dev); if (ast->config_mode == ast_use_p2a) {