]>
git.karo-electronics.de Git - karo-tx-linux.git/commit
kvm tools, i8042: Fix device init failure
This patch fixes the following device init failure:
[ 0.945942] usbcore: registered new interface driver sisusb
[ 0.947349] i8042: PNP: No PS/2 controller found. Probing ports directly.
[ 0.949033] i8042: [0] 20 -> i8042 (command)
[ 0.950370] i8042: [57] -- i8042 (timeout)
[ 1.521143] i8042: Can't read CTR while initializing i8042
[ 1.522495] i8042: probe of i8042 failed with error -5
The kbd_out() function was taking 32 bits instead of 8 bits for 'outb'. This
caused kbd_write_command() to receive bogus 'val' which meant that
I8042_CMD_CTL_RCTR case in the switch statement was never executed.
Cc: Ingo Molnar <mingo@elte.hu>
Acked-by: Sasha Levin <levinsasha928@gmail.com>
Tested-by: Sasha Levin <levinsasha928@gmail.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>