OSDN Git Service

fbdev: Handle video= parameter in video/cmdline.c
authorThomas Zimmermann <tzimmermann@suse.de>
Thu, 9 Feb 2023 13:55:06 +0000 (14:55 +0100)
committerThomas Zimmermann <tzimmermann@suse.de>
Mon, 20 Feb 2023 13:56:48 +0000 (14:56 +0100)
commit93604a5ade3a021fe3daf37f8d378b12cabb26b4
tree3c9943124d14113bac4f362f37850c5e1406c023
parent367221793d4796b18181021b7a39091c268bf39b
fbdev: Handle video= parameter in video/cmdline.c

Handle the command-line parameter video= in video/cmdline.c. Implement
the fbdev helper fb_get_options() on top. Will allows to handle the
kernel parameter in DRM without fbdev dependencies.

Note that __video_get_options() has the meaning of its return value
inverted compared to fb_get_options(). The new helper returns true if
the adapter has been enabled, and false otherwise.

There is the ofonly parameter, which disables output for non-OF-based
framebuffers. It is only for offb and looks like a workaround. The actual
purpose it not clear to me. Use 'video=off' or 'nomodeset' instead.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230209135509.7786-9-tzimmermann@suse.de
drivers/gpu/drm/Kconfig
drivers/video/Kconfig
drivers/video/Makefile
drivers/video/cmdline.c [new file with mode: 0644]
drivers/video/fbdev/Kconfig
drivers/video/fbdev/core/Makefile
drivers/video/fbdev/core/fb_cmdline.c
include/video/cmdline.h [new file with mode: 0644]