From: roel kluin Date: Fri, 14 Aug 2009 02:09:56 +0000 (+0000) Subject: via-velocity: Fix test of mii_status bit VELOCITY_DUPLEX_FULL X-Git-Tag: v2.6.31-rc7~27^2~12 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0527a1a8440a20b3d0fd1d0c9e75a6f38a9d5315;p=platform%2Fkernel%2Flinux-3.10.git 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: Roel Kluin Signed-off-by: David S. Miller --- diff --git a/drivers/net/via-velocity.c b/drivers/net/via-velocity.c index 3ba3595..cee08a1 100644 --- 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);