char: xillybus: Refine workqueue handling
authorEli Billauer <eli.billauer@gmail.com>
Fri, 16 Aug 2024 07:01:59 +0000 (10:01 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 16 Aug 2024 07:57:50 +0000 (09:57 +0200)
commitad899c301c880766cc709aad277991b3ab671b66
treefd8cd7fb48657ce3d521f76c17b7edb4044530fb
parent9bb5e74b2bf88fbb024bb15ded3b011e02c673be
char: xillybus: Refine workqueue handling

As the wakeup work item now runs on a separate workqueue, it needs to be
flushed separately along with flushing the device's workqueue.

Also, move the destroy_workqueue() call to the end of the exit method,
so that deinitialization is done in the opposite order of
initialization.

Fixes: ccbde4b128ef ("char: xillybus: Don't destroy workqueue from work item running on it")
Cc: stable <stable@kernel.org>
Signed-off-by: Eli Billauer <eli.billauer@gmail.com>
Link: https://lore.kernel.org/r/20240816070200.50695-1-eli.billauer@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/char/xillybus/xillyusb.c