net: jme: Replace link-change tasklet with work
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Tue, 9 Mar 2021 08:42:11 +0000 (09:42 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 17 Mar 2021 15:33:58 +0000 (16:33 +0100)
commitc62c38e349c73cad90f59f00fe8070b3648b6d08
treeb4adfdf2083869ecadd8ede9b89faf0bccf2ab55
parenteb2dafbba8b824ee77f166629babd470dd0b1c0a
net: jme: Replace link-change tasklet with work

The link change tasklet disables the tasklets for tx/rx processing while
upating hw parameters and then enables the tasklets again.

This update can also be pushed into a workqueue where it can be performed
in preemptible context. This allows tasklet_disable() to become sleeping.

Replace the linkch_task tasklet with a work.

Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lore.kernel.org/r/20210309084242.106288922@linutronix.de
drivers/net/ethernet/jme.c
drivers/net/ethernet/jme.h