Skip to content
Commit 958f4425 authored by Dan Moulding's avatar Dan Moulding Committed by Christian König
Browse files

drm: ttm: Don't bail from ttm_global_init if debugfs_create_dir fails



In 69de4421 ("drm/ttm: Initialize debugfs from
ttm_global_init()"), ttm_global_init was changed so that if creation
of the debugfs global root directory fails, ttm_global_init will bail
out early and return an error, leading to initialization failure of
DRM drivers. However, not every system will be using debugfs. On such
a system, debugfs directory creation can be expected to fail, but DRM
drivers must still be usable. This changes it so that if creation of
TTM's debugfs root directory fails, then no biggie: keep calm and
carry on.

Fixes: 69de4421 ("drm/ttm: Initialize debugfs from ttm_global_init()")
Signed-off-by: default avatarDan Moulding <dmoulding@me.com>
Tested-by: default avatarHuacai Chen <chenhuacai@loongson.cn>
Reviewed-by: default avatarHuang Rui <ray.huang@amd.com>
Reviewed-by: default avatarChristian König <christian.koenig@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210810195906.22220-2-dmoulding@me.com


Signed-off-by: default avatarChristian König <christian.koenig@amd.com>
parent bf33677a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment