summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/ast/ast_mm.c
diff options
context:
space:
mode:
authorThomas Zimmermann <tzimmermann@suse.de>2023-06-21 14:53:41 +0200
committerThomas Zimmermann <tzimmermann@suse.de>2023-06-27 14:26:32 +0200
commit5b71707dd13cb611bba07ab5f38f92b8f7859d6e (patch)
tree648e5483ba5e0bc5ad95e72c3fa502c76896888e /drivers/gpu/drm/ast/ast_mm.c
parent48b6701eded8a326566dbd9b01a473bc849f79c1 (diff)
drm/ast: Enable and unlock device access early during init
POST and memory management contains code to enable access to the device's memory spaces. This is too late. Consolidate this code at the beginning of the device initialization. Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de> Reviewed-by: Jocelyn Falempe <jfalempe@redhat.com> Tested-by: Jocelyn Falempe <jfalempe@redhat.com> # AST2600 Link: https://patchwork.freedesktop.org/patch/msgid/20230621130032.3568-8-tzimmermann@suse.de
Diffstat (limited to 'drivers/gpu/drm/ast/ast_mm.c')
-rw-r--r--drivers/gpu/drm/ast/ast_mm.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/gpu/drm/ast/ast_mm.c b/drivers/gpu/drm/ast/ast_mm.c
index e16af60deef9..bc174bd933b9 100644
--- a/drivers/gpu/drm/ast/ast_mm.c
+++ b/drivers/gpu/drm/ast/ast_mm.c
@@ -38,8 +38,6 @@ static u32 ast_get_vram_size(struct ast_device *ast)
u8 jreg;
u32 vram_size;
- ast_open_key(ast);
-
vram_size = AST_VIDMEM_DEFAULT_SIZE;
jreg = ast_get_index_reg_mask(ast, AST_IO_CRTC_PORT, 0xaa, 0xff);
switch (jreg & 3) {