]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite35b4c2ab8a268d8f894cfde5cf1abf66e208b2f
tree0668bc999f2cc8a159fe82d285377601ec66374a
parent6f9595531b04c3e26c84ecd95910dd89652418bb
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