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
Kirill Smelkov
linux
Commits
2da32132
Commit
2da32132
authored
Feb 08, 2004
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't read i8042 data if no data exists
parent
b426ad96
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
drivers/input/serio/i8042.c
drivers/input/serio/i8042.c
+3
-2
No files found.
drivers/input/serio/i8042.c
View file @
2da32132
...
@@ -375,13 +375,14 @@ static char i8042_mux_phys[4][32];
...
@@ -375,13 +375,14 @@ static char i8042_mux_phys[4][32];
static
irqreturn_t
i8042_interrupt
(
int
irq
,
void
*
dev_id
,
struct
pt_regs
*
regs
)
static
irqreturn_t
i8042_interrupt
(
int
irq
,
void
*
dev_id
,
struct
pt_regs
*
regs
)
{
{
unsigned
long
flags
;
unsigned
long
flags
;
unsigned
char
str
,
data
;
unsigned
char
str
,
data
=
0
;
unsigned
int
dfl
;
unsigned
int
dfl
;
int
ret
;
int
ret
;
spin_lock_irqsave
(
&
i8042_lock
,
flags
);
spin_lock_irqsave
(
&
i8042_lock
,
flags
);
str
=
i8042_read_status
();
str
=
i8042_read_status
();
data
=
i8042_read_data
();
if
(
str
&
I8042_STR_OBF
)
data
=
i8042_read_data
();
spin_unlock_irqrestore
(
&
i8042_lock
,
flags
);
spin_unlock_irqrestore
(
&
i8042_lock
,
flags
);
if
(
~
str
&
I8042_STR_OBF
)
{
if
(
~
str
&
I8042_STR_OBF
)
{
...
...
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