]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: Centralize Marvell switch reset
authorAndrew Lunn <andrew@lunn.ch>
Thu, 2 Apr 2015 02:06:34 +0000 (04:06 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 2 Apr 2015 02:55:40 +0000 (22:55 -0400)
commita65265e23a904feb64854646dbe6ab7c28cee6a1
tree291485b615cb19d4b8f93831da0ba0e2ba53e0cb
parentaea5b2e7e2885590b3216e84499618174c79ff93
net: dsa: Centralize Marvell switch reset

Marvell switches are all reset in nearly the same way. The only
difference is if the PPU should be enabled or not. Move this
code into the shared mv88x6xxx.c.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Tested-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mv88e6123_61_65.c
drivers/net/dsa/mv88e6131.c
drivers/net/dsa/mv88e6171.c
drivers/net/dsa/mv88e6352.c
drivers/net/dsa/mv88e6xxx.c
drivers/net/dsa/mv88e6xxx.h