bgmac: fix internal switch initialization
authorRafał Miłecki <zajec5@gmail.com>
Sat, 14 Sep 2013 22:22:47 +0000 (00:22 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 17 Sep 2013 01:30:59 +0000 (21:30 -0400)
commit6a391e7bf26c04a6df5f77290e1146941d210d49
tree68e71e78a580c477d9c0187819d8a2f8d36456af
parent7a3a62128388a6af771e99df8628ddee2e8be7ca
bgmac: fix internal switch initialization

Some devices (BCM4749, BCM5357, BCM53572) have internal switch that
requires initialization. We already have code for this, but because
of the typo in code it was never working. This resulted in network not
working for some routers and possibility of soft-bricking them.

Use correct bit for switch initialization and fix typo in the define.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Cc: stable@vger.kernel.org
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bgmac.c
drivers/net/ethernet/broadcom/bgmac.h