net: dsa: add port enable and disable helpers
authorVivien Didelot <vivien.didelot@savoirfairelinux.com>
Fri, 22 Sep 2017 23:01:56 +0000 (19:01 -0400)
committerDavid S. Miller <davem@davemloft.net>
Tue, 26 Sep 2017 03:22:46 +0000 (20:22 -0700)
commitfb8a6a2b8b7cfee8a0cf2cd431e1d0f45dd1c9e0
tree0668bc999f2cc8a159fe82d285377601ec66374a
parent6457edfe7344ac1da334b9f24a42aacea084a451
net: dsa: add port enable and disable helpers

Provide dsa_port_enable and dsa_port_disable helpers to respectively
enable and disable a switch port. This makes the dsa_port_set_state_now
helper static.

Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dsa/dsa_priv.h
net/dsa/port.c
net/dsa/slave.c