]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
video: cfb_console: Allow VGA device to work without i8042 keyboard
authorBin Meng <bmeng.cn@gmail.com>
Mon, 24 Aug 2015 08:00:07 +0000 (01:00 -0700)
committerLothar Waßmann <LW@KARO-electronics.de>
Thu, 10 Sep 2015 09:29:47 +0000 (11:29 +0200)
commit13fa2832a24fdebe20a050e480b97fcb0bc192d5
tree250080c18cb8eec00ee49c87dbb3f65c0a2b26bf
parent52ca32e9b51864f44d225b0bcc14e3711ce04a8f
video: cfb_console: Allow VGA device to work without i8042 keyboard

So far if CONFIG_VGA_AS_SINGLE_DEVICE is not defined, the VGA device
will try to initialize a keyboard device (for x86, it is i8042). But
if i8042 controller initialization fails (eg: there is no keyboard
connected to the PS/2 port), drv_video_init() just simply returns.
This kills the opportunity of using a usb keyboard later with the vga
console, as the vga initialization part is actually ok, only keyboard
part fails. Change the code logic to allow this.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Acked-by: Anatolij Gustschin <agust@denx.de>
drivers/video/cfb_console.c