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
7c70330c
Commit
7c70330c
authored
May 10, 2004
by
Jeff Garzik
Browse files
Options
Browse Files
Download
Plain Diff
Merge redhat.com:/spare/repo/netdev-2.6/8139too
into redhat.com:/spare/repo/net-drivers-2.6
parents
3dc567d8
4ee76fad
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
15 deletions
+11
-15
drivers/net/8139too.c
drivers/net/8139too.c
+11
-15
No files found.
drivers/net/8139too.c
View file @
7c70330c
...
@@ -1677,11 +1677,17 @@ static void rtl8139_tx_timeout (struct net_device *dev)
...
@@ -1677,11 +1677,17 @@ static void rtl8139_tx_timeout (struct net_device *dev)
u8
tmp8
;
u8
tmp8
;
unsigned
long
flags
;
unsigned
long
flags
;
DPRINTK
(
"%s: Transmit timeout, status %2.2x %4.4x "
printk
(
KERN_DEBUG
"%s: Transmit timeout, status %2.2x %4.4x %4.4x "
"media %2.2x.
\n
"
,
dev
->
name
,
"media %2.2x.
\n
"
,
dev
->
name
,
RTL_R8
(
ChipCmd
),
RTL_R8
(
ChipCmd
),
RTL_R16
(
IntrStatus
),
RTL_R16
(
IntrMask
),
RTL_R8
(
MediaStatus
));
RTL_R16
(
IntrStatus
),
/* Emit info to figure out what went wrong. */
RTL_R8
(
MediaStatus
));
printk
(
KERN_DEBUG
"%s: Tx queue start entry %ld dirty entry %ld.
\n
"
,
dev
->
name
,
tp
->
cur_tx
,
tp
->
dirty_tx
);
for
(
i
=
0
;
i
<
NUM_TX_DESC
;
i
++
)
printk
(
KERN_DEBUG
"%s: Tx descriptor %d is %8.8lx.%s
\n
"
,
dev
->
name
,
i
,
RTL_R32
(
TxStatus0
+
(
i
*
4
)),
i
==
tp
->
dirty_tx
%
NUM_TX_DESC
?
" (queue head)"
:
""
);
tp
->
xstats
.
tx_timeouts
++
;
tp
->
xstats
.
tx_timeouts
++
;
...
@@ -1694,15 +1700,6 @@ static void rtl8139_tx_timeout (struct net_device *dev)
...
@@ -1694,15 +1700,6 @@ static void rtl8139_tx_timeout (struct net_device *dev)
/* Disable interrupts by clearing the interrupt mask. */
/* Disable interrupts by clearing the interrupt mask. */
RTL_W16
(
IntrMask
,
0x0000
);
RTL_W16
(
IntrMask
,
0x0000
);
/* Emit info to figure out what went wrong. */
printk
(
KERN_DEBUG
"%s: Tx queue start entry %ld dirty entry %ld.
\n
"
,
dev
->
name
,
tp
->
cur_tx
,
tp
->
dirty_tx
);
for
(
i
=
0
;
i
<
NUM_TX_DESC
;
i
++
)
printk
(
KERN_DEBUG
"%s: Tx descriptor %d is %8.8lx.%s
\n
"
,
dev
->
name
,
i
,
RTL_R32
(
TxStatus0
+
(
i
*
4
)),
i
==
tp
->
dirty_tx
%
NUM_TX_DESC
?
" (queue head)"
:
""
);
/* Stop a shared interrupt from scavenging while we are. */
/* Stop a shared interrupt from scavenging while we are. */
spin_lock_irqsave
(
&
tp
->
lock
,
flags
);
spin_lock_irqsave
(
&
tp
->
lock
,
flags
);
rtl8139_tx_clear
(
tp
);
rtl8139_tx_clear
(
tp
);
...
@@ -1714,7 +1711,6 @@ static void rtl8139_tx_timeout (struct net_device *dev)
...
@@ -1714,7 +1711,6 @@ static void rtl8139_tx_timeout (struct net_device *dev)
netif_wake_queue
(
dev
);
netif_wake_queue
(
dev
);
}
}
spin_unlock
(
&
tp
->
rx_lock
);
spin_unlock
(
&
tp
->
rx_lock
);
}
}
...
...
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