From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=192.198.163.19 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796403531; b=QaWqOT4xSKyf6gZqGuxLMAGtCE4Acwl1ugG0yjp9aXiOX88TfL4aj3VZrVOD4JicWilq rruYB1F/lR1dJ+uqd2/5SMOjuLt5V3yB6T4AeM92FeD5HGH7Fks3/K5lGimmr0VHLfJWT hlAeEtxfTXWKyxLLeqYtG9hPosG+H9F/tEMaX87UcJSjGB4BLBaCObdixfPuQPBGJe22N /FZv7IGCMdUOrerQ0Bs0e/UXhP1peYR0GPcpJznIYsNhzrC0AlzFnTFE8EjiQyKNn11pe FHgFgyXExfX078rlNOS+O0CMJTweXAm5gfL8bPNJAv/CvtOB+SreXsCHnhJHeETXMpg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796403531; h=DMARC-Filter:DKIM-Signature:X-CSE-ConnectionGUID:X-CSE-MsgGUID: X-IronPort-AV:X-IronPort-AV:Received:X-CSE-ConnectionGUID: X-CSE-MsgGUID:X-ExtLoop1:X-IronPort-AV:Received:Date:From:To:Cc: Subject:Message-ID:References:MIME-Version:Content-Type: Content-Disposition:Content-Transfer-Encoding:In-Reply-To: Organization; bh=8H1YsIIELWnchStxUKRWnzUf52adxxB8KJPxLtba61I=; b=FFDAepOGdV0WSW8JmBIk+Bnfj3HYQ0dh/ITKoYu4K94eyNwa+s6WPcHP+Wi28Qin3o7p pg9muVty4cOkIn2oN2Fdel86u9HfIxXq3VbyI+NOyK4y3v39o9gP71NHdCn9WGWyA0LlW Mmr5WxXUwxtMZEsUztWGIrGtmU0AtK/DMUnKTExguWU7SNLFB6it1UYFHqBYe+MKCZJlx K6vpVCnCzrRPZO9AwHtdZSr24jc200MMm3sIxFzU8jat52hMn7AmXGLDjspKe+Esp2h2x C4owHX85Maz9Vzvx7YRg9f8qWtSl4I4jYdFHmIa9K4rN52HdOzkRu3LVuXonOHvX8AQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=npokpg3G; arc=none smtp.remote-ip=192.198.163.19 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.19]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3F23B606A322; Fri, 4 Dec 2026 16:58:51 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 3F23B606A322 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=npokpg3G DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1796403531; x=1827939531; h=date:from:to:cc:subject:message-id:references: mime-version:content-transfer-encoding:in-reply-to; bh=8H1YsIIELWnchStxUKRWnzUf52adxxB8KJPxLtba61I=; b=npokpg3GDwdUVAhch6pXpoA2poz+BnM9F8MYtPCksAIXzJRs/7b5JuJg 9ohFUn/1cYtKbThwVD8HklGHc1Tmz9E+3swK/q6O0kEZITrlrdNaEB3o0 bTzG4bWBU+M6z+19zEFHmp2nQ8hh/5RgqNE1yMYxCABvc1EDhYBV0eH9W vQTH9s344juqEs+INtElZLhidEx2gCmCxm5sjDUTCsbtQ0/8408uo3eGo f1uUqKKOAuX1Qhjmjw4O3eu+hnDFZZytLONjApf/ro1KQBKSBisp1vkM8 5dVpYRvdXSCtTJ0cWcXMvDn1QBxosPe7tPFKqw5C7xvW8pEDnPoHwUaEf Q==; X-CSE-ConnectionGUID: LBfVu7llRhSb5K8TkpCwag== X-CSE-MsgGUID: TYdEPEXkSjaEr4WaHuCc/A== X-IronPort-AV: E=McAfee;i="6800,10657,11986"; a="5408972" X-IronPort-AV: E=Sophos;i="6.29,78,1794902400"; d="scan'208";a="5408972" Received: from fmviesa010.fm.intel.com ([10.60.135.150]) by fmvoesa113.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Dec 2026 08:58:51 -0800 X-CSE-ConnectionGUID: 9VK/wZL2Ryu/arUs3eCqQw== X-CSE-MsgGUID: k6U3gslOTc+mWEoN58JelQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.29,78,1794902400"; d="scan'208";a="14698917" Received: from alekseim-mobl.ger.corp.intel.com (HELO localhost) ([10.245.245.10]) by smtpauth.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Dec 2026 08:58:49 -0800 Date: Fri, 4 Dec 2026 18:58:46 +0200 From: Andy Shevchenko To: Eric Westphal Cc: linux-iio@vger.kernel.org, "jic23@kernel.org" , nuno.sa@analog.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 Message-ID: References: X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo 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] 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