diff options
author | Vladimir Oltean <vladimir.oltean@nxp.com> | 2019-11-14 17:03:26 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-11-15 12:32:16 -0800 |
commit | 3a77b5933fdb2ea4a9c7cdd9bd9b65b6fd23626e (patch) | |
tree | bbec6b11112a20223f5746b43299d40eb5e523fa /drivers/net/ethernet/mscc/ocelot.h | |
parent | net: mscc: ocelot: adjust MTU on the CPU port in NPI mode (diff) | |
download | linux-dev-3a77b5933fdb2ea4a9c7cdd9bd9b65b6fd23626e.tar.xz linux-dev-3a77b5933fdb2ea4a9c7cdd9bd9b65b6fd23626e.zip |
net: mscc: ocelot: separate the implementation of switch reset
The Felix switch has a different reset procedure, so a function pointer
needs to be created and added to the ocelot_ops structure.
The reset procedure has been moved into ocelot_init.
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mscc/ocelot.h')
-rw-r--r-- | drivers/net/ethernet/mscc/ocelot.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mscc/ocelot.h b/drivers/net/ethernet/mscc/ocelot.h index bdc9b1d34b81..199ca2d6ea32 100644 --- a/drivers/net/ethernet/mscc/ocelot.h +++ b/drivers/net/ethernet/mscc/ocelot.h @@ -446,6 +446,7 @@ struct ocelot_stat_layout { struct ocelot_ops { void (*pcs_init)(struct ocelot *ocelot, int port); + int (*reset)(struct ocelot *ocelot); }; struct ocelot { |