Commit 0527a1a8 authored by roel kluin's avatar roel kluin Committed by David S. Miller

via-velocity: Fix test of mii_status bit VELOCITY_DUPLEX_FULL

Test whether VELOCITY_DUPLEX_FULL bit is set in mii_status.
Signed-off-by: default avatarRoel Kluin <roel.kluin@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 88512935
...@@ -1778,7 +1778,7 @@ static void velocity_error(struct velocity_info *vptr, int status) ...@@ -1778,7 +1778,7 @@ static void velocity_error(struct velocity_info *vptr, int status)
* mode * mode
*/ */
if (vptr->rev_id < REV_ID_VT3216_A0) { 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, &regs->TCR); BYTE_REG_BITS_ON(TCR_TB2BDIS, &regs->TCR);
else else
BYTE_REG_BITS_OFF(TCR_TB2BDIS, &regs->TCR); BYTE_REG_BITS_OFF(TCR_TB2BDIS, &regs->TCR);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment