]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit81d9c35213c88a17e0a65b7d5880561247b6cab5
tree0a57e886bce8d0563696055244d1a537ee07a57e
parent58a77768bbdd98aafed29fff94b90dd4c6f9bf87
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