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
09fd65aa
Commit
09fd65aa
authored
Jul 09, 2008
by
Krzysztof Hałasa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WAN: TX-done handler now uses the ownership bit in HD64572 drivers.
Signed-off-by:
Krzysztof Hałasa
<
khc@pm.waw.pl
>
parent
abc9d91a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
8 deletions
+3
-8
drivers/net/wan/hd64572.c
drivers/net/wan/hd64572.c
+3
-8
No files found.
drivers/net/wan/hd64572.c
View file @
09fd65aa
...
...
@@ -338,7 +338,6 @@ static inline int sca_rx_done(port_t *port, int budget)
static
inline
void
sca_tx_done
(
port_t
*
port
)
{
struct
net_device
*
dev
=
port_to_dev
(
port
);
u16
dmac
=
get_dmac_tx
(
port
);
card_t
*
card
=
port_to_card
(
port
);
u8
stat
;
...
...
@@ -351,14 +350,10 @@ static inline void sca_tx_done(port_t *port)
DSR_TX
(
phy_node
(
port
)),
card
);
while
(
1
)
{
pkt_desc
__iomem
*
desc
;
u32
desc_off
=
desc_offset
(
port
,
port
->
txlast
,
1
);
u32
cda
=
sca_inl
(
dmac
+
CDAL
,
card
);
if
((
cda
>=
desc_off
)
&&
(
cda
<
desc_off
+
sizeof
(
pkt_desc
)))
break
;
/* Transmitter is/will_be sending this frame */
pkt_desc
__iomem
*
desc
=
desc_address
(
port
,
port
->
txlast
,
1
);
desc
=
desc_address
(
port
,
port
->
txlast
,
1
);
if
(
!
(
readb
(
&
desc
->
stat
)
&
ST_TX_OWNRSHP
))
break
;
/* not yet transmitted */
dev
->
stats
.
tx_packets
++
;
dev
->
stats
.
tx_bytes
+=
readw
(
&
desc
->
len
);
writeb
(
0
,
&
desc
->
stat
);
/* Free descriptor */
...
...
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