Received: by 2002:ab2:68c1:0:b0:1fd:9a81:d0e4 with SMTP id e1csp451962lqp; Sun, 9 Jun 2024 04:01:02 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUUotp/udKaGigI4l14y+UZRxRZWdUZ/NEn/sNOuvobZ75QCEPr6ZgyHvx1A0V8FueVvkX42hupisfWKdvL0dEycs1GkMkcG+cWUYp4TQ== X-Google-Smtp-Source: AGHT+IHMC/IgQGR82E3va3/Ry/HXcTKjKvKYnE4Qnu/eOoufpL/oddmfcasrSqGzCAoXPqtDG7+i X-Received: by 2002:a17:902:e84d:b0:1f7:4ff:d03 with SMTP id d9443c01a7336-1f704ff253fmr13589925ad.67.1717930861930; Sun, 09 Jun 2024 04:01:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717930861; cv=pass; d=google.com; s=arc-20160816; b=mk6WZ77Uni0jHfcXWs1WILGSgwv5c7V32ifbwr0TJpBkS09fPuH/MIsDHod2UCCy3W LKF8wSaVq9h7zVanDss4NjZIFVKxqG+oQ+qHzm2UOWD/pVIfskmNSAYhE2NeR6dtLxsE XcLkX2MbFyfMDs424A48YPUjzyM5JLfcmJ3LcHrDNezrvkMdW+UDO/LR/r2WbMtOpg3Q zSSNR3WREJBPOuwKFsj5Q8yazLLtFfmHEETykJ1tz4qXGEQUrWB6O4iQ2RJ71WSCoHeq 34fMxFB3lehy8IS5XKyboA/V+U/rUIQtfeAqGYdna1NQVuOzK9rSJUWw0rlc+h+g6/rF Y4BQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=qJxnEP8C5tkefKRYfK03MDIxwHxUZ1zrBDMVNfEQGZw=; fh=Cd8u3PZDjy+Y8BQ+XI/2jO6YK3iYo3PiYmPQg6yMRwM=; b=fStWqzSmjJr3E8Q/CavdtGw4LcsOVHKLIIUh6+QnmfiuNlNCtk80VUB8ssvv/tXpNS vVDTzbNJZKPA8r3Wk7dm/ECdgkPbVgklRYmm703N0eDEou9GdD8nJJidTrrje5czIwkB G0V2E8yJEGAlCfgHmi/IZS/v8zTN1/XQf9onlaJq40ys8bCYjU//hu8+IPfODA8GuXhw 7eWsobLuGncvBLil06BSSiA8klpSdFeaMpW/MjYGqYNfaoCt9aB5pRIjg/dH5E3PtBSP YSd3z1JRHC7mbVc4vtwiGx2RmfpNArLRhedtDi40v+Bs97WPlSI9rSswGxYaqrUnzbNW SsSA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=F9vSjn8z; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-207330-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-207330-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id d9443c01a7336-1f6ff95964esi13859855ad.219.2024.06.09.04.01.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 09 Jun 2024 04:01:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-207330-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=F9vSjn8z; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-207330-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-207330-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id EFC58B20FCD for ; Sun, 9 Jun 2024 11:00:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 60B222E84E; Sun, 9 Jun 2024 11:00:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="F9vSjn8z" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 857B813FF6; Sun, 9 Jun 2024 11:00:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717930837; cv=none; b=Y23B7ITb6EBXdkuEAzcnGoDhVKJBsttQoAlUNupk/vUE9YkYJVcy060pLg466mqb8+j06TXNfsiixVhilIf2m6PYo4ov/1Qr6UHC/kHuscdyfJdKp9QZbYIS75GxL1OOx4a1oh6/EbR2bGiJkhnn0LvQyV2tfwVF60Zrk7jdHdQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717930837; c=relaxed/simple; bh=euMqjpcZz9MbqRBYSk5fpAa39YqveKEm1qqxBzZ/UYI=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=tDsvqUyeEt+QzNiobA8rptLjukKq182t0p1gc27KrniMe74mErDYqwaC/LQhKMUlMZNJgtOhTLhhgEWGYRwHKTV3RcJyTtRSB+rx2h81IEx/r9GSiBxYyln5k5J96n/htEg5kH1ndEiU1Sj37lpttV+uGxVrE02jKhGtaL9mC/M= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=F9vSjn8z; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 57949C2BD10; Sun, 9 Jun 2024 11:00:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717930837; bh=euMqjpcZz9MbqRBYSk5fpAa39YqveKEm1qqxBzZ/UYI=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=F9vSjn8zO1t1aW0pe3zvrW4VcEhiDbQRDrDyfrz+UMICh3FqSBIithD4vdnnuOJSz dy1FJoqsFkz8RaOgiI9O7AFrmZrulm0sq5T/ThUtuaaadt0t661UWgcNFpGCkJlr/2 bK6GTGmiw19ves1yRewWrxfx8gihoRGEcN2h+Y4RyikiVCxkFrDn4bnpE++KqUksiD tLIv96HLx8BBWdFnJuGBprm2Lb4QqtD771fXD3MKFsiSonJwwyQF5E2OvjNIPCrnuA rlLztkeiIHMA8kNtcQ0rX/h7n/xUvyqR8xpd0ezaEAE1QybAavzEGi15jpku7Y6Ki4 55ML0UfZXsgbg== Date: Sun, 9 Jun 2024 12:00:04 +0100 From: Jonathan Cameron To: Vasileios Amoiridis Cc: dpfrey@gmail.com, himanshujha199640@gmail.com, lars@metafoo.de, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, mike.looijmans@topic.nl Subject: Re: [PATCH v2 01/19] iio: chemical: bme680: Fix pressure value output Message-ID: <20240609120004.70325d88@jic23-huawei> In-Reply-To: <20240606212313.207550-2-vassilisamir@gmail.com> References: <20240606212313.207550-1-vassilisamir@gmail.com> <20240606212313.207550-2-vassilisamir@gmail.com> X-Mailer: Claws Mail 4.2.0 (GTK 3.24.42; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Thu, 6 Jun 2024 23:22:53 +0200 Vasileios Amoiridis wrote: > The IIO standard units are measured in kPa while the driver > is using hPa. > > Apart from checking the userspace value itself, it is mentioned also > in the Bosch API [1] that the pressure value is in Pascal. > > [1]: https://github.com/boschsensortec/BME68x_SensorAPI/blob/v4.4.8/bme68x_defs.h#L742 > Fixes: 1b3bd8592780 ("iio: chemical: Add support for Bosch BME680 sensor") > Signed-off-by: Vasileios Amoiridis Given we are early in the cycle I'm going to take the fixes via the fixes-togreg branch of iio.git. Thanks will slow down the rest a little but we still have time that that should not matter and we'll get these fixes into stable much sooner. Applied to the fixes-togreg branch of iio.git and marked for stable. Thanks, Jonathan > --- > drivers/iio/chemical/bme680_core.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/iio/chemical/bme680_core.c b/drivers/iio/chemical/bme680_core.c > index ef5e0e46fd34..2c40c13fe97a 100644 > --- a/drivers/iio/chemical/bme680_core.c > +++ b/drivers/iio/chemical/bme680_core.c > @@ -678,7 +678,7 @@ static int bme680_read_press(struct bme680_data *data, > } > > *val = bme680_compensate_press(data, adc_press); > - *val2 = 100; > + *val2 = 1000; > return IIO_VAL_FRACTIONAL; > } > > > base-commit: b3019fcdeb286b2cfe45e44bccb44dbcd8ff66dd