Skip to content

IIO: Tidying up timestamp alignment markings.

Jonathan Cameron linux-iio 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest20 patches 11 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/20iio: adc: ad7944: Fix sign and use aligned_s64 for timestamp.drivers/iio/adc/ad7944.c+1 -11 reply
2/20io: adc: ina2xx-adc: Fix sign and use aligned_s64 for timestamp.drivers/iio/adc/ina2xx-adc.c+1 -12 replies
3/20iio: temperature: tmp006: Use aligned_s64 instead of open coding alignment.drivers/iio/temperature/tmp006.c+1 -10 replies
4/20iio: resolver: ad2s1210: Use aligned_s64 instead of open coding alignment.drivers/iio/resolver/ad2s1210.c+1 -10 replies
5/20iio: proximity: Use aligned_s64 instead of open coding alignment.drivers/iio/proximity/as3935.c drivers/iio/proximity/hx9023s.c drivers/iio/proximity/mb1232.c +3 more+6 -60 replies
6/20iio: pressure: Use aligned_s64 instead of open coding alignment.drivers/iio/pressure/hsc030pa.h drivers/iio/pressure/ms5611_core.c drivers/iio/pressure/rohm-bm1390.c+3 -31 reply
7/20iio: magnetometer: Use aligned_s64 instead of open coding alignment.drivers/iio/magnetometer/af8133j.c drivers/iio/magnetometer/ak8974.c drivers/iio/magnetometer/ak8975.c +4 more+7 -70 replies
8/20iio: light: Use aligned_s64 instead of open coding alignment.drivers/iio/light/adjd_s311.c drivers/iio/light/as73211.c drivers/iio/light/bh1745.c +8 more+11 -111 reply
9/20iio: imu: Use aligned_s64 instead of open coding alignment.drivers/iio/imu/bmi323/bmi323_core.c drivers/iio/imu/bno055/bno055.c+2 -20 replies
10/20iio: humidity: Use aligned_s64 instead of open coding alignment.drivers/iio/humidity/am2315.c drivers/iio/humidity/hdc100x.c drivers/iio/humidity/hts221.h+3 -30 replies
11/20iio: gyro: Use aligned_s64 instead of open coding alignment.drivers/iio/gyro/adxrs290.c drivers/iio/gyro/bmg160_core.c drivers/iio/gyro/itg3200_buffer.c +1 more+4 -40 replies
12/20iio: chemical: Use aligned_s64 instead of open coding alignment.drivers/iio/chemical/ccs811.c drivers/iio/chemical/ens160_core.c drivers/iio/chemical/scd30_core.c+3 -30 replies
13/20iio: adc: Use aligned_s64 instead of open coding alignment.drivers/iio/adc/ad4000.c drivers/iio/adc/max1118.c drivers/iio/adc/max11410.c +10 more+13 -131 reply
14/20iio: accel: bma220: Use aligned_s64 instead of open coding alignment.drivers/iio/accel/bma220_spi.c+1 -10 replies
15/20iio: buffer: Make timestamp s64 in iio_push_to_buffers_with_timestamp()include/linux/iio/buffer.h+3 -32 replies
16/20iio: adc: ti-lmp92064: Switch timestamp type from int64_t __aligned(8) to aligned_s64drivers/iio/adc/ti-lmp92064.c+1 -10 replies
17/20iio: chemical: scd4x: switch timestamp type from int64_t __aligned(8) to aligned_s64drivers/iio/chemical/scd4x.c+1 -10 replies
18/20iio: imu: inv_icm42600: switch timestamp type from int64_t __aligned(8) to aligned_s64drivers/iio/imu/inv_icm42600/inv_icm42600_accel.c drivers/iio/imu/inv_icm42600/inv_icm42600_gyro.c+2 -21 reply
19/20iio: adc: mt6360: Correct marking of timestamp alignment.drivers/iio/adc/mt6360-adc.c+2 -20 replies
20/20iio: adc: rockchip: correct alignment of timestampdrivers/iio/adc/rockchip_saradc.c+1 -10 replies

Reviews trailers per patch

5 of 20 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchDavid LechnerAndy ShevchenkoMatti VaittinenJean-Baptiste ManeyrolMarcelo Schmitt
SeriesR-b
1/20R-b
2/20
3/20
4/20
5/20
6/20A-b
7/20
8/20A-b
9/20
10/20
11/20
12/20
13/20A-b
14/20
15/20
16/20
17/20
18/20A-b
19/20
20/20

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 5 reviewers.

Read the v1 thread

Cover letter [PATCH 00/20] IIO: Tidying up timestamp alignment markings.

From: Jonathan Cameron <[email protected]>

I haven't +CC everyone relevant as that would be too long a list and these are mostly entirely mechanical changes that just need someone to sanity check I didn't do anything stupid.

This combines several related types of change:

- Some 'fixes'. These aren't actual bugs but more places where the code relies on factors it shouldn't such as what architecture the driver is running on, or padding of the wrong element happening to always make enough room.
- Now we have aligned_s64, use that to replace all the remaining s64 timestamp __aligned(8) instances in IIO.
This is both cleaner and hopefully less prone to confusing static analysis tools.
- Change the timestamp type in iio_push_to_buffers_with_timestamp() to s64. This is an entirely in kernel interface. It's data is pushed to user space in many case but by a rather indirect route, so I think it is more appropriate to switch this to s64 which is the type of almost all the values passed into it. Note a follow up series may tidy up some local variables that are of the int64_t type.
- Change the few int64_t timestamp __aligned(8) cases to aligned_s64. This is mostly a consistency thing to avoid confusion if a new author is trying to figure out what types they should use. Better to have one answer than a mixture.

There is one other IIO driver hiding over in media that will be modified by a separate patch because I want to add some more info to that and a more specific CC list.

Jonathan Cameron (20):
iio: adc: ad7944: Fix sign and use aligned_s64 for timestamp.
io: adc: ina2xx-adc: Fix sign and use aligned_s64 for timestamp.
iio: temperature: tmp006: Use aligned_s64 instead of open coding
alignment.
iio: resolver: ad2s1210: Use aligned_s64 instead of open coding
alignment.
iio: proximity: Use aligned_s64 instead of open coding alignment.
iio: pressure: Use aligned_s64 instead of open coding alignment.
iio: magnetometer: Use aligned_s64 instead of open coding alignment.
iio: light: Use aligned_s64 instead of open coding alignment.
iio: imu: Use aligned_s64 instead of open coding alignment.
iio: humidity: Use aligned_s64 instead of open coding alignment.
iio: gyro: Use aligned_s64 instead of open coding alignment.
iio: chemical: Use aligned_s64 instead of open coding alignment.
iio: adc: Use aligned_s64 instead of open coding alignment.
iio: accel: bma220: Use aligned_s64 instead of open coding alignment.
iio: buffer: Make timestamp s64 in
iio_push_to_buffers_with_timestamp()
iio: adc: ti-lmp92064: Switch timestamp type from int64_t __aligned(8)
to aligned_s64
iio: chemical: scd4x: witch timestamp type from int64_t __aligned(8)
to aligned_s64
iio: imu: inv_icm42600: witch timestamp type from int64_t __aligned(8)
to aligned_s64
iio: adc: mt6360: Correct marking of timestamp alignment.
iio: adc: rockchip: correct alignment of timestamp

 drivers/iio/accel/bma220_spi.c                    | 2 +-
 drivers/iio/adc/ad4000.c                          | 2 +-
 drivers/iio/adc/ad7944.c                          | 2 +-
 drivers/iio/adc/ina2xx-adc.c                      | 2 +-
 drivers/iio/adc/max1118.c                         | 2 +-
 drivers/iio/adc/max11410.c                        | 2 +-
 drivers/iio/adc/mcp3911.c                         | 2 +-
 drivers/iio/adc/mt6360-adc.c                      | 4 ++--
 drivers/iio/adc/pac1921.c                         | 2 +-
 drivers/iio/adc/rockchip_saradc.c                 | 2 +-
 drivers/iio/adc/rtq6056.c                         | 2 +-
 drivers/iio/adc/ti-adc081c.c                      | 2 +-
 drivers/iio/adc/ti-adc084s021.c                   | 2 +-
 drivers/iio/adc/ti-ads1015.c                      | 2 +-
 drivers/iio/adc/ti-ads1119.c                      | 2 +-
 drivers/iio/adc/ti-ads131e08.c                    | 2 +-
 drivers/iio/adc/ti-lmp92064.c                     | 2 +-
 drivers/iio/adc/ti-tsc2046.c                      | 2 +-
 drivers/iio/adc/vf610_adc.c                       | 2 +-
 drivers/iio/chemical/ccs811.c                     | 2 +-
 drivers/iio/chemical/ens160_core.c                | 2 +-
 drivers/iio/chemical/scd30_core.c                 | 2 +-
 drivers/iio/chemical/scd4x.c                      | 2 +-
 drivers/iio/gyro/adxrs290.c                       | 2 +-
 drivers/iio/gyro/bmg160_core.c                    | 2 +-
 drivers/iio/gyro/itg3200_buffer.c                 | 2 +-
 drivers/iio/gyro/mpu3050-core.c                   | 2 +-
 drivers/iio/humidity/am2315.c                     | 2 +-
 drivers/iio/humidity/hdc100x.c                    | 2 +-
 drivers/iio/humidity/hts221.h                     | 2 +-
 drivers/iio/imu/bmi323/bmi323_core.c              | 2 +-
 drivers/iio/imu/bno055/bno055.c                   | 2 +-
 drivers/iio/imu/inv_icm42600/inv_icm42600_accel.c | 2 +-
 drivers/iio/imu/inv_icm42600/inv_icm42600_gyro.c  | 2 +-
 drivers/iio/light/adjd_s311.c                     | 2 +-
 drivers/iio/light/as73211.c                       | 2 +-
 drivers/iio/light/bh1745.c                        | 2 +-
 drivers/iio/light/isl29125.c                      | 2 +-
 drivers/iio/light/ltr501.c                        | 2 +-
 drivers/iio/light/max44000.c                      | 2 +-
 drivers/iio/light/rohm-bu27034.c                  | 2 +-
 drivers/iio/light/rpr0521.c                       | 2 +-
 drivers/iio/light/st_uvis25.h                     | 2 +-
 drivers/iio/light/tcs3414.c                       | 2 +-
 drivers/iio/light/tcs3472.c                       | 2 +-
 drivers/iio/magnetometer/af8133j.c                | 2 +-
 drivers/iio/magnetometer/ak8974.c                 | 2 +-
 drivers/iio/magnetometer/ak8975.c                 | 2 +-
 drivers/iio/magnetometer/bmc150_magn.c            | 2 +-
 drivers/iio/magnetometer/hmc5843.h                | 2 +-
 drivers/iio/magnetometer/mag3110.c                | 2 +-
 drivers/iio/magnetometer/yamaha-yas530.c          | 2 +-
 drivers/iio/pressure/hsc030pa.h                   | 2 +-
 drivers/iio/pressure/ms5611_core.c                | 2 +-
 drivers/iio/pressure/rohm-bm1390.c                | 2 +-
 drivers/iio/proximity/as3935.c                    | 2 +-
 drivers/iio/proximity/hx9023s.c                   | 2 +-
 drivers/iio/proximity/mb1232.c                    | 2 +-
 drivers/iio/proximity/pulsedlight-lidar-lite-v2.c | 2 +-
 drivers/iio/proximity/srf08.c                     | 2 +-
 drivers/iio/proximity/sx_common.h                 | 2 +-
 drivers/iio/resolver/ad2s1210.c                   | 2 +-
 drivers/iio/temperature/tmp006.c                  | 2 +-
 include/linux/iio/buffer.h                        | 6 +++---
 64 files changed, 67 insertions(+), 67 deletions(-)
Signature · 1 line
2.47.1