net: ethernet: ti: am65-cpsw-ethtool: configured critical setting only when no runnin...
authorGrygorii Strashko <grygorii.strashko@ti.com>
Fri, 26 Jun 2020 18:17:08 +0000 (21:17 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 30 Jun 2020 00:06:19 +0000 (17:06 -0700)
commit3d0fda901c058844bcd72bc6098c6c86884d1877
tree0a57e886bce8d0563696055244d1a537ee07a57e
parent7d58d3ebe445699b610ccc5df432dcef84eb4374
net: ethernet: ti: am65-cpsw-ethtool: configured critical setting only when no running netdevs

Ensure that critical setting can only be configured when there are no
running netdevs - all ports are down.

Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/am65-cpsw-ethtool.c