From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796367206; b=Gnr1BI9rmNlA7e/OHCZR2Cni/ZKat8vW5VQpQcWNLm2nwLrB1X8FnEz5trY0y02ZHNSy QXWFxwPw7YjN6e1CnBWEdmI9bcjUbwzOisDzvyS2k9+xf5TkpcfBYGM0nZlSqW7/MgwxA o/C7REp56RJIyN8n7Vyh150sQyMQ/LE1l+oXpqlafPida7p83h/P/HKC3FfMwQpYcDUGM vsA9xfu6uYh6Lkj6MGyyj/7eeVl6nuK3vtVBkv+yyNHHW7DtqOCWQaARPT6GQ9ytByReS r4HtunGO5lX6HlgsmFnUIRwakqQTHlxEVUdLit/W1s5yjqTHj5GK7Yf/poGt8NJMP5A== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796367206; h=Received:DKIM-Signature:Message-ID:Date:MIME-Version:Subject:To:Cc: References:Content-Language:From:In-Reply-To:Content-Type: Content-Transfer-Encoding; bh=BCXMfxNsIuMCu1aT3VO5JUNVnUp/DU6MxLrefMW0G+A=; b=4kqcqEX55v6jvr+IyqviPNaqGQuIaUKUjdujOPvu9C96Xixc9bd5oIwKVr+HoPvqAhjg uawLXvleZFPS5oV1bHl0ESyTUHOtf+i2ZMaN20wSE+4aIYDFM0CJKNt5PmNHVaP/UTXiG PqAnJL4atAPx+G8FSwVSIawJKTku4QmBrvekTsXGiWIEkUg6hO77z9Ta0sDxy4cEdwkb/ qXaAp37unSI1t/yUqjdRg6sEmW+jej8/MjJSydcp7ewrJ+X0Qz2SE0x9haY1rSuw8ME1G 8tGjurCi9zx/kzAIoFDf2ZT5XLglJJKW9KV2W+WQ+HcCe0tN+jNMSZSy2WQ8YuoyhbA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=iTcrPBXT; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AF8DA606A32C; Fri, 4 Dec 2026 06:53:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=iTcrPBXT Received: by smtp.kernel.org (Postfix) with ESMTPSA id A703F1F000CE; Fri, 4 Dec 2026 06:53:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796367206; bh=BCXMfxNsIuMCu1aT3VO5JUNVnUp/DU6MxLrefMW0G+A=; h=Date:Subject:To:Cc:References:From:In-Reply-To; b=iTcrPBXT6heckL7dgGdVpH4PBd5itY8CMgS7JOpciUXV9k8ll7poQC9S/EbwbvfXH WBCDkVP6C/QVRP27B8rEdvdTw4kpAEcfttZw/tIUDMoRzW9X7VX8pBEQ0r/Nvf9S5f FSkKkK0zAHVbKi7hCI8TXub1uV0SgO+BDc1eozeuvNqA3msiiekINvgoumiB0YfJfe tmOq39CuJJsdv7ITPnb8R2Ec9zZDdAQC3btNM7kIdh67c9xj53OEUp/o6mXjhjQ9G4 at7rK9UaIy1CZxcmeIyX/X0sTrA4JCkGcAH+vQQaLrTw7oRwCSNpQhfwpDjjdjT3th OZf03oUkiRG9Q== Message-ID: <97616f19-4543-4ccc-b635-62a5dc651d77@kernel.org> Date: Fri, 4 Dec 2026 07:53:20 +0100 X-Mailing-List: stable@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Subject: Re: [PATCH] iio: pressure: bmp280: fix bmp580 buffer channel order To: Eric Westphal , linux-iio@vger.kernel.org, "jic23@kernel.org" Cc: nuno.sa@analog.com, "dlechner@baylibre.com" , andy@kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org References: Content-Language: en-US From: Joshua Crofts In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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] 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