Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2129833lqp; Sun, 24 Mar 2024 04:43:47 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWRJrXl4jf9s8p9W5zSaKbNlW3pgTLqKc0OW00/F0OezZCVsuXMHyRcsgKgeHppkHQ9jl7eTy8lQUIug6IlhowDZqG3a/MWw274dNy+fg== X-Google-Smtp-Source: AGHT+IFHMaf3x5uSRA0VpdUeyNHtF0cIOnUyhkFcSoHotSLLr7j4EIciQYPlJ3e+OIC+HmffHySi X-Received: by 2002:a6b:e413:0:b0:7d0:52a2:c4ce with SMTP id u19-20020a6be413000000b007d052a2c4cemr829719iog.10.1711280627588; Sun, 24 Mar 2024 04:43:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711280627; cv=pass; d=google.com; s=arc-20160816; b=RMJ4RmEAG9rfX3CAiSXpzdiPf3A7OGJY5c2Z+NX3WR5Klyvkea7pWvYmk346wkpULo iNrwDZZ0Ekq2Ft4nsbgwHf3SLkknEhCCSeAD1suW2cjiFBXL4nPDmbFrK0yz2HG2oYq8 IEL0stqCmA8SkC/H2Sb6fq3mxDuWHgFJHJn1TNjDPzNgLcbkNONXsbX8MGW98FzYEFDt TarL5FRQpIs1YR4OO4ZMy/5K8HW5qjaojWgg8Z4APBmYpPPIytmS9yPmYvnR/B3QF9Qv scC/IsfXkfDJ4iuqc3I78fPsItd0LCXSNVoqcvO5pIuWu+QQbc5zt7lhJaYepHXlQVyB zeXw== 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=S61T2L3tKezHRw75s8BUJa77OP0EHpdhwJdQiRypgPA=; fh=ULxNTxaaQIEX8Y9ih2rqqI9Lxn2bbvdaV8tkS1+QGD8=; b=ooWajNVeWNgbV/Vwft0cT2CgDpBelXlau7GloIkOs9wO5jHN/6fW/LT3ewi4L7BQ4m qxU3YYU7M5TBMxPAjbKO0UDL9CoKQ6AOe15i3NxlCILbaUJUGsFV96dha7tI/wy4Eg3D 2lGZL/DbjNIY2eV5MWbQit4J7ZH/RDadXeOkhLH67OilXgfxlSms1Z4300+AzcrL6hNa VsXwHIEkQLWnA0alRt2+9C2KsrY21l3woqiGmiy70ipVVqFtanI3iMsV+bp82z+NF81N YBsprOcGj6gHzBQK7wR0inU45hpBQtrJ7vGvWMPn24guWW7yxGzZpFzHWMUP4uDhF0FD zElw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=p4Pu0sFd; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-112651-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-112651-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. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id l72-20020a63914b000000b005dc875b87ddsi3134433pge.223.2024.03.24.04.43.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Mar 2024 04:43:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-112651-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=p4Pu0sFd; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-112651-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-112651-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 3A4E9B21140 for ; Sun, 24 Mar 2024 11:43:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9BBB917995; Sun, 24 Mar 2024 11:43:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="p4Pu0sFd" 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 BFCF928E7; Sun, 24 Mar 2024 11:43:31 +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=1711280611; cv=none; b=jSMRBUtCHRNF3rAe5D/4jmeXHpzdrcx7+EoyjAtHFYd8YmWPf531swau4roBnGIRSaFET3LtqQ9mPFSKTgM6q+/s+65VOucczzcSIYp61YBaHa9v1eZnWa5lrTRH34GGtbZn5o4c+IV3CcQav8l6f28E62lx9+vr6N6F10yITr0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711280611; c=relaxed/simple; bh=I/NgdRgrmfOu8lyvLzMrgCyS9pAJxb+fLcFX7Ruhzcs=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=koVG386YEhyTXTNEDega5JfGP0X28IMAGTBbjmbvNv/7yE4vkPyaAr8pUdFopJaAimDweGDQtgyCqhjJwFLs12vm/xNjtIP3C5XZdiNFhxxJRGQuvEkCOWp0lfvEpuL4yEY0OqGiKRNJ2BZ+wmxIjPWye5fdyK/8w9aTvTAaZjI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=p4Pu0sFd; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 29374C433C7; Sun, 24 Mar 2024 11:43:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711280611; bh=I/NgdRgrmfOu8lyvLzMrgCyS9pAJxb+fLcFX7Ruhzcs=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=p4Pu0sFd/bozjma4BaKw4n8ma3hz+pAnIoRK16RvfYhmRLcrmIg4dXT9a2H7Kunw/ q/4MTx2cV7KF8bJuPAOrPagzw5TOO1jjYO04WPnSzioM7RtUweSSH044xWPyQcXMQv N5NIDdoFF4/1Cu8Ji3lnlukkbJQS/8EpcjoRAWeLm3USNSH/r6Kj8p2mf2sv9VxOxj tfe7lTXV6DNKQdBDxbGXrXfQA1onA212X7HlS471aKMvW/QKOJU6QaQDEqUuHfaTBp z5VRV8Nkp4HPishImI2FIwDfGSTHeicuvNgoWjP0kb5tRh/ko/79+v3aS0vRdb52ZI gbjwYKIXACaOw== Date: Sun, 24 Mar 2024 11:43:14 +0000 From: Jonathan Cameron To: Vasileios Amoiridis Cc: lars@metafoo.de, andriy.shevchenko@linux.intel.com, ang.iglesiasg@gmail.com, mazziesaccount@gmail.com, ak@it-klinger.de, petre.rodan@subdimension.ro, phil@raspberrypi.com, 579lpy@gmail.com, linus.walleij@linaro.org, semen.protsenko@linaro.org, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 5/6] iio: pressure: Add timestamp and scan_masks for BMP280 driver Message-ID: <20240324114314.4f70490a@jic23-huawei> In-Reply-To: <20240319002925.2121016-6-vassilisamir@gmail.com> References: <20240319002925.2121016-1-vassilisamir@gmail.com> <20240319002925.2121016-6-vassilisamir@gmail.com> X-Mailer: Claws Mail 4.2.0 (GTK 3.24.41; 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 Tue, 19 Mar 2024 01:29:24 +0100 Vasileios Amoiridis wrote: > The scan mask for the BME280 supports humidity measurement and > needs to be distinguished from the rest in order for the timestamp > to be able to work. This needs a rewrite. I read that as the measurement needed to be distinguished from other measurements, not the device needs to be distinguished from other devices. It's also unusual to update the scan masks to add timestamps or scan_index / scan_type before they are actually used. Hence this first patch should just split the definitions but not add the additional elements until the next patch that adds buffered support (where these get used). So resulting code is fine, but the patch breakup can be improved so all the bits we need to look at for a given feature are in a single patch (but not the refactoring). Jonathan