]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: mv88e6xxx: Clear the PDOWN bit on setup
authorPatrick Uiterwijk <patrick@puiterwijk.org>
Wed, 30 Mar 2016 01:39:41 +0000 (01:39 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 31 Mar 2016 19:12:57 +0000 (15:12 -0400)
commit1a9cb536e4f5f65207f211b3e124ded5748ef1ad
treedf1c02418e2213602022f7bc005fc57e4e03a45b
parent626dcceaf2f50740a9fdba61c36c2af21e54d3ea
net: dsa: mv88e6xxx: Clear the PDOWN bit on setup

Some of the vendor-specific bootloaders set up this part
of the initialization for us, so this was never added.
However, since upstream bootloaders don't initialize the
chip specifically, they leave the fiber MII's PDOWN flag
set, which means that the CPU port doesn't connect.

This patch checks whether this flag has been clear prior
by something else, and if not make us clear it.

Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Patrick Uiterwijk <patrick@puiterwijk.org>
Tested-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mv88e6xxx.c
drivers/net/dsa/mv88e6xxx.h