Commit f604a198 authored by Vojtech Pavlik's avatar Vojtech Pavlik

Merge silver.ucw.cz:/home/vojtech/bk/linus

into silver.ucw.cz:/home/vojtech/bk/input
parents 842ca9a3 e51d0170
...@@ -226,15 +226,19 @@ running once the system is up. ...@@ -226,15 +226,19 @@ running once the system is up.
atascsi= [HW,SCSI] Atari SCSI atascsi= [HW,SCSI] Atari SCSI
atkbd.extra= [HW] Enable extra LEDs and keys on IBM RapidAccess, EzKey atkbd.extra= [HW] Enable extra LEDs and keys on IBM RapidAccess,
and similar keyboards EzKey and similar keyboards
atkbd.reset= [HW] Reset keyboard during initialization atkbd.reset= [HW] Reset keyboard during initialization
atkbd.set= [HW] Select keyboard code set atkbd.set= [HW] Select keyboard code set
Format: <int> (2 = AT (default) 3 = PS/2) Format: <int> (2 = AT (default) 3 = PS/2)
atkbd.scroll= [HW] Enable scroll wheel on MS Office and similar keyboards atkbd.scroll= [HW] Enable scroll wheel on MS Office and similar
keyboards
atkbd.softraw= [HW] Choose between synthetic and real raw mode
Format: <bool> (0 = real, 1 = synthetic (default))
atkbd.softrepeat= atkbd.softrepeat=
[HW] Use software keyboard repeat [HW] Use software keyboard repeat
......
...@@ -482,7 +482,7 @@ static int i8042_set_mux_mode(unsigned int mode, unsigned char *mux_version) ...@@ -482,7 +482,7 @@ static int i8042_set_mux_mode(unsigned int mode, unsigned char *mux_version)
if (i8042_command(&param, I8042_CMD_AUX_LOOP) || param != 0x0f) if (i8042_command(&param, I8042_CMD_AUX_LOOP) || param != 0x0f)
return -1; return -1;
param = mode ? 0x56 : 0xf6; param = mode ? 0x56 : 0xf6;
if (i8042_command(&param, I8042_CMD_AUX_LOOP) || param != 0xa9) if (i8042_command(&param, I8042_CMD_AUX_LOOP) || param != (mode ? 0xa9 : 0x09))
return -1; return -1;
param = mode ? 0xa4 : 0xa5; param = mode ? 0xa4 : 0xa5;
if (i8042_command(&param, I8042_CMD_AUX_LOOP) || param == (mode ? 0x5b : 0x5a)) if (i8042_command(&param, I8042_CMD_AUX_LOOP) || param == (mode ? 0x5b : 0x5a))
...@@ -787,6 +787,7 @@ void i8042_controller_reset(void) ...@@ -787,6 +787,7 @@ void i8042_controller_reset(void)
* Disable MUX mode if present. * Disable MUX mode if present.
*/ */
if (i8042_mux_present)
i8042_set_mux_mode(0, NULL); i8042_set_mux_mode(0, NULL);
/* /*
......
...@@ -492,6 +492,9 @@ static int hidinput_input_event(struct input_dev *dev, unsigned int type, unsign ...@@ -492,6 +492,9 @@ static int hidinput_input_event(struct input_dev *dev, unsigned int type, unsign
if (type == EV_FF) if (type == EV_FF)
return hid_ff_event(hid, dev, type, code, value); return hid_ff_event(hid, dev, type, code, value);
if (type != EV_LED)
return -1;
if ((offset = hid_find_field(hid, type, code, &field)) == -1) { if ((offset = hid_find_field(hid, type, code, &field)) == -1) {
warn("event field not found"); warn("event field not found");
return -1; return -1;
......
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