From: Jonathan Cameron <jic23@kernel.org>
To: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: linux-iio@vger.kernel.org, David Lechner <dlechner@baylibre.com>,
Heiko Stuebner <heiko@sntech.de>,
Jonathan Cameron <Jonathan.Cameron@huawei.com>
Subject: Re: [PATCH 00/20] IIO: Tidying up timestamp alignment markings.
Date: Mon, 23 Dec 2024 12:32:30 +0000 [thread overview]
Message-ID: <20241223123230.20a27870@jic23-huawei> (raw)
In-Reply-To: <Z19HlhLWNqH_alRY@smile.fi.intel.com>
On Sun, 15 Dec 2024 23:18:14 +0200
Andy Shevchenko <andriy.shevchenko@linux.intel.com> wrote:
> On Sun, Dec 15, 2024 at 06:28:51PM +0000, Jonathan Cameron wrote:
> > From: Jonathan Cameron <Jonathan.Cameron@huawei.com>
> >
> > 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.
>
> I briefly looked at most of the patches and haven't noticed any potential
> issues, all seems like a straightforward conversion. Hence
> Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
>
> for all, except 15 and 19.
>
> Patch 15 has got a few minor comments (and to accent on that I'm not sure about
> my offer for sizeof(), using direct variable might make it inconsistent in this
> case, because the following line uses explicit type instead of typeof(), and
> using the latter makes the code unreadable).
>
> Patch 19 seems correct to me, but I'm not going to give a tag to be on the safe
> side.
Thanks, I've applied all but 15 and 19 (which could do with more eyes and will
be more obvious in a v2 with just two patches!)
Will tidy up 15 and send out a v2 shortly.
Thanks,
Jonathan
>
prev parent reply other threads:[~2024-12-23 12:32 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-15 18:28 [PATCH 00/20] IIO: Tidying up timestamp alignment markings Jonathan Cameron
2024-12-15 18:28 ` [PATCH 01/20] iio: adc: ad7944: Fix sign and use aligned_s64 for timestamp Jonathan Cameron
2024-12-15 18:36 ` David Lechner
2024-12-15 18:28 ` [PATCH 02/20] io: adc: ina2xx-adc: " Jonathan Cameron
2025-01-30 15:40 ` Uwe Kleine-König
2025-01-30 16:10 ` Jonathan Cameron
2024-12-15 18:28 ` [PATCH 03/20] iio: temperature: tmp006: Use aligned_s64 instead of open coding alignment Jonathan Cameron
2024-12-15 18:28 ` [PATCH 04/20] iio: resolver: ad2s1210: " Jonathan Cameron
2024-12-15 18:28 ` [PATCH 05/20] iio: proximity: " Jonathan Cameron
2024-12-15 18:28 ` [PATCH 06/20] iio: pressure: " Jonathan Cameron
2024-12-16 7:52 ` Matti Vaittinen
2024-12-15 18:28 ` [PATCH 07/20] iio: magnetometer: " Jonathan Cameron
2024-12-15 18:28 ` [PATCH 08/20] iio: light: " Jonathan Cameron
2024-12-16 7:37 ` Matti Vaittinen
2024-12-15 18:29 ` [PATCH 09/20] iio: imu: " Jonathan Cameron
2024-12-15 18:29 ` [PATCH 10/20] iio: humidity: " Jonathan Cameron
2024-12-15 18:29 ` [PATCH 11/20] iio: gyro: " Jonathan Cameron
2024-12-15 18:29 ` [PATCH 12/20] iio: chemical: " Jonathan Cameron
2024-12-15 18:29 ` [PATCH 13/20] iio: adc: " Jonathan Cameron
2024-12-21 11:18 ` Marcelo Schmitt
2024-12-15 18:29 ` [PATCH 14/20] iio: accel: bma220: " Jonathan Cameron
2024-12-15 18:29 ` [PATCH 15/20] iio: buffer: Make timestamp s64 in iio_push_to_buffers_with_timestamp() Jonathan Cameron
2024-12-15 21:12 ` Andy Shevchenko
2024-12-23 12:44 ` Jonathan Cameron
2024-12-15 18:29 ` [PATCH 16/20] iio: adc: ti-lmp92064: Switch timestamp type from int64_t __aligned(8) to aligned_s64 Jonathan Cameron
2024-12-15 18:29 ` [PATCH 17/20] iio: chemical: scd4x: switch " Jonathan Cameron
2024-12-15 18:29 ` [PATCH 18/20] iio: imu: inv_icm42600: " Jonathan Cameron
2024-12-16 8:31 ` Jean-Baptiste Maneyrol
2024-12-15 18:29 ` [PATCH 19/20] iio: adc: mt6360: Correct marking of timestamp alignment Jonathan Cameron
2024-12-15 18:29 ` [PATCH 20/20] iio: adc: rockchip: correct alignment of timestamp Jonathan Cameron
2024-12-15 21:18 ` [PATCH 00/20] IIO: Tidying up timestamp alignment markings Andy Shevchenko
2024-12-23 12:32 ` Jonathan Cameron [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20241223123230.20a27870@jic23-huawei \
--to=jic23@kernel.org \
--cc=Jonathan.Cameron@huawei.com \
--cc=andriy.shevchenko@linux.intel.com \
--cc=dlechner@baylibre.com \
--cc=heiko@sntech.de \
--cc=linux-iio@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox