bnx2: Enable auto-mdix when autoneg is disabled.
authorMichael Chan <mchan@broadcom.com>
Wed, 1 Jan 2014 07:22:33 +0000 (23:22 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 2 Jan 2014 03:03:38 +0000 (22:03 -0500)
commit41033b65b98388cb255c0307ea869856f71ca80d
tree73e011d9b78368cbf402cd7372c3f55788a978e8
parentd17e53bdcd72fa06e06f7408779fb17dcefdb930
bnx2: Enable auto-mdix when autoneg is disabled.

Auto-mdix currently only works if autoneg is enabled.  This patch enables
auto-mdix all the time by setting a bit in a PHY register.  Define
meaningful constants for this PHY registers.

Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnx2.c
drivers/net/ethernet/broadcom/bnx2.h