r8169: replace custom flag with disable_work() et al
authorHeiner Kallweit <hkallweit1@gmail.com>
Wed, 16 Oct 2024 20:06:53 +0000 (22:06 +0200)
committerAndrew Lunn <andrew@lunn.ch>
Sun, 20 Oct 2024 15:20:43 +0000 (10:20 -0500)
commite2015942e90a021151a5751776f35830ba063be7
tree5a536b7f62076c9dfb0d0b71c28362eefd3248c3
parentac48430368c1a4f4e6c2fa92243b4b93fd25bee4
r8169: replace custom flag with disable_work() et al

So far we use a custom flag to define when a task can be scheduled and
when not. Let's use the standard mechanism with disable_work() et al
instead.
Note that in rtl8169_close() we can remove the call to cancel_work()
because we now call disable_work_sync() in rtl8169_down() already.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
drivers/net/ethernet/realtek/r8169_main.c