]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
net: dsa: Do not suspend/resume closed slave_dev
authorFlorian Fainelli <f.fainelli@gmail.com>
Wed, 1 Aug 2018 00:12:52 +0000 (17:12 -0700)
committerJuerg Haefliger <juergh@canonical.com>
Wed, 24 Jul 2019 01:41:43 +0000 (19:41 -0600)
commitd4585ed6f4ae8b181e7ab727141a58c124df1369
tree47bdaf150711351a1061d1129c27b84bd4e5c96f
parent148854d481848b897112bdc095d27ccd06bfd94c
net: dsa: Do not suspend/resume closed slave_dev

BugLink: https://bugs.launchpad.net/bugs/1835845
[ Upstream commit a94c689e6c9e72e722f28339e12dff191ee5a265 ]

If a DSA slave network device was previously disabled, there is no need
to suspend or resume it.

Fixes: 2446254915a7 ("net: dsa: allow switch drivers to implement suspend/resume hooks")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
net/dsa/slave.c