bgmac: fix internal switch initialization
authorRafał Miłecki <zajec5@gmail.com>
Sat, 14 Sep 2013 22:22:47 +0000 (00:22 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 1 Oct 2013 16:40:58 +0000 (09:40 -0700)
commit622693b31ebe725722cfab70a721546b826e2d5a
tree8862b4edfd4f4bc293a1d812c5ac0ee13bfcbd2a
parent03c58b665fd0ce5f0acc6ebcd3c3a0df586e05d3
bgmac: fix internal switch initialization

commit 6a391e7bf26c04a6df5f77290e1146941d210d49 upstream.

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>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/broadcom/bgmac.c
drivers/net/ethernet/broadcom/bgmac.h