Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/panic: Fix expected string for QR_CODE in drm_panic_type_map

The help text of CONFIG_DRM_PANIC_SCREEN_QR_CODE documents the expected
value to CONFIG_DRM_PANIC_SCREEN as "qr_code" but drm_panic_type_map
checks for "qr". Adjust drm_panic_type_map and the module description to
match so that existing configurations do not stop working.

Fixes: e85e9ccf3f84 ("drm/panic: Report invalid or unsupported panic modes")
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@igalia.com>
Reviewed-by: Jocelyn Falempe <jfalempe@redhat.com>
Signed-off-by: Tvrtko Ursulin <tursulin@ursulin.net>
Link: https://lore.kernel.org/r/20260105-drm_panic-handle-invalid-drm_panic_screen-v1-2-55228bd4b0f8@kernel.org

authored by

Nathan Chancellor and committed by
Tvrtko Ursulin
6abb6a0e 6419fc15

+2 -2
+2 -2
drivers/gpu/drm/drm_panic.c
··· 823 823 [DRM_PANIC_TYPE_KMSG] = "kmsg", 824 824 [DRM_PANIC_TYPE_USER] = "user", 825 825 #if IS_ENABLED(CONFIG_DRM_PANIC_SCREEN_QR_CODE) 826 - [DRM_PANIC_TYPE_QR] = "qr", 826 + [DRM_PANIC_TYPE_QR] = "qr_code", 827 827 #endif 828 828 }; 829 829 ··· 855 855 module_param_cb(panic_screen, &drm_panic_ops, NULL, 0644); 856 856 MODULE_PARM_DESC(panic_screen, 857 857 #if IS_ENABLED(CONFIG_DRM_PANIC_SCREEN_QR_CODE) 858 - "Choose what will be displayed by drm_panic, 'user', 'kmsg' or 'qr' [default=" 858 + "Choose what will be displayed by drm_panic, 'user', 'kmsg' or 'qr_code' [default=" 859 859 #else 860 860 "Choose what will be displayed by drm_panic, 'user' or 'kmsg' [default=" 861 861 #endif