From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f47.google.com (mail-wm1-f47.google.com [209.85.128.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BEC9442983F for ; Wed, 27 May 2026 14:35:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.47 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779892532; cv=none; b=bd09+ctQzOOiYyw4LOZoS+oiIeetYnCd+7o7tYFw2zObjs9MijEu3KEYlJJLvR+gt4tYhBb2HVaxFy965GUWBS5Oknbr3AZ46C/82Uaemh38kmUxQeUYILrtWgl97fgEzHP5OixdsqEgkDDlZpuk43F7HZvYp/9B5HB64UuXpSg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779892532; c=relaxed/simple; bh=P4wkV9mEDD23BeKG4vbE2EM7CHolhjJ2JRjQJMeo9kM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=AuTcmbfE1tITwJFmlVsi4cUUkSgIiG+kTK6gLW+urQNMyxv+Pjj1btL5YnQKeOb6vgbmaSogksqPf+lgVBt8Ou8IaZrHni1klO+K7GlYk+orXnDHVwjriLRwSWgYjJydOLwyhQTFwlvxxmwFm3bCqDSRKMat7wqHsNNkpYWm64k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=mqcVKvfO; arc=none smtp.client-ip=209.85.128.47 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="mqcVKvfO" Received: by mail-wm1-f47.google.com with SMTP id 5b1f17b1804b1-4891c00e7aeso81538475e9.2 for ; Wed, 27 May 2026 07:35:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1779892525; x=1780497325; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=vua8WCuJgrLlWDfrDB827XHjkp+v2MUAOu7XMIUMLuo=; b=mqcVKvfOYp+DM15QeRBAI9Zm4J7Pvam+Az4FOSTiezQonnOybXs8VhnUkeLkTUWcNr xghQa++Kq20M3BHpXk2chPFVwSuQE+YgFqzROMKWjEfSP3v4lwDB+FRrcR9TFXSySGLz alUuw/pmgrcMd4V98cOXlMzZXQPTpChQa7cpH0QbTs9jFawEVq1uwo+FOrQAmyvu6G0P IxXAAJPiIbmxjw6LuDRr1Cy9qOgPhjJeZr+2rPlCyPkfzit2SEWs3MuqxO4XPJqrhC+u 8ULbfFoTASPIP9Hmm6ITF5G/4zv4UI2aFV0mGz7jKZl9dYTAckpamhbTmOEHl3e6gcpd F1sQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1779892525; x=1780497325; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=vua8WCuJgrLlWDfrDB827XHjkp+v2MUAOu7XMIUMLuo=; b=p/KnXw5SpHUe9iXwLqTYkEJzo5ywrD+K9HIqSEWQeLOIie6/tozvo21D4RpZ9UZtrf eulO+cYY1cnwib/ouUxnD+epyamiCpnyQImzJFTTk++rYayouY+IU9mfswJ6xpMC5khZ PgbK8Xu4g2vceFv1lFLjh2k4XEzO7+dL9jfhNZrT99NXwlN16yk9es0ddVuidYdwL1As O+HncafMjdZnAECqcACkXCLTaFwK4zYS87tLlDjw/ykzZx9MnEu2upo0kaKPMNbcG6wX i/k8Sq2fC8Uf0Aw1pFQAvcwR4EkrjOqEtlaILOjqMejPazP+l5DiAJ1Ir0Ni7ZJeCtse wXHQ== X-Forwarded-Encrypted: i=1; AFNElJ/NcDKcBeQp7/6F4dV4hepwnGgqLesRuH84M86p6K9tqFvsgwmdRmepj5scjoQw756CsBiYZZ+1LDSKkRg=@vger.kernel.org X-Gm-Message-State: AOJu0Yx9ED/YGgDDo71r4PwO1iy5Y57Xg6A7cE6PUd1iuE2VctLdJOv5 2WrhvsLMwPD0KWvB+lUZUESsE9GcKuGXfMbYHArRc97X0R4PB+O0apQx X-Gm-Gg: Acq92OG3Yv+aRL3T60M3Zdv4NPa0lzj1Y0y2LsWu2oqd8IxIsXPHW5v/YOmhUMQ11Sd 6RDF9AxbRWo+yKPKfouDrXhihSPgctPCDFPfYi5wEUYxDao0PqGfI54CX1Do2BYJPCp/oiNlafc wPkExFEF37ESOoiwxp5fyM4QvgWmH6ttYNMylrzVYiz4/Nu/xwDrOkgpfIxCTRao+2QmYhA+DcA 1w2CmWI9F4SuIYACYt6n/Phc2vIOSTcASjrpMQO6XWngLfaWLJiH1aeazOGdnDTLa+h6LO4NW+0 9hUcdwXS3ezS1eBlVxqUaBvhoqtxwhwq3SDC5m/SAw2c2+MJ2plNxAuc7eFnBqvQd+ZcIE2rajK 5DIDQ3SLCz/jag7u4hbK+mjFwWi3DX/RPvv0ChYVTM4onsgfAalWwfqvV8SsQWWx8eEM0gaosaK RP3SjtNYOCxPUg12q80xD98zDH9Q== X-Received: by 2002:a05:600c:c4a3:b0:488:ac01:72b6 with SMTP id 5b1f17b1804b1-490426ceed2mr394337305e9.21.1779892525073; Wed, 27 May 2026 07:35:25 -0700 (PDT) Received: from sefo-laptop ([2a02:8071:50c5:5c0::361b]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-45edb5584b8sm6239763f8f.11.2026.05.27.07.35.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 May 2026 07:35:24 -0700 (PDT) From: Wadim Mueller To: Jonathan Cameron Cc: Guenter Roeck , lars@metafoo.de, dlechner@baylibre.com, nuno.sa@analog.com, andy@kernel.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, jdelvare@suse.com, ak@it-klinger.de, linux-iio@vger.kernel.org, linux-hwmon@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH v1 1/4] iio: types: add IIO_VOLUMEFLOW channel type Date: Wed, 27 May 2026 16:35:05 +0200 Message-ID: <20260527143515.102794-8-wafgo01@gmail.com> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260526165950.6ebbf673@jic23-huawei> References: <20260524205112.26638-1-wafgo01@gmail.com> <20260524205112.26638-2-wafgo01@gmail.com> <95f0914a-cb25-44ea-9cef-d203c624f74d@roeck-us.net> <20260526165950.6ebbf673@jic23-huawei> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit On Tue, 26 May 2026 16:59:50 +0100 Jonathan Cameron wrote: > > Two questions: Why restricting to liquid (there are also gas flow sensors), > > and why litres/second and not per minute which seems to be a more common > > unit ? > > I'd rather we went to the SI units where possible. Agreed - SI in v2. in_volumeflow_raw / _scale stays in l/s (rescaled SI m^3/s, matching the rest of IIO's "kept-small-for- userspace" convention). The ABI doc and a driver comment call that out. On the gas-flow question: rather than adding IIO_MASSFLOW now without a driver, I dropped the "liquid" wording from the channel type doc. The SLF3S driver is liquid-only, but the channel type itself just means "volumetric flow rate" and could describe a gas sensor reporting actual volume rate just as well. IIO_MASSFLOW for standard-volume / mass-equivalent gas flow can come later when a driver shows up. Thanks, Wadim