From: Andy Shevchenko <andriy.shevchenko@intel.com>
To: Eric Westphal <bonanzaeric@gmail.com>
Cc: linux-iio@vger.kernel.org, "jic23@kernel.org" <jic23@kernel.org>,
nuno.sa@analog.com,
"dlechner@baylibre.com" <dlechner@baylibre.com>,
andy@kernel.org, linux-kernel@vger.kernel.org,
stable@vger.kernel.org
Subject: Re: [PATCH] iio: pressure: bmp280: fix bmp580 buffer channel order
Date: Fri, 4 Dec 2026 18:58:46 +0200 [thread overview]
Message-ID: <axLxRsabPIPK5XJG@ashevche-desk.local> (raw)
In-Reply-To: <CAJP9nBe5HnVDvU0Uqb2=sonJLk=4JzY1r97nOQo+iaAcjT9m-Q@mail.gmail.com>
On Thu, Dec 03, 2026 at 09:45:17PM -0600, Eric Westphal wrote:
> MIME-Version: 1.0
> Content-Type: text/plain; charset=UTF-8
> Content-Transfer-Encoding: 8bit
> bmp580_channels[] declares pressure at scan_index 0 and temperature at
> scan_index 1, matching enum bmp280_scan. The original triggered-buffer
> support filled data->sensor_data[] in that order: pressure at offset 0,
> then temperature.
> Commit 872c8014e05e replaced the array with a stack-local scan struct,
> but declared the fields as temperature then pressure. The memcpy
> targets stayed correct, so the pushed buffer has the samples swapped
> relative to scan_index. Userspace therefore sees temperature counts in
> the pressure slot and vice versa.
> On a BMP581 this was observed as buffered values of about 26,800 Pa and
> 98 °C while the sysfs in_*_input attributes correctly reported about
> 100,601 Pa and 26.2 °C.
> Reorder the struct fields to match the scan_index mapping, as the
> bmp280, bme280, bmp380, and bmp180 trigger handlers already do.
> Fixes: 872c8014e05e ("iio: pressure: bmp280: drop sensor_data array")
> Cc: stable@vger.kernel.org
> # Replace the placeholder Signed-off-by before sending (do not use
> # Eric Westphal unless he is the submitter and agrees to the DCO):
> Signed-off-by: [Your Name] <your.email@example.com>
NAK. This is a complete mess. Take your time to understand the process, tools,
and format of how properly send patches to the Linux kernel project.
The main issue, that you haven't even read what you had sent. This is
unacceptable.
--
With Best Regards,
Andy Shevchenko
prev parent reply other threads:[~2026-12-04 16:58 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-04 3:45 Eric Westphal
2026-12-04 6:53 ` Joshua Crofts
2026-12-04 16:58 ` Andy Shevchenko [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=axLxRsabPIPK5XJG@ashevche-desk.local \
--to=andriy.shevchenko@intel.com \
--cc=andy@kernel.org \
--cc=bonanzaeric@gmail.com \
--cc=dlechner@baylibre.com \
--cc=jic23@kernel.org \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=nuno.sa@analog.com \
--cc=stable@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
all inboxes | Powered by JetHome®