]> 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)
commit8804798a8cd4859b6e0d8699386c04c6cab67372
tree0a57e886bce8d0563696055244d1a537ee07a57e
parentf6141c0239377671af4b5d7bde6db69bb8f56667
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