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
0b21eb9a
Commit
0b21eb9a
authored
Jun 18, 2013
by
John W. Linville
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'for-john' of
git://git.kernel.org/pub/scm/linux/kernel/git/iwlwifi/iwlwifi-fixes
parents
9d1059c2
8a487b1a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
drivers/net/wireless/iwlwifi/pcie/tx.c
drivers/net/wireless/iwlwifi/pcie/tx.c
+13
-0
No files found.
drivers/net/wireless/iwlwifi/pcie/tx.c
View file @
0b21eb9a
...
@@ -576,10 +576,16 @@ static void iwl_pcie_txq_unmap(struct iwl_trans *trans, int txq_id)
...
@@ -576,10 +576,16 @@ static void iwl_pcie_txq_unmap(struct iwl_trans *trans, int txq_id)
spin_lock_bh
(
&
txq
->
lock
);
spin_lock_bh
(
&
txq
->
lock
);
while
(
q
->
write_ptr
!=
q
->
read_ptr
)
{
while
(
q
->
write_ptr
!=
q
->
read_ptr
)
{
IWL_DEBUG_TX_REPLY
(
trans
,
"Q %d Free %d
\n
"
,
txq_id
,
q
->
read_ptr
);
iwl_pcie_txq_free_tfd
(
trans
,
txq
);
iwl_pcie_txq_free_tfd
(
trans
,
txq
);
q
->
read_ptr
=
iwl_queue_inc_wrap
(
q
->
read_ptr
,
q
->
n_bd
);
q
->
read_ptr
=
iwl_queue_inc_wrap
(
q
->
read_ptr
,
q
->
n_bd
);
}
}
txq
->
active
=
false
;
spin_unlock_bh
(
&
txq
->
lock
);
spin_unlock_bh
(
&
txq
->
lock
);
/* just in case - this queue may have been stopped */
iwl_wake_queue
(
trans
,
txq
);
}
}
/*
/*
...
@@ -927,6 +933,12 @@ void iwl_trans_pcie_reclaim(struct iwl_trans *trans, int txq_id, int ssn,
...
@@ -927,6 +933,12 @@ void iwl_trans_pcie_reclaim(struct iwl_trans *trans, int txq_id, int ssn,
spin_lock_bh
(
&
txq
->
lock
);
spin_lock_bh
(
&
txq
->
lock
);
if
(
!
txq
->
active
)
{
IWL_DEBUG_TX_QUEUES
(
trans
,
"Q %d inactive - ignoring idx %d
\n
"
,
txq_id
,
ssn
);
goto
out
;
}
if
(
txq
->
q
.
read_ptr
==
tfd_num
)
if
(
txq
->
q
.
read_ptr
==
tfd_num
)
goto
out
;
goto
out
;
...
@@ -1108,6 +1120,7 @@ void iwl_trans_pcie_txq_enable(struct iwl_trans *trans, int txq_id, int fifo,
...
@@ -1108,6 +1120,7 @@ void iwl_trans_pcie_txq_enable(struct iwl_trans *trans, int txq_id, int fifo,
(
fifo
<<
SCD_QUEUE_STTS_REG_POS_TXF
)
|
(
fifo
<<
SCD_QUEUE_STTS_REG_POS_TXF
)
|
(
1
<<
SCD_QUEUE_STTS_REG_POS_WSL
)
|
(
1
<<
SCD_QUEUE_STTS_REG_POS_WSL
)
|
SCD_QUEUE_STTS_REG_MSK
);
SCD_QUEUE_STTS_REG_MSK
);
trans_pcie
->
txq
[
txq_id
].
active
=
true
;
IWL_DEBUG_TX_QUEUES
(
trans
,
"Activate queue %d on FIFO %d WrPtr: %d
\n
"
,
IWL_DEBUG_TX_QUEUES
(
trans
,
"Activate queue %d on FIFO %d WrPtr: %d
\n
"
,
txq_id
,
fifo
,
ssn
&
0xff
);
txq_id
,
fifo
,
ssn
&
0xff
);
}
}
...
...
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