Skip to content

Remove usage of mlocks from ade7758 file

Shreeya Patel linux-iio lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest1 of 2 patches 1 replyIn review

1 of 2 patches is in this archive. The cover letter announces 2.

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2Staging: iio: ade7758: Remove iio_dev mlockdrivers/staging/iio/meter/ade7758_core.c+0 -21 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] Remove usage of mlocks from ade7758 file

This patchset has been introduced for the removal of mlocks from the ade7758 file and replace it with the already established buf_lock.
Patch *[1/2] removes the unnecessary mlocks i.e. which are taken around the read cases.
Patch *[2/2] replaces other mlocks with buf_locks and introduces unlocked forms of read and write registers so as to avoid nested locks. Also some additional cleanups like moving the locks to where they are required to protect, are made to improve the code clarity.

This patchset has been introduced after the revisions done on the patch *[2/2] and also there was the need of patch *[1/2].

Shreeya Patel (2):
Staging: iio: ade7758: Remove iio_dev mlock
Staging: iio: ade7758: Expand buf_lock to cover both buffer and state
protection

 drivers/staging/iio/meter/ade7758.h      |  2 +-
 drivers/staging/iio/meter/ade7758_core.c | 54 ++++++++++++++++++++++----------
 2 files changed, 39 insertions(+), 17 deletions(-)
Signature · 1 line
2.7.4