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
39725d85
Commit
39725d85
authored
Jun 26, 2003
by
Arnaldo Carvalho de Melo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
o wl3501: uncomment spin_lock usage, working well, have to stress this thing more now
parent
bd69aac4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
drivers/net/wireless/wl3501_cs.c
drivers/net/wireless/wl3501_cs.c
+9
-9
No files found.
drivers/net/wireless/wl3501_cs.c
View file @
39725d85
...
...
@@ -1444,7 +1444,7 @@ static int wl3501_close(struct net_device *dev)
unsigned
long
flags
;
dev_link_t
*
link
;
//
spin_lock_irqsave(&this->lock, flags);
spin_lock_irqsave
(
&
this
->
lock
,
flags
);
/* Check if the device is in wl3501_dev_list */
for
(
link
=
wl3501_dev_list
;
link
;
link
=
link
->
next
)
if
(
link
->
priv
==
dev
)
...
...
@@ -1469,7 +1469,7 @@ static int wl3501_close(struct net_device *dev)
rc
=
0
;
printk
(
KERN_INFO
"%s: WL3501 closed
\n
"
,
dev
->
name
);
out:
//
spin_unlock_irqrestore(&this->lock, flags);
spin_unlock_irqrestore
(
&
this
->
lock
,
flags
);
return
rc
;
}
...
...
@@ -1487,7 +1487,7 @@ static int wl3501_reset(struct net_device *dev)
struct
wl3501_card
*
this
=
(
struct
wl3501_card
*
)
dev
->
priv
;
int
rc
=
-
ENODEV
;
//
spin_lock_irqsave(&this->lock, flags);
spin_lock_irqsave
(
&
this
->
lock
,
flags
);
/* Stop processing interrupt from the card */
wl3501_block_interrupt
(
this
);
...
...
@@ -1515,7 +1515,7 @@ static int wl3501_reset(struct net_device *dev)
printk
(
KERN_INFO
"%s: device reset
\n
"
,
dev
->
name
);
rc
=
0
;
out:
//
spin_unlock_irqrestore(&this->lock, flags);
spin_unlock_irqrestore
(
&
this
->
lock
,
flags
);
return
rc
;
}
...
...
@@ -1600,7 +1600,7 @@ static int wl3501_open(struct net_device *dev)
unsigned
long
flags
;
dev_link_t
*
link
;
//
spin_lock_irqsave(&this->lock, flags);
spin_lock_irqsave
(
&
this
->
lock
,
flags
);
/* Check if the device is in wl3501_dev_list */
for
(
link
=
wl3501_dev_list
;
link
;
link
=
link
->
next
)
if
(
link
->
priv
==
dev
)
...
...
@@ -1627,7 +1627,7 @@ static int wl3501_open(struct net_device *dev)
rc
=
0
;
printk
(
KERN_INFO
"%s: WL3501 opened
\n
"
,
dev
->
name
);
out:
//
spin_unlock_irqrestore(&this->lock, flags);
spin_unlock_irqrestore
(
&
this
->
lock
,
flags
);
return
rc
;
fail:
printk
(
KERN_WARNING
"%s: Can't initialize firmware!
\n
"
,
dev
->
name
);
...
...
@@ -1692,11 +1692,11 @@ static void wl3501_set_multicast_list(struct net_device *dev)
/* Allow multicast */
filter |= RMR_ALL_MULTICAST;
//
spin_lock_irqsave(&this->lock, flags);
spin_lock_irqsave(&this->lock, flags);
/* Must not be interrupted */
wl3501_set_mib_value(this, TYPE_EXTRA_MIB, IDX_RECEIVEMODE,
&filter, sizeof(filter));
//
spin_unlock_irqrestore(&this->lock, flags);
spin_unlock_irqrestore(&this->lock, flags);
#endif
}
...
...
@@ -2044,7 +2044,7 @@ static void wl3501_config(dev_link_t *link)
this
->
essid
[
2
]
=
'A'
;
this
->
essid
[
3
]
=
'N'
;
this
->
essid
[
4
]
=
'Y'
;
//
spin_lock_init(&this->lock);
spin_lock_init
(
&
this
->
lock
);
switch
(
this
->
freq_domain
)
{
case
0x31
:
...
...
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