All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/4] staging: wilc1000: use completions in host_interface
@ 2016-03-14 17:33 Alison Schofield
  2016-03-14 17:34 ` [PATCH v3 1/4] staging: wilc1000: replace semaphore sem_inactive_time with a completion Alison Schofield
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Alison Schofield @ 2016-03-14 17:33 UTC (permalink / raw)
  To: outreachy-kernel

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(-)

-- 
2.1.4



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-03-14 17:35 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-14 17:33 [PATCH v3 0/4] staging: wilc1000: use completions in host_interface Alison Schofield
2016-03-14 17:34 ` [PATCH v3 1/4] staging: wilc1000: replace semaphore sem_inactive_time with a completion Alison Schofield
2016-03-14 17:34 ` [PATCH v3 2/4] staging: wilc1000: replace semaphore sem_get_rssi " Alison Schofield
2016-03-14 17:35 ` [PATCH v3 3/4] staging: wilc1000: replace sem_test_disconn_block " Alison Schofield
2016-03-14 17:35 ` [PATCH v3 4/4] staging: wilc1000: replace sem_test_key_block " Alison Schofield

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.