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
e5d588fe
Commit
e5d588fe
authored
Aug 30, 2002
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Plain Diff
Merge
bk://linux-input.bkbits.net/linux-input
into home.transmeta.com:/home/torvalds/v2.5/linux
parents
c71a4337
ed0a0a9c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
13 deletions
+4
-13
drivers/input/serio/i8042.c
drivers/input/serio/i8042.c
+4
-13
No files found.
drivers/input/serio/i8042.c
View file @
e5d588fe
...
...
@@ -576,9 +576,12 @@ static int __init i8042_check_aux(struct i8042_values *values, struct serio *por
/*
* External connection test - filters out AT-soldered PS/2 i8042's
* 0x00 - no error, 0x01-0x03 - clock/data stuck, 0xff - general error
* We ignore general error, since some chips report it even under normal
* operation.
*/
if
(
i8042_command
(
&
param
,
I8042_CMD_AUX_TEST
)
||
param
)
if
(
i8042_command
(
&
param
,
I8042_CMD_AUX_TEST
)
||
(
param
&&
param
!=
0xff
)
)
return
-
1
;
/*
...
...
@@ -587,23 +590,11 @@ static int __init i8042_check_aux(struct i8042_values *values, struct serio *por
if
(
i8042_command
(
&
param
,
I8042_CMD_AUX_DISABLE
))
return
-
1
;
if
(
i8042_command
(
&
param
,
I8042_CMD_CTL_RCTR
)
||
(
~
param
&
I8042_CTR_AUXDIS
))
return
-
1
;
if
(
i8042_command
(
&
param
,
I8042_CMD_AUX_TEST
)
||
param
)
{
/*
* We've got an old AMI i8042 with 'Bad Cache' commands.
*/
i8042_command
(
&
param
,
I8042_CMD_AUX_ENABLE
);
return
-
1
;
}
if
(
i8042_command
(
&
param
,
I8042_CMD_AUX_ENABLE
))
return
-
1
;
if
(
i8042_command
(
&
param
,
I8042_CMD_CTL_RCTR
)
||
(
param
&
I8042_CTR_AUXDIS
))
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