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
2e2fa887
Commit
2e2fa887
authored
Aug 14, 2002
by
Albert Cranford
Committed by
Linus Torvalds
Aug 14, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] 2.5.31 reverse spin_lock_irq for i2c-elektor.c
Pleaase reverse deadlocking change to i2c-elektor.c
parent
44260240
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
drivers/i2c/i2c-elektor.c
drivers/i2c/i2c-elektor.c
+2
-3
No files found.
drivers/i2c/i2c-elektor.c
View file @
2e2fa887
...
...
@@ -57,7 +57,6 @@ static int i2c_debug = 0;
static
wait_queue_head_t
pcf_wait
;
static
int
pcf_pending
;
spinlock_t
irq_driver_lock
=
SPIN_LOCK_UNLOCKED
;
/* ----- global defines ----------------------------------------------- */
#define DEB(x) if (i2c_debug>=1) x
...
...
@@ -118,12 +117,12 @@ static void pcf_isa_waitforpin(void) {
int
timeout
=
2
;
if
(
irq
>
0
)
{
spin_lock_irq
(
&
irq_driver_lock
);
cli
(
);
if
(
pcf_pending
==
0
)
{
interruptible_sleep_on_timeout
(
&
pcf_wait
,
timeout
*
HZ
);
}
else
pcf_pending
=
0
;
s
pin_unlock_irq
(
&
irq_driver_lock
);
s
ti
(
);
}
else
{
udelay
(
100
);
}
...
...
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