Received: by 2002:ab2:7903:0:b0:1fb:b500:807b with SMTP id a3csp1187933lqj; Mon, 3 Jun 2024 12:58:01 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVISMKnnmE1MuzjtjhcRTXe3ijRHCV12UiBDyTzYZV4jplTpMWmxSdPn2n63wYOnnM4iFKwZ3Ab2XalFi9wB+oUAdBY3Z02eK7E4gCKXw== X-Google-Smtp-Source: AGHT+IHjqowQZ2wsHg/JhwqxXR0i9TbhiX7i4QsA90MM4uWVN37WPHl7SVjACEO3S1RdNnTTX4jd X-Received: by 2002:a17:903:2385:b0:1f6:502d:ca88 with SMTP id d9443c01a7336-1f6502dcb84mr88222605ad.49.1717444681616; Mon, 03 Jun 2024 12:58:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717444681; cv=pass; d=google.com; s=arc-20160816; b=zugN6QBl9USLCbU72lbqphNAiSvWofXpSeSjyQbkvimYEHfw+hvBZ5aYQoYCIkmUMe PKbhGruA1ypG3zvLxsnn90RZHhkFqb6En7aWHxJvfzdeZSBCrcKbMA+1fkUNL01gGjW7 TvFijbS+H7MO0R3vw6MPfmKlLaedUSzTwS6RYZJshBr6LwtRUCr0Orj6enav0PZq/2/x caCc2X1guGXBa/G8rfcQRzh7Y02qpAGVE/1juSbQHoFO1xC9i76fpC7CQ6z8fOSJTu/t PKO5YmcGuj9QIZBFWksQ0OUUQJguxBXfGxH+Eh53m+7IWO4nWF8Tn3PFdQfnfcq3oHkz 5lPg== 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=tItlMu6iYc7AI6Myzzr0uoZ1G6bXYvjvTopqIUTOPO0=; fh=xjsdCYuomEJyS1EkfNUc5fKtF34cXQ1mOBn36d3R9dU=; b=DcYrs7XveHbRxc8RoqP7gHG8LbY4XImvCjWhCyZI/IpFGEdTKL1ige9/uE7hNACH/r VfMFToU0qx8kqYobnbqjCb/N+KrhBLrJt1tNJE0deFlbR9eWGOzz6caQoPjgNPySpeWe 3TUFFblNbBscDo1/1rLqJ9RAH0/yNqNeL3V7C+oDaqXUzcSvCWmxki7FmZXK8Xb2h+Em lwn0AV8OfhMkQLce9Ez/vTGuWrWVX0bCziqC12en7d8PqaK7bsysB8RHuyY76+S5TrI8 dpDSXUOiC2KeJ1NYj7/IV/tN5mZkDRQTCgqVBcEYiJwMHd5jajAIgaBXBbgi421Td1Q5 itRQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="FXU/fq+t"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-199636-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-199636-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-1f66ddf797asi30640435ad.509.2024.06.03.12.58.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jun 2024 12:58:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-199636-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="FXU/fq+t"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-199636-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-199636-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 66F75B277C2 for ; Mon, 3 Jun 2024 19:23:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4AF131386D2; Mon, 3 Jun 2024 19:23:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="FXU/fq+t" 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 7036923A0; Mon, 3 Jun 2024 19:23:16 +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=1717442597; cv=none; b=hFaks+mWlRNVsFpEV2O+3OSJ9SvrCYy+TBLYg+yG8qymXC7iJpbS0hiGFSoZ2wt62MD2VXwqlQy5dZa8NlAbzmiFRlzi2K9/6/TwAesRbIvsypbiwaiQedb9to/cHX89hzzsMRCb/l55OEXcLc152llSEaWNaKFRWT2aAZLXLMo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717442597; c=relaxed/simple; bh=H7l3b6KtMYvqUP8MJmxyxv5SuPQuY0kBYaeXMcuur24=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=FksHA9hZSZwTOHhUSl3P8jC1o16PfdDwNGVVF+X3LAv1EaCYQbkhbNilKcQyb0g07o7IctZ78CpHWmVu8g8ielR48ZU1b9guQ0aKV67VAe/c9Jjd8rOxY4KUxjwcBum4B0m8/dalcIUCV2InC5dUfQXxFfe3/ZnJkFZSf6Uq8yw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=FXU/fq+t; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id C17CDC2BD10; Mon, 3 Jun 2024 19:23:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717442596; bh=H7l3b6KtMYvqUP8MJmxyxv5SuPQuY0kBYaeXMcuur24=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=FXU/fq+tw7WbsPhS6oFRNkDgDNX84HNB5ytDLpDu48awP8ZUKScqIiNE2NrbBKpOZ XlF+l/ilc8B1pvKEd3uPA91dT5Lrb8XHBghmaHtwJj8ftcW/Lh0mF6XDDe95/D2QY4 dLn2X15Tj1DoOLsdiRqOUpfkCWzyPGFeo/KYzebe8oY2igx1Y447Crr/RoNAGXQ9Xr H/FXGBh6Q/CyBDMxfmYZjNIpkDUHvJMJQRhKOEEtt000A0KvdTJJdNlJiBaWdH7nRI tMCO4m0JoLqWe+Y+Lz1MEVmcoskbOWw/CqlqyoJ5NKLc5NejyC6toYx7Boq81SmFMK S0TdIcwfdedRw== Date: Mon, 3 Jun 2024 20:23:03 +0100 From: Jonathan Cameron To: Vasileios Amoiridis Cc: lars@metafoo.de, himanshujha199640@gmail.com, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v1 04/17] iio: chemical: bme680: Fix sensor data read operation Message-ID: <20240603202303.0b1054a3@jic23-huawei> In-Reply-To: <20240602190015.GA387181@vamoiridPC> References: <20240527183805.311501-1-vassilisamir@gmail.com> <20240527183805.311501-5-vassilisamir@gmail.com> <20240602134106.2538471a@jic23-huawei> <20240602190015.GA387181@vamoiridPC> 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 > > > +} > > > + > > > +static void bme680_wait_for_eoc(struct bme680_data *data) > > Don't call it wait as that implies something is being checked. > > > > bme680_conversion_sleep() or something like that. > > > > This sesnor has a sleep mode, so I think calling a function like that might > make it a bit confusing, since we are not putting the sensor into sleeping > mode but rather actually wait for the eoc. Hmm. Bikesheding time. I don't like wait because it generally implies a condition check. Maybe just go more explicit bme680_suspend_execution_until_conversion_done() bme680_suspend_execution_whilst_converting() or similar might be overkill but something along those lines. The suspend execution terminology lifted from man usleep > > > > +{ > > > + int wait_eoc = bme680_conversion_time_us(data->oversampling_temp + > > > + data->oversampling_press + > > > + data->oversampling_press, > > > + data->heater_dur);