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
2014-01-17 10:57:45 +02:00
2013-11-16 12:45:55 -08:00
2013-10-29 12:53:07 +02:00
2013-09-19 13:30:07 +03:00
2013-09-19 13:30:07 +03:00
2013-11-26 16:40:14 +02:00
2013-09-11 19:55:12 -07:00
2013-10-30 13:34:52 +02:00
2013-09-26 13:49:09 +03:00
2013-10-29 12:53:07 +02:00
2013-11-14 14:44:20 +09:00
2013-08-06 11:18:02 -07:00
2014-01-17 10:57:39 +02:00
2013-09-20 12:22:01 +03:00
2013-11-26 12:49:17 +02:00
2014-01-17 10:57:39 +02:00
2013-09-19 13:30:09 +03:00
2013-11-14 14:44:20 +09:00
2014-01-17 10:57:40 +02:00
2013-01-24 08:59:44 +01:00
2013-10-29 12:53:07 +02:00
2013-11-13 12:09:03 +09:00
2013-09-11 15:56:22 -07: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
2014-01-17 10:57:38 +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-04-30 09:36:50 -07:00
2013-04-04 13:08:06 +03:00
2013-04-04 13:08:06 +03:00
2013-09-30 10:51:09 +03:00
2013-01-03 15:57:01 -08:00
2013-04-09 14:13:32 -04:00
2013-06-26 16:16:26 +03:00
2013-09-30 10:51:08 +03:00
2013-10-29 12:53:07 +02:00
2013-09-26 13:49:22 +03:00
2013-10-29 12:53:07 +02:00
2013-10-30 13:34:52 +02:00
2013-09-26 13:49:23 +03:00
2013-10-30 13:34:52 +02:00
2013-10-30 13:34:52 +02:00
2013-01-03 15:57:01 -08:00
2013-09-26 11:52:31 +03:00
2013-02-14 15:14:32 -08: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-30 13:36:48 +02:00
2013-01-24 09:03:04 +01:00
2013-01-03 15:57:01 -08:00
2013-10-29 12:53:07 +02:00
2013-09-20 12:22:02 +03:00
2013-02-22 23:31:31 -05:00
2013-10-29 12:53:07 +02:00
2013-08-30 11:41:24 +03:00
2014-01-17 10:57:45 +02:00
2013-04-26 09:14:47 +03:00
2013-11-11 15:52:59 +02:00
2013-09-26 13:49:24 +03: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-09-26 13:49:07 +03:00
2013-10-29 12:53:07 +02:00
2013-08-30 08:42:01 +10: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-09-30 10:51:09 +03:00
2013-11-15 14:19:54 +09:00
2013-10-30 13:34:52 +02:00
2013-10-29 12:53:07 +02:00
2013-06-28 10:28:22 +02:00
2013-10-29 12:20:11 +02:00
2014-01-17 10:57:44 +02:00
2014-01-17 10:57:41 +02:00
2013-11-14 14:44:20 +09:00
2013-10-29 12:53:07 +02:00
2013-09-26 12:31:42 +03:00
2013-03-21 14:34:33 +02:00
2013-12-10 11:25:07 +11:00
2013-07-26 10:37:02 +03:00
2013-09-26 13:49:25 +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-09-11 11:39:39 +10:00
2013-10-29 12:53:07 +02:00
2013-07-09 15:51:32 -07:00
2013-09-20 12:22:01 +03: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:22:02 +03:00
2013-09-20 12:23:21 +03:00
2013-11-14 14:44:20 +09:00
2013-09-20 12:22:02 +03:00
2013-10-30 13:34:52 +02:00
2013-10-29 12:53:07 +02:00
2013-07-29 11:25:03 +03:00
2013-06-26 14:44:40 +03:00
2013-11-11 15:32:58 +02:00
2014-01-17 10:57:38 +02:00
2013-11-26 16:59:42 +02:00
2013-10-30 12:49:02 +02:00
2013-10-29 12:53:07 +02:00
2013-01-03 15:57:01 -08:00
2013-09-26 11:50:08 +03:00
2013-10-09 12:35:44 +03:00
2013-10-29 12:53:07 +02:00
2013-11-07 22:46:20 +01:00
2013-11-14 14:44:20 +09:00
2013-01-03 15:57:01 -08:00
2013-09-26 13:49:26 +03:00
2013-01-03 15:57:01 -08: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-09-19 13:30:10 +03:00
2013-10-29 12:53:07 +02:00
2013-10-29 12:53:07 +02:00
2013-09-19 13:30:10 +03: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-03-21 14:34:33 +02:00
2013-12-04 10:50:16 +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:35:46 +03:00
2013-04-04 13:07:33 +03:00
2013-01-03 15:57:01 -08:00
2013-10-29 10:49:40 +02:00