projects
/
platform
/
kernel
/
linux-3.10.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8851293
)
via-velocity: Fix test of mii_status bit VELOCITY_DUPLEX_FULL
author
roel kluin
<roel.kluin@gmail.com>
Fri, 14 Aug 2009 02:09:56 +0000
(
02:09
+0000)
committer
David S. Miller
<davem@davemloft.net>
Fri, 14 Aug 2009 23:30:37 +0000
(16:30 -0700)
Test whether VELOCITY_DUPLEX_FULL bit is set in mii_status.
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/via-velocity.c
patch
|
blob
|
history
diff --git
a/drivers/net/via-velocity.c
b/drivers/net/via-velocity.c
index
3ba3595
..
cee08a1
100644
(file)
--- a/
drivers/net/via-velocity.c
+++ b/
drivers/net/via-velocity.c
@@
-1778,7
+1778,7
@@
static void velocity_error(struct velocity_info *vptr, int status)
* mode
*/
if (vptr->rev_id < REV_ID_VT3216_A0) {
- if (vptr->mii_status
|
VELOCITY_DUPLEX_FULL)
+ if (vptr->mii_status
&
VELOCITY_DUPLEX_FULL)
BYTE_REG_BITS_ON(TCR_TB2BDIS, ®s->TCR);
else
BYTE_REG_BITS_OFF(TCR_TB2BDIS, ®s->TCR);