diff options
author | Vivien Didelot <vivien.didelot@savoirfairelinux.com> | 2017-05-20 00:00:44 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-05-23 02:37:32 +0300 |
commit | a40c175b4a4a2c6f7e111ed6dc0186c75287dff0 (patch) | |
tree | 71b457ff4c6482d84e233cbdcd82380c06776150 /net/dsa/dsa_priv.h | |
parent | 072bb1903a0ff810c6091d2f6bf7c80e76dab0e6 (diff) | |
download | linux-a40c175b4a4a2c6f7e111ed6dc0186c75287dff0.tar.xz |
net: dsa: move port state setters
Add a new port.c file to hold all DSA port-wide logic. This patch moves
in the code which sets a port state.
Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/dsa/dsa_priv.h')
-rw-r--r-- | net/dsa/dsa_priv.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/net/dsa/dsa_priv.h b/net/dsa/dsa_priv.h index c274130e3ac9..cda218cd9b05 100644 --- a/net/dsa/dsa_priv.h +++ b/net/dsa/dsa_priv.h @@ -60,6 +60,11 @@ void dsa_cpu_port_ethtool_restore(struct dsa_switch *ds); int dsa_legacy_register(void); void dsa_legacy_unregister(void); +/* port.c */ +int dsa_port_set_state(struct dsa_port *dp, u8 state, + struct switchdev_trans *trans); +void dsa_port_set_state_now(struct dsa_port *dp, u8 state); + /* slave.c */ extern const struct dsa_device_ops notag_netdev_ops; void dsa_slave_mii_bus_init(struct dsa_switch *ds); |