Received: by 2002:ab2:7903:0:b0:1fb:b500:807b with SMTP id a3csp434323lqj; Sun, 2 Jun 2024 05:31:32 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVH87qQK24mlTbjb2/4TvGqNmuLDJqts/mwQU/O9utNBBnvz3ADPeP/cQ1Ut5NLr5gQyNCurlZStDEiDsxKTaeLP6jXGMa7vWkpHkYguA== X-Google-Smtp-Source: AGHT+IFPZ8EXHSotc7ZYmtLDyV52LIHxPKhOrymNaEVccd2I+633/bdhmtXFug+6zPk6quONq0m5 X-Received: by 2002:a05:6a20:7495:b0:1b2:1fdb:1678 with SMTP id adf61e73a8af0-1b26f185925mr7577341637.35.1717331491870; Sun, 02 Jun 2024 05:31:31 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717331491; cv=pass; d=google.com; s=arc-20160816; b=WLdhsy8oU7pMlN2C0IWOGZmDibcW1pquWafq8ZHkw2PbQvXklJ5mU2xHFTfn5kFEUU wpjFjYyiDGC0qywruiAbAiRE1k0PZ1nmle15Z03/yCh8XyoEcbVPkhGW4uLGfMJenLQN Io3Pg7pd2uHC8Hs2R7n4mbhMr93RtSiGR6gX2EnGk8fOdozRM7MZqMz+unI4AchIl8iO O0Yx34Z49rgjK4ef/WmUfYP/+uDulCz/5qQxK8mraZrpEgKt7ZoK3Ggo6SgBEbV0V4ge tJyGScYGn21o8K8+UUSyZbEdYQB77JMHrsUD0+CyAKCn0ge3zYmZ5SaDnu8Ymk77BkMw qeMQ== 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=hGaGd21HmGw7nARDVw2wpfng0F0Y7FEZdjknjSec6hc=; fh=maJqDJ7U3TsGDOahBnMK/iw5eqWwGZzLI2kFrH7RuAM=; b=FFS0kiHAWdelyNAFuKh65bN1FTegglA+rTrnPgKKkzZKp/fqG9lkG2LkIc2ZXrHRND 8/dwpMxhQwLRZnSCkt1lfgyBlCeJ29QgljoDOr/nxOMCV0M+Ak+OhwIZb6TbGcds8UDZ 7Is7A+BE6kCLGTYmr5oWeQr4Kr0MfhF0lcgjdVYWzsUOHWaAjLyj0nEpZJHpAl4f7bwM iFlKLfL5If6GKFJghLY4A21+RR8GT9HPeyzLl4mntW3qCZkzvIWeCeR0oHj13kk9Ry3e KCtDJSOq4D55PSDMepC7wFsI8ctWlsta1idedDnWI+TQogS1jpCxRPb3w52jauwLlCxd 096g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="fH/X+kFT"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-198231-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-198231-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 98e67ed59e1d1-2c1c27c9dccsi4728398a91.58.2024.06.02.05.31.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 Jun 2024 05:31:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-198231-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="fH/X+kFT"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-198231-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-198231-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 96244B2100D for ; Sun, 2 Jun 2024 12:31:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E72CE3A267; Sun, 2 Jun 2024 12:31:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="fH/X+kFT" 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 19ECE29413; Sun, 2 Jun 2024 12:31:18 +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=1717331479; cv=none; b=HvE36noqMshblvNPueTd+IwMxA6JMv01PuN6VbBxt07sYdQ17MKWbwRci6e3RcZ4p5bTzP2WURJf/LoM6bsy3e4FoL7ZPf3LTBibP8xJrU0LVDVSpxl819S09EK0G51rHUbUSjTSQHz3Hvh3A+Ig9huSTJU00u+tQe8ut8VCNP8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717331479; c=relaxed/simple; bh=8MlhmqadCkNIyYOylf1s41e5ki+UqvqBYrR0S1l28F4=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=ZsyL4nKqmP0hlY2ZjAV3ru/A7L2cgTgyEVWjHASWwX3Qk5uYutak8j1MZmdb/Sp/2JD1kf7Y+XQWRTAmDaCc4XJ+pz692IXyj2Os2IxkNrzSq2cBWRNPmzvgUAhLxVs7mEd2n/wwDPkJ8/Xz48TCDrdH3zaKM47oGMUgCjQFVjI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=fH/X+kFT; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 91EFEC2BBFC; Sun, 2 Jun 2024 12:31:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717331478; bh=8MlhmqadCkNIyYOylf1s41e5ki+UqvqBYrR0S1l28F4=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=fH/X+kFTnJej4N6/lmTWUAXKgaAYNfAbtYf+lU926Vj+CXT51FrOFYD8H8QwZYjX7 ZmyQkUM4WUFxquoUlg1FBSiUM/pUrCgt1fUapAXjvJwjwfYqVFVIHudHw6iMrUdomL AqeSAIVAcTGbsjN5kVFLO3a9nNe4me08MYTkqw3zejbVgL+PAKfsiie+qgvizD7o17 HWT5H4DzxUrfT1YfLDWyTcBafSAuHFFFLSqHNv4mMiJIJTYFYhZ0+iCLXHwFY8W3zr EB64srutdzOIG2gudvK/kEffAWyGEBQQl+LFzOtUpAgQUhCQPC3VL2U7Xne82dJ58b KhHktT5jSP1yg== Date: Sun, 2 Jun 2024 13:31:05 +0100 From: Jonathan Cameron To: Vasileios Amoiridis Cc: lars@metafoo.de, himanshujha199640@gmail.com, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, Mike Looijmans , David Frey Subject: Re: [PATCH v1 00/17] iio: chemical: bme680: Driver cleanup Message-ID: <20240602133105.4334175d@jic23-huawei> In-Reply-To: <20240527183805.311501-1-vassilisamir@gmail.com> References: <20240527183805.311501-1-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 Mon, 27 May 2024 20:37:48 +0200 Vasileios Amoiridis wrote: > This started as a series to add support for buffers and the new > BME688 but it ended up being just a cleaning series. These might > be quite some patches for such a thing but I feel that they are > are well split, in order to allow for better review. > > The patches are mostly small changes but essential for the correct use > of the driver. The first patches looked like fixes that should be > marked for the stable. Patches [11,17/17] might be a bit bigger but 11/17 > is quite straightforward and 17/17 is basically a duplication of a > very similar commit coming from the BMP280 driver [1]. > > In general, the datasheet [2] of the driver is not very descriptive, > and it redirects the user to the BME68x Sensor API [3]. All the things > that were identified from the BME68x Sensor API have been marked with > links to the original locations of the GitHub code. If this is too much > and we don't want this type of information on the commit message, please > let me know and I will fix it. > > [1]: https://lore.kernel.org/linux-iio/20240512230524.53990-1-vassilisamir@gmail.com/T/#mc6f814e9a4f8c2b39015909d174c7013b3648b9b > [2]: https://www.bosch-sensortec.com/media/boschsensortec/downloads/datasheets/bst-bme680-ds001.pdf > [3]: https://github.com/boschsensortec/BME68x_SensorAPI/tree/master +CC Mike and David who have been active around this driver in the past. > > Vasileios Amoiridis (17): > iio: chemical: bme680: Fix pressure value output > iio: chemical: bme680: Fix calibration data variable > iio: chemical: bme680: Fix overflows in compensate() functions > iio: chemical: bme680: Fix sensor data read operation > iio: chemical: bme680: Fix type in define > iio: chemical: bme680: Add mutexes to guard read/write to device > iio: chemical: bme680: Drop unnecessary casts and correct adc data > types > iio: chemical: bme680: Remove remaining ACPI-only stuff > iio: chemical: bme680: Sort headers alphabetically > iio: chemical: bme680: Remove duplicate register read > iio: chemical: bme680: Use bulk reads for calibration data > iio: chemical: bme680: Allocate IIO device before chip initialization > iio: chemical: bme680: Add read buffers in DMA safe region > iio: chemical: bme680: Modify startup procedure > iio: chemical: bme680: Remove redundant gas configuration > iio: chemical: bme680: Move forced mode setup in ->read_raw() > iio: chemical: bme680: Refactorize reading functions > > drivers/iio/chemical/bme680.h | 39 +- > drivers/iio/chemical/bme680_core.c | 643 ++++++++++++++--------------- > 2 files changed, 315 insertions(+), 367 deletions(-) > > > base-commit: 409b6d632f5078f3ae1018b6e43c32f2e12f6736