Skip to content

Commit 2518ac5

Browse files
Binoy Jayangregkh
Binoy Jayan
authored andcommitted
staging: wilc1000: Replace kthread with workqueue for host interface
Deconstruct the kthread / message_queue logic, replacing it with create_singlethread_workqueue() / queue_work() setup, by adding a 'struct work_struct' to 'struct host_if_msg'. The current kthread hostIFthread() is converted to a work queue helper with the name 'host_if_work'. Signed-off-by: Binoy Jayan <[email protected]> Reviewed-by: Arnd Bergmann <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent c6bb38a commit 2518ac5

File tree

2 files changed

+75
-212
lines changed

2 files changed

+75
-212
lines changed

drivers/staging/wilc1000/TODO

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ TODO:
44
- remove custom debug and tracing functions
55
- rework comments and function headers(also coding style)
66
- replace all semaphores with mutexes or completions
7+
- Move handling for each individual members of 'union message_body' out
8+
into a separate 'struct work_struct' and completely remove the multiplexer
9+
that is currently part of host_if_work(), allowing movement of the
10+
implementation of each message handler into the callsite of the function
11+
that currently queues the 'host_if_msg'.
712
- make spi and sdio components coexist in one build
813
- turn compile-time platform configuration (BEAGLE_BOARD,
914
PANDA_BOARD, PLAT_WMS8304, PLAT_RKXXXX, CUSTOMER_PLATFORM, ...)

0 commit comments

Comments
 (0)