Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
e51ec143
Commit
e51ec143
authored
Feb 01, 2005
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Plain Diff
Merge
bk://kernel.bkbits.net/vojtech/for-linus
into ppc970.osdl.org:/home/torvalds/v2.6/linux
parents
1a9fa650
323d8fe1
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
23 additions
and
16 deletions
+23
-16
drivers/input/serio/i8042.c
drivers/input/serio/i8042.c
+3
-2
drivers/input/serio/libps2.c
drivers/input/serio/libps2.c
+11
-11
drivers/input/serio/serport.c
drivers/input/serio/serport.c
+3
-0
drivers/usb/input/hid-debug.h
drivers/usb/input/hid-debug.h
+1
-1
drivers/usb/input/hid-input.c
drivers/usb/input/hid-input.c
+5
-2
No files found.
drivers/input/serio/i8042.c
View file @
e51ec143
...
...
@@ -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
)
return
-
1
;
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
;
param
=
mode
?
0xa4
:
0xa5
;
if
(
i8042_command
(
&
param
,
I8042_CMD_AUX_LOOP
)
||
param
==
(
mode
?
0x5b
:
0x5a
))
...
...
@@ -787,7 +787,8 @@ void i8042_controller_reset(void)
* Disable MUX mode if present.
*/
i8042_set_mux_mode
(
0
,
NULL
);
if
(
i8042_mux_present
)
i8042_set_mux_mode
(
0
,
NULL
);
/*
* Restore the original control register setting.
...
...
drivers/input/serio/libps2.c
View file @
e51ec143
...
...
@@ -60,9 +60,9 @@ int ps2_sendbyte(struct ps2dev *ps2dev, unsigned char byte, int timeout)
serio_continue_rx
(
ps2dev
->
serio
);
if
(
serio_write
(
ps2dev
->
serio
,
byte
)
==
0
)
wait_event_
interruptible_
timeout
(
ps2dev
->
wait
,
!
(
ps2dev
->
flags
&
PS2_FLAG_ACK
),
msecs_to_jiffies
(
timeout
));
wait_event_timeout
(
ps2dev
->
wait
,
!
(
ps2dev
->
flags
&
PS2_FLAG_ACK
),
msecs_to_jiffies
(
timeout
));
serio_pause_rx
(
ps2dev
->
serio
);
ps2dev
->
flags
&=
~
PS2_FLAG_ACK
;
...
...
@@ -115,8 +115,8 @@ int ps2_command(struct ps2dev *ps2dev, unsigned char *param, int command)
*/
timeout
=
msecs_to_jiffies
(
command
==
PS2_CMD_RESET_BAT
?
4000
:
500
);
wait_event_interruptible
_timeout
(
ps2dev
->
wait
,
!
(
ps2dev
->
flags
&
PS2_FLAG_CMD1
),
timeout
);
timeout
=
wait_event
_timeout
(
ps2dev
->
wait
,
!
(
ps2dev
->
flags
&
PS2_FLAG_CMD1
),
timeout
);
if
(
ps2dev
->
cmdcnt
&&
timeout
>
0
)
{
...
...
@@ -147,8 +147,8 @@ int ps2_command(struct ps2dev *ps2dev, unsigned char *param, int command)
serio_continue_rx
(
ps2dev
->
serio
);
}
wait_event_
interruptible_
timeout
(
ps2dev
->
wait
,
!
(
ps2dev
->
flags
&
PS2_FLAG_CMD
),
timeout
);
wait_event_timeout
(
ps2dev
->
wait
,
!
(
ps2dev
->
flags
&
PS2_FLAG_CMD
),
timeout
);
}
if
(
param
)
...
...
@@ -259,7 +259,7 @@ int ps2_handle_ack(struct ps2dev *ps2dev, unsigned char data)
ps2dev
->
flags
|=
PS2_FLAG_CMD
|
PS2_FLAG_CMD1
;
ps2dev
->
flags
&=
~
PS2_FLAG_ACK
;
wake_up
_interruptible
(
&
ps2dev
->
wait
);
wake_up
(
&
ps2dev
->
wait
);
if
(
data
!=
PS2_RET_ACK
)
ps2_handle_response
(
ps2dev
,
data
);
...
...
@@ -281,12 +281,12 @@ int ps2_handle_response(struct ps2dev *ps2dev, unsigned char data)
if
(
ps2dev
->
flags
&
PS2_FLAG_CMD1
)
{
ps2dev
->
flags
&=
~
PS2_FLAG_CMD1
;
if
(
ps2dev
->
cmdcnt
)
wake_up
_interruptible
(
&
ps2dev
->
wait
);
wake_up
(
&
ps2dev
->
wait
);
}
if
(
!
ps2dev
->
cmdcnt
)
{
ps2dev
->
flags
&=
~
PS2_FLAG_CMD
;
wake_up
_interruptible
(
&
ps2dev
->
wait
);
wake_up
(
&
ps2dev
->
wait
);
}
return
1
;
...
...
@@ -298,7 +298,7 @@ void ps2_cmd_aborted(struct ps2dev *ps2dev)
ps2dev
->
nak
=
1
;
if
(
ps2dev
->
flags
&
(
PS2_FLAG_ACK
|
PS2_FLAG_CMD
))
wake_up
_interruptible
(
&
ps2dev
->
wait
);
wake_up
(
&
ps2dev
->
wait
);
ps2dev
->
flags
=
0
;
}
...
...
drivers/input/serio/serport.c
View file @
e51ec143
...
...
@@ -64,6 +64,9 @@ static int serport_ldisc_open(struct tty_struct *tty)
struct
serio
*
serio
;
char
name
[
64
];
if
(
!
capable
(
CAP_SYS_ADMIN
))
return
-
EPERM
;
serport
=
kmalloc
(
sizeof
(
struct
serport
),
GFP_KERNEL
);
serio
=
kmalloc
(
sizeof
(
struct
serio
),
GFP_KERNEL
);
if
(
unlikely
(
!
serport
||
!
serio
))
{
...
...
drivers/usb/input/hid-debug.h
View file @
e51ec143
...
...
@@ -86,12 +86,12 @@ static const struct hid_usage_entry hid_usage_table[] = {
{
0
,
0x92
,
"D-PadRight"
},
{
0
,
0x93
,
"D-PadLeft"
},
{
7
,
0
,
"Keyboard"
},
{
8
,
0
,
"LED"
},
{
0
,
0x01
,
"NumLock"
},
{
0
,
0x02
,
"CapsLock"
},
{
0
,
0x03
,
"ScrollLock"
},
{
0
,
0x04
,
"Compose"
},
{
0
,
0x05
,
"Kana"
},
{
8
,
0
,
"LED"
},
{
9
,
0
,
"Button"
},
{
10
,
0
,
"Ordinal"
},
{
12
,
0
,
"Consumer"
},
...
...
drivers/usb/input/hid-input.c
View file @
e51ec143
...
...
@@ -185,9 +185,9 @@ static void hidinput_configure_usage(struct hid_input *hidinput, struct hid_fiel
break
;
case
HID_UP_LED
:
if
(
usage
->
hid
-
1
>=
LED_MAX
)
if
(
((
usage
->
hid
-
1
)
&
0xffff
)
>=
LED_MAX
)
goto
ignore
;
map_led
(
usage
->
hid
-
1
);
map_led
(
(
usage
->
hid
-
1
)
&
0xffff
);
break
;
case
HID_UP_DIGITIZER
:
...
...
@@ -492,6 +492,9 @@ static int hidinput_input_event(struct input_dev *dev, unsigned int type, unsign
if
(
type
==
EV_FF
)
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
)
{
warn
(
"event field not found"
);
return
-
1
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment