diff options
author | Vivien Didelot <vivien.didelot@savoirfairelinux.com> | 2017-09-22 19:01:55 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-09-25 20:22:46 -0700 |
commit | 6457edfe7344ac1da334b9f24a42aacea084a451 (patch) | |
tree | 028eab6b743744f13f351d43d1ef6ae17c35377d /net/dsa/dsa_priv.h | |
parent | 6450f8f269a9271985e4a8c13920b7e4cf21c0f3 (diff) | |
download | linux-6457edfe7344ac1da334b9f24a42aacea084a451.tar.gz linux-6457edfe7344ac1da334b9f24a42aacea084a451.tar.bz2 linux-6457edfe7344ac1da334b9f24a42aacea084a451.zip |
net: dsa: make slave close symmetrical to open
The DSA slave open function configures the unicast MAC addresses on the
master device, enable the switch port, change its STP state, then start
the PHY device.
Make the close function symmetric, by first stopping the PHY device,
then changing the STP state, disabling the switch port and restore the
master device.
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>
Diffstat (limited to 'net/dsa/dsa_priv.h')
0 files changed, 0 insertions, 0 deletions