net: dsa: bcm_sf2: reset switch prior to initialization
authorFlorian Fainelli <f.fainelli@gmail.com>
Wed, 26 Nov 2014 02:08:49 +0000 (18:08 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 26 Nov 2014 17:03:56 +0000 (12:03 -0500)
commit33f846142919f0ecceb9fde99fecdbc307dbf541
tree810ce217c49c63bf970fe05cddd7876723a70453
parenta566059d89139c3c3ce21b0c7cb37886b2549b78
net: dsa: bcm_sf2: reset switch prior to initialization

Our boot agent may have left the switch in an certain configuration
state, make sure we issue a software reset prior to configuring the
switch in order to ensure the HW is in a consistent state, in particular
transmit queues and internal buffers.

Fixes: 246d7f773c13 ("net: dsa: add Broadcom SF2 switch driver")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/bcm_sf2.c