Olaf Hering f5d2b7c28b fbmem: really support wildcard video=options for all fbdev drivers
Documentation/fb/modedb.txt states that video=option should be
considered a global option. But video_setup and fb_get_options are not
coded that way. Instead its required to boot with video=driver:option to
set a given option in drvier.  This is cumbersome because it requires to
know in advance which driver will be active for a given board/kernel.

The following patch implements the documented catchall for the fbdev
drivers. It is now possible to boot with video=XxY without the need to
know the active driver in advance. The specific case it tries to fix is
syslinux in the SUSE installer which offers a menu to set a display
resolution. Right now this just appends the vga= option the kernel. But
in addition to vga= it should be possible to pass a generic video=XxY
for all framebuffer/drm drivers. With this change forcing a certain
window size of VM displays is now much easier.

Today the video= option is stored in a global fb_mode_option. But
unfortunately only drm uses it.

Note: this change introduces a small memleak if video=option is actually
used because fb_mode_option is const. Most drivers use strsep to get to
individual options. This could be fixed in a followup patch which always
releases the option string in every caller of fb_get_options.

Signed-off-by: Olaf Hering <olaf@aepfle.de>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2014-01-17 10:57:45 +02:00
..
2013-10-29 12:53:07 +02:00
2013-11-16 12:21:40 -08:00
2013-10-29 12:53:07 +02:00
2013-09-11 19:55:12 -07:00
2013-10-29 12:53:07 +02:00
2013-11-14 14:44:20 +09:00
2013-11-14 14:44:20 +09:00
2013-10-29 12:53:07 +02:00
2013-11-14 14:44:20 +09:00
2013-10-29 12:53:07 +02:00
2013-10-29 12:53:07 +02:00
2013-10-29 12:53:07 +02:00
2013-10-29 12:53:07 +02:00
2013-12-04 10:48:12 +02:00
2013-11-14 14:44:20 +09:00
2013-11-14 14:44:20 +09:00
2013-10-29 12:53:07 +02:00
2013-10-29 12:53:07 +02:00
2013-10-30 13:34:52 +02:00
2013-10-30 13:34:52 +02:00
2013-10-29 12:53:07 +02:00
2013-10-29 12:53:07 +02:00
2013-11-14 14:44:20 +09:00
2013-10-29 12:53:07 +02:00
2013-02-22 23:31:31 -05:00
2013-10-29 12:53:07 +02:00
2013-10-29 12:53:07 +02:00
2013-11-14 14:44:20 +09:00
2013-10-29 12:53:07 +02:00
2013-03-20 16:26:32 +01:00
2013-10-29 12:53:07 +02:00
2013-10-29 12:53:07 +02:00
2013-10-29 12:53:07 +02:00
2013-10-29 12:53:07 +02:00
2013-10-29 12:53:07 +02:00
2013-10-09 12:52:50 +03:00
2013-10-29 12:53:07 +02:00
2013-10-29 12:53:07 +02:00
2013-10-29 12:53:07 +02:00
2013-09-20 12:22:03 +03:00
2013-10-30 13:34:52 +02:00
2013-10-29 12:53:07 +02:00
2013-11-14 14:44:20 +09:00
2013-10-29 12:53:07 +02:00
2013-10-29 12:53:07 +02:00
2013-10-29 12:53:07 +02:00
2013-10-29 12:53:07 +02:00
2013-10-29 12:53:07 +02:00
2013-10-29 12:53:07 +02:00
2013-10-29 12:53:07 +02:00
2013-07-09 15:51:32 -07:00
2013-09-20 12:22:02 +03:00
2013-10-29 12:53:07 +02:00
2013-10-29 12:53:07 +02:00
2013-09-20 12:23:21 +03:00
2013-11-14 14:44:20 +09:00
2013-10-30 13:34:52 +02:00
2013-10-29 12:53:07 +02:00
2013-10-29 12:53:07 +02:00
2013-10-29 12:53:07 +02:00
2013-11-14 14:44:20 +09:00
2013-10-29 12:53:07 +02:00
2013-10-30 13:34:52 +02:00
2013-10-29 12:53:07 +02:00
2013-10-29 12:53:07 +02:00
2013-09-26 11:50:07 +03:00
2013-10-29 12:53:07 +02:00
2013-10-29 12:53:07 +02:00
2013-10-29 12:53:07 +02:00
2013-10-29 12:53:07 +02:00
2013-10-29 12:53:07 +02:00
2013-10-29 12:53:07 +02:00
2013-10-29 12:53:07 +02:00
2013-10-29 12:53:07 +02:00