Skip to content

staging: wilc1000: use completions in host_interface

Alison Schofield outreachy 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest4 patches 0 repliesNew
  2. v11 patch 4 repliesSuperseded

Changes in v3 from the cover letter

- rebase/rebuild

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4staging: wilc1000: replace semaphore sem_inactive_time with a completiondrivers/staging/wilc1000/host_interface.c drivers/staging/wilc1000/host_interface.h+5 -40 replies
2/4staging: wilc1000: replace semaphore sem_get_rssi with a completiondrivers/staging/wilc1000/host_interface.c drivers/staging/wilc1000/host_interface.h+4 -40 replies
3/4staging: wilc1000: replace sem_test_disconn_block with a completiondrivers/staging/wilc1000/host_interface.c drivers/staging/wilc1000/host_interface.h+4 -40 replies
4/4staging: wilc1000: replace sem_test_key_block with a completiondrivers/staging/wilc1000/host_interface.c drivers/staging/wilc1000/host_interface.h+13 -130 replies

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchArnd BergmannLeo Kim
1/4R-b T-b
2/4R-b T-b
3/4R-b T-b
4/4R-b T-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 0/4] staging: wilc1000: use completions in host_interface

This patchset replaces the semaphores in struct host_if_drv with the more preferred locking mechanisms completions.

Each semaphore was used in the send/receive of HOST_IF_MSG_* messages. Each builds and queues a message (LOCK!) and then a corresponding "Handler" function is called from the hostIFthread() when the message is returned (UNLOCK).

Note that in Patch 4 you will not see a 1:1 correspondence between wait_for_completion and complete. Whereas 6 different functions build the KEY messages, only 5 handlers are used.

Changes in v2
- spun off patch 5 as a separate patch so that this set only includes

    semaphores->completions

- rebase/rebuild
Changes in v3
- rebase/rebuild

Alison Schofield (4):
staging: wilc1000: replace semaphore sem_inactive_time with a
completion
staging: wilc1000: replace semaphore sem_get_rssi with a completion
staging: wilc1000: replace sem_test_disconn_block with a completion
staging: wilc1000: replace sem_test_key_block with a completion

 drivers/staging/wilc1000/host_interface.c | 43 ++++++++++++++++---------------
 drivers/staging/wilc1000/host_interface.h |  8 +++---
 2 files changed, 26 insertions(+), 25 deletions(-)
Signature · 1 line
2.1.4