diff options
author | Andrew Lunn <andrew@lunn.ch> | 2015-04-01 22:06:34 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-04-01 22:55:40 -0400 |
commit | 143a83073aaea145aa050cd0ebb80454c9362608 (patch) | |
tree | 291485b615cb19d4b8f93831da0ba0e2ba53e0cb /drivers/net/dsa/mv88e6xxx.h | |
parent | 44e50ddbc74a4bd6a862be9e6de22bce8c0b4150 (diff) |
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>
Diffstat (limited to 'drivers/net/dsa/mv88e6xxx.h')
-rw-r--r-- | drivers/net/dsa/mv88e6xxx.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/dsa/mv88e6xxx.h b/drivers/net/dsa/mv88e6xxx.h index ef058444bdb7..f84d3d5178b9 100644 --- a/drivers/net/dsa/mv88e6xxx.h +++ b/drivers/net/dsa/mv88e6xxx.h | |||
@@ -129,6 +129,7 @@ struct mv88e6xxx_hw_stat { | |||
129 | int reg; | 129 | int reg; |
130 | }; | 130 | }; |
131 | 131 | ||
132 | int mv88e6xxx_switch_reset(struct dsa_switch *ds, bool ppu_active); | ||
132 | int mv88e6xxx_setup_port_common(struct dsa_switch *ds, int port); | 133 | int mv88e6xxx_setup_port_common(struct dsa_switch *ds, int port); |
133 | int mv88e6xxx_setup_common(struct dsa_switch *ds); | 134 | int mv88e6xxx_setup_common(struct dsa_switch *ds); |
134 | int __mv88e6xxx_reg_read(struct mii_bus *bus, int sw_addr, int addr, int reg); | 135 | int __mv88e6xxx_reg_read(struct mii_bus *bus, int sw_addr, int addr, int reg); |