From: Joshua Crofts <crofts@kernel.org>
To: Eric Westphal <bonanzaeric@gmail.com>,
linux-iio@vger.kernel.org, "jic23@kernel.org" <jic23@kernel.org>
Cc: 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 07:53:20 +0100 [thread overview]
Message-ID: <97616f19-4543-4ccc-b635-62a5dc651d77@kernel.org> (raw)
In-Reply-To: <CAJP9nBe5HnVDvU0Uqb2=sonJLk=4JzY1r97nOQo+iaAcjT9m-Q@mail.gmail.com>
On 04-Dec-26 4:45, Eric Westphal wrote:
> MIME-Version: 1.0
> Content-Type: text/plain; charset=UTF-8
> Content-Transfer-Encoding: 8bit
What's this doing here?
> 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>
I don't mean to be harsh, but have you read the output from your LLM?
Please don't blindly copy patches. We can't accept patches without a
valid Signed-off-by tag.
> ---
> drivers/iio/pressure/bmp280-core.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
> diff --git a/drivers/iio/pressure/bmp280-core.c
> b/drivers/iio/pressure/bmp280-core.c
I assume the LLM generated the entirety of this patch and git was not
used in the process, as the diff --git line is split into two, hence
the patch fails to apply. Or option 2 - you pasted this directly into
the compose window in Gmail, which malforms messages.
This patch is unacceptable. Please read
Documentation/process/submitting-patches.rst and go from there.
--
Kind regards,
Joshua Crofts
prev parent reply other threads:[~2026-12-04 6:53 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-04 3:45 [PATCH] iio: pressure: bmp280: fix bmp580 buffer channel order Eric Westphal
2026-12-04 6:53 ` Joshua Crofts [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=97616f19-4543-4ccc-b635-62a5dc651d77@kernel.org \
--to=crofts@kernel.org \
--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