Skip to content

iio: pressure: bmp280: Add triggered buffer support and

Vasileios Amoiridis linux-iio lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest9 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9iio: pressure: bmp280: Remove dead error checksdrivers/iio/pressure/bmp280-core.c+0 -40 replies
2/9iio: pressure: bmp280: Remove, add and update error messagesdrivers/iio/pressure/bmp280-core.c+38 -170 replies
3/9iio: pressure: bmp280: Make error checks consistentdrivers/iio/pressure/bmp280-core.c+20 -200 replies
4/9iio: pressure: bmp280: Use unsigned data types for raw sensor datadrivers/iio/pressure/bmp280-core.c+22 -230 replies
5/9iio: pressure: bmp280: Refactorize reading functionsdrivers/iio/pressure/bmp280-core.c drivers/iio/pressure/bmp280.h+232 -1350 replies
6/9iio: pressure: bmp280: Introduce new cleanup routinesdrivers/iio/pressure/bmp280-core.c+56 -750 replies
7/9iio: pressure: bmp280: Generalize read_{temp,press,humid}() functionsdrivers/iio/pressure/bmp280-core.c drivers/iio/pressure/bmp280.h+104 -800 replies
8/9iio: pressure: bmp280: Add SCALE, RAW values in channels and refactorize themdrivers/iio/pressure/bmp280-core.c+78 -80 replies
9/9iio: pressure: bmp280: Add triggered buffer supportdrivers/iio/pressure/Kconfig drivers/iio/pressure/bmp280-core.c drivers/iio/pressure/bmp280-spi.c +1 more+348 -220 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/9] iio: pressure: bmp280: Add triggered buffer support and

Based on upstream master with the previous patches of this series applied as well.

IMPORTANT NOTE: There is a fix queued up for this driver here [1]. It is going to conflict with PATCH [7-9/9]. The previous patches should be fine. The solution should be quite trivial with minor changes in all 3 PATCH [7-9/9]. When it is deemed necessary I can resubmit the patches or help with resolving the issue.

Changes in v6:

PATCH [1-3/9]: new:
- split of PATCH [5/10] of v5 according to proposal here [2].

PATCH [4/9]: new:
- split of PATCH [6/10] of v5 according to proposal here [3].

PATCH [6/9]:
- Removed mutex_lock() and added guard(mutex) to bmp580_nvmem_{read/write}() functions as well.

PATCH [9/9]:
- In the buffer handlers, add 'goto out;' instead of just returning the error because iio_trigger_notify_done() wouldn't be called in case of error.

[1]: https://lore.kernel.org/linux-iio/[email protected]/
[2]: https://lore.kernel.org/linux-iio/20240505200818.1e70c664@jic23-huawei/
[3]: https://lore.kernel.org/linux-iio/20240505202106.1c780044@jic23-huawei/

Vasileios Amoiridis (9):
iio: pressure: bmp280: Remove dead error checks
iio: pressure: bmp280: Remove, add and update error messages
iio: pressure: bmp280: Make error checks consistent
iio: pressure: bmp280: Use unsigned data types for raw sensor data
iio: pressure: bmp280: Refactorize reading functions
iio: pressure: bmp280: Introduce new cleanup routines
iio: pressure: bmp280: Generalize read_{temp,press,humid}() functions
iio: pressure: bmp280: Add SCALE, RAW values in channels and
refactorize them
iio: pressure: bmp280: Add triggered buffer support

 drivers/iio/pressure/Kconfig       |    2 +
 drivers/iio/pressure/bmp280-core.c | 1130 ++++++++++++++++++++--------
 drivers/iio/pressure/bmp280-spi.c  |    8 +-
 drivers/iio/pressure/bmp280.h      |   34 +-
 4 files changed, 844 insertions(+), 330 deletions(-)

base-commit: dccb07f2914cdab2ac3a5b6c98406f765acab803

Signature · 1 line
2.25.1