linux_dsm_epyc7002/drivers/net/ethernet/via
Michal Kubecek 71f711a4f1 via-velocity: allow nesting of ethtool_ops begin() and complete()
Unlike most networking drivers using begin() and complete() ethtool_ops
callbacks to resume a device which is down and suspend it again when done,
via-velocity does not use standard refcounted infrastructure but sets
device sleep state directly.

With the introduction of netlink ethtool interface, we may have nested
begin-complete blocks so that inner complete() would put the device back to
sleep for the rest of the outer block.

To avoid rewriting an old and not very actively developed driver, just add
a nesting counter and only perform resume and suspend on the outermost
level.

Signed-off-by: Michal Kubecek <mkubecek@suse.cz>
Signed-off-by: David S. Miller <davem@davemloft.net>
2020-01-06 13:54:55 -08:00
..
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
via-rhine.c netdev: pass the stuck queue to the timeout handler 2019-12-12 21:38:57 -08:00
via-velocity.c via-velocity: allow nesting of ethtool_ops begin() and complete() 2020-01-06 13:54:55 -08:00
via-velocity.h via-velocity: allow nesting of ethtool_ops begin() and complete() 2020-01-06 13:54:55 -08:00