Commit 899a94d1 authored by Antonino Daplas's avatar Antonino Daplas Committed by Linus Torvalds

[PATCH] fbcon: Fix setup boot options of fbcon

This patch fixes the 'fbcon=map:<option>" of fbcon.  (This option has been
present since 2.4, but got broken in 2.6). This particular option tells
fbcon what framebuffer device gets mapped to what console. Syntax is:

	fbcon=map:abcd...

	where a, b, c, d,... are framebuffer numbers as it would
	appear in /proc/fb.

Given only 2 valid fbdevs, 0 and 1, if fbcon=map:0110, then:

tty1 = fb0
tty2 = fb1
tty3 = fb1
tty4 = fb0
(sequence repeats for the rest of the consoles)

If an invalid framebuffer is used, then the console will be mapped to the
first user-chosen framebuffer.  Ie: fbcon=map:102

tty1 = fb1
tty2 = fb0
tty3 = fb1 <
parent 54f5dd97
This diff is collapsed.
...@@ -948,14 +948,11 @@ fb_ioctl(struct inode *inode, struct file *file, unsigned int cmd, ...@@ -948,14 +948,11 @@ fb_ioctl(struct inode *inode, struct file *file, unsigned int cmd,
#endif /* CONFIG_KMOD */ #endif /* CONFIG_KMOD */
if (!registered_fb[con2fb.framebuffer]) if (!registered_fb[con2fb.framebuffer])
return -EINVAL; return -EINVAL;
if (con2fb.console > 0 && con2fb.console < MAX_NR_CONSOLES) { event.info = info;
event.info = info; event.data = &con2fb;
event.data = &con2fb; return notifier_call_chain(&fb_notifier_list,
return notifier_call_chain(&fb_notifier_list, FB_EVENT_SET_CONSOLE_MAP,
FB_EVENT_SET_CONSOLE_MAP, &event);
&event);
}
return -EINVAL;
case FBIOBLANK: case FBIOBLANK:
acquire_console_sem(); acquire_console_sem();
i = fb_blank(info, arg); i = fb_blank(info, arg);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment