drm/ast: Enable and unlock device access early during init
authorThomas Zimmermann <tzimmermann@suse.de>
Wed, 21 Jun 2023 12:53:41 +0000 (14:53 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Tue, 27 Jun 2023 12:26:32 +0000 (14:26 +0200)
commit5b71707dd13cb611bba07ab5f38f92b8f7859d6e
tree648e5483ba5e0bc5ad95e72c3fa502c76896888e
parent48b6701eded8a326566dbd9b01a473bc849f79c1
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
drivers/gpu/drm/ast/ast_drv.h
drivers/gpu/drm/ast/ast_main.c
drivers/gpu/drm/ast/ast_mm.c
drivers/gpu/drm/ast/ast_post.c