mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-16 08:44:21 +08:00
drm/amdgpu: add late_fini for ip_funcs
This give IP modules an optional late cleanup function. This is needed to handle tricky inter-module dependencies during tear down. Signed-off-by: Monk Liu <Monk.Liu@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
8b4af8a8e3
commit
212cb3b6d7
@ -157,6 +157,7 @@ struct amd_ip_funcs {
|
||||
int (*hw_init)(void *handle);
|
||||
/* tears down the hw state */
|
||||
int (*hw_fini)(void *handle);
|
||||
void (*late_fini)(void *handle);
|
||||
/* handles IP specific hw/sw changes for suspend */
|
||||
int (*suspend)(void *handle);
|
||||
/* handles IP specific hw/sw changes for resume */
|
||||
|
Loading…
Reference in New Issue
Block a user