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
da67e5a4
Commit
da67e5a4
authored
Jun 27, 2003
by
Arnaldo Carvalho de Melo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
o wl3501: add locking in the interrupt handler
parent
fd18c378
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
16 deletions
+14
-16
drivers/net/wireless/wl3501_cs.c
drivers/net/wireless/wl3501_cs.c
+14
-16
No files found.
drivers/net/wireless/wl3501_cs.c
View file @
da67e5a4
...
...
@@ -1322,30 +1322,29 @@ static irqreturn_t wl3501_interrupt(int irq, void *dev_id, struct pt_regs *regs)
{
struct
net_device
*
dev
=
(
struct
net_device
*
)
dev_id
;
struct
wl3501_card
*
this
;
int
handled
=
1
;
if
(
!
dev
)
{
printk
(
KERN_ERR
"%s: irq %d for unknown device.
\n
"
,
__FUNCTION__
,
irq
);
return
IRQ_NONE
;
}
this
=
(
struct
wl3501_card
*
)
dev
->
priv
;
if
(
!
dev
)
goto
unknown
;
this
=
dev
->
priv
;
spin_lock
(
&
this
->
lock
);
wl3501_ack_interrupt
(
this
);
wl3501_block_interrupt
(
this
);
wl3501_rx_interrupt
(
dev
);
/* Clean Zone End */
wl3501_unblock_interrupt
(
this
);
return
IRQ_HANDLED
;
spin_unlock
(
&
this
->
lock
);
out:
return
IRQ_RETVAL
(
handled
);
unknown:
handled
=
0
;
printk
(
KERN_ERR
"%s: irq %d for unknown device.
\n
"
,
__FUNCTION__
,
irq
);
goto
out
;
}
static
int
wl3501_reset_board
(
struct
wl3501_card
*
this
)
{
u8
tmp
;
u32
i
;
int
rc
=
0
;
u8
tmp
=
0
;
int
i
,
rc
=
0
;
/* Coreset */
wl3501_outb_p
(
WL3501_GCR_CORESET
,
this
->
base_addr
+
WL3501_NIC_GCR
);
...
...
@@ -1353,7 +1352,6 @@ static int wl3501_reset_board(struct wl3501_card *this)
wl3501_outb_p
(
WL3501_GCR_CORESET
,
this
->
base_addr
+
WL3501_NIC_GCR
);
/* Reset SRAM 0x480 to zero */
tmp
=
0
;
wl3501_set_to_wla
(
this
,
0x480
,
&
tmp
,
sizeof
(
tmp
));
/* Start up */
...
...
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