]> git.karo-electronics.de Git - karo-tx-linux.git/commit
kvm tools, i8042: Fix device init failure
authorPekka Enberg <penberg@kernel.org>
Thu, 2 Jun 2011 13:33:57 +0000 (16:33 +0300)
committerPekka Enberg <penberg@kernel.org>
Thu, 2 Jun 2011 13:48:08 +0000 (16:48 +0300)
commit5619725e3ce3ad9ac63e2be2bf9f71ee42452fb7
treec06f1126b73ecb4c19082f3574aea3659196db51
parentff762fd5cafd7cadd24641b420415421d7fcb672
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>
tools/kvm/hw/i8042.c