From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f48.google.com (mail-wr1-f48.google.com [209.85.221.48]) (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 1CB7E305673 for ; Wed, 27 May 2026 14:35:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.48 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779892520; cv=none; b=hFHj6Hyh8gQGXLkZQBf9MjJlQ/5K5fb/WfOTJVYUZPLEfK+ID6YjLIlvpUSSO9LY144+j4ENB3K258DRL3tiIYVxTwEyACiG27ev4jwiPe4WLZdpxNHctu7W835jvhjdmhTHp9QdW5uBIsUJHjzJytS79DjaKOnoDAVxVRD/OeQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779892520; c=relaxed/simple; bh=usrk/brkiF0gDQ4v/eaKp9rFYPDNwORJnY4Wqr4tzRM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=UCNM7Yr3uEu7ejDEK8D+DpqHg+6zgJHYqsQ/mACWaw4r6+WixZ5+wtDOYLgOM7LKoTZhPzafMc+HH3AdpzOQlrYdf9pTwx5AymWKFDsynQH9Dalsujo1oRAZy3y46s+Ja5k7unCf3dFtN+xPa5iMnZgyFweUxhsRL4JKcTxhQds= 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=HB2kG0Cj; arc=none smtp.client-ip=209.85.221.48 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="HB2kG0Cj" Received: by mail-wr1-f48.google.com with SMTP id ffacd0b85a97d-43fe608cb92so7238617f8f.2 for ; Wed, 27 May 2026 07:35:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1779892517; x=1780497317; 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=kXJMeIed8n1hIt+0o9e1Q/FT5FxrTL6nQCpAB+Niu8A=; b=HB2kG0CjLZb5WmMKkMT9uvRR1UZYZ7JJpYQ243kjmAk96GBg9+pKU3PVDu90hGdZJk eZ5j3ejqATIG3GgqQq8xaWQM5YnZW83kmIylDWd7G+1MCcTzajB6BDywe/m2FVX+i0NK EvuUzNY64JNVZiEzABJUnmPxM8DbAyTyhvycDDd/u5Cat4gJ0UwELgO4EqpcOCePtPzb /uvXB5HGSGqsQz55mcsjld/B7VtcA2MBZAzOdbvr+WZcec8eaOTJF+tEaAtqoK+ixH5U VQ+umW2a54l+XKX8UXupNH+Eb0B0IYpgUMrVEZN50jWXrqb0KGw5YWT4vqWxFvCBZMQ1 Y9Aw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1779892517; x=1780497317; 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=kXJMeIed8n1hIt+0o9e1Q/FT5FxrTL6nQCpAB+Niu8A=; b=pygfHtMiwuLK8DBFlevrbYCiMCiH8wBfjxnSxxknbBZmfI9ukVOiZyj4Y73WJTtPiZ bhlJNGpdOpZ6BIyQGlBtN2UQCSQBnsv81RqHwOxppSoCHtUTPuwJrOp+b0t4tM3xLZgQ t0zE5RdGXgp8roHwfq3IQQhuB9Urk5fnc3lKu7tD9roLJsBsX1w9yMJ9viXL7WJBSfHO SIMKuZGAdTnOkFLKa8U/gWL2HSY9hmxuZrqkqMsQfOlMkbvfrHukOo+D0/n7WocYW3QK s/mtJoTN68SrkuamegCyVFf5bcaibBNOM1szw9F93n91fG7aKbMlS4UYUj1BNZ7aqp5M OJKg== X-Forwarded-Encrypted: i=1; AFNElJ+ZczPW8HjXFt/fZV9naAs4VLZ/LKVoXD0GHUWhjeSwuZv/jOKPeKC6sjbLIqZYZgod7HCNSJG96XCpkVk=@vger.kernel.org X-Gm-Message-State: AOJu0YzWy52dANxkcuhWdGUW19vqODnPhKe7ya+mCXOsrXg77nVza01i ErVGFUlCnhzALh6gW3dvKnnsw0zT6XA57v/wPBwpCuSP1HAAHNBUlED/zqC9X8Rl X-Gm-Gg: Acq92OGW0AXC36ltbGlN+VwCaswS7JPA9UqCk3dCVzsMeBtxNiMxJpBkZwL2RPuepqq uiq4vM4+h7Wxu44NGDDJBxeLPfLAClCu6p/5O0E8ZZfRhOIpMcFwqh41VKGg03gzem0ZfhPEHW2 Wl/qp3VUwYv2VlfqDtP51rUtQUuaZ/gBG/39KQLmJlAEFFPL8ySe5mT7dzVKwVgH+nsFhStkY5d Eiusj+4qIuHxKyjGZTSJ3AIVcP8ltoFoTs8DLF7yc3NymoLlO0F/iiWwKe8Lc7wdj0DsG1rpdF1 ihWlpNVDoA1Dv/+Sx24Jyg+GG1956Rf8l80u63KHCwjDcNU4/alvNB8TiKTHZf+5SJMjXMrC5ca WRVY7R/awsJdabvSmceTOgfEttYeaB1614CKGUfUNXfQ6cuYKP9kb3hoKTXleKKa1iT2JLOsPDM dFOSvokK68lFCGXP8= X-Received: by 2002:a05:6000:41e3:b0:43d:50c:6f18 with SMTP id ffacd0b85a97d-45eb38a1687mr33364115f8f.11.1779892517326; Wed, 27 May 2026 07:35:17 -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.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 May 2026 07:35:16 -0700 (PDT) From: Wadim Mueller To: Jonathan Cameron Cc: lars@metafoo.de, dlechner@baylibre.com, nuno.sa@analog.com, andy@kernel.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, linux@roeck-us.net, 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 0/4] iio: add Sensirion SLF3x liquid flow sensor support Date: Wed, 27 May 2026 16:34:58 +0200 Message-ID: <20260527143515.102794-1-wafgo01@gmail.com> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260526171214.750c2e25@jic23-huawei> References: <20260524205112.26638-1-wafgo01@gmail.com> <20260526171214.750c2e25@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 17:12:14 +0100 Jonathan Cameron wrote: > > 1. Subsystem. Liquid-flow sensors don't seem to have a home in > > mainline yet. iio/ feels like the natural place for me, but > > please correct me if hwmon (or somewhere else) is prefered. > > I'm fine with this type of sensor in IIO, but open to hear from others! Thanks - keeping it in iio/ for v2. > > 2. Channel type. IIO has no flow channel type so far. The series > > adds IIO_VOLUMEFLOW with _scale in litres per second per LSB, > > so drivers reporting smaller units only need a fractional scale. > > IIO_MASSFLOW (for gas-flow sensors) was left out on purpose -- > > happy to add it in the same series if that's more usefull. > > Would be good to have a little more detail on difference etc to have > that discussion. Superficially I'm assuming this is a compressible vs > non compressible thing? Right - that was the distinction I had in mind: - IIO_VOLUMEFLOW: volumetric rate (m^3/s in SI, exposed as l/s), well-defined for an incompressible fluid where the volume at the sensor equals the volume delivered. This matches all "liquid flow" sensors I'm aware of (and the SLF3S family in particular). - IIO_MASSFLOW: mass rate (kg/s), the natural unit for gases because the volumetric rate depends on temperature and pressure. Most "gas flow" parts on the market (Sensirion SFM3xxx, SFC, MFC devices) actually report a "standard volume flow" (e.g. slm at 0 degC and 1013 mbar) which is just a fixed-density restatement of mass flow. I left IIO_MASSFLOW out of this series because I don't have a driver needing it right now, but if you'd prefer I add it as a stub here (name + ABI entry) so the two siblings land together, I can fold that in for v2 -- happy either way. > > 3. Subdirectory. I put the driver in a new drivers/iio/flow/ > > since there is no flow subsytem in iio yet. If colocating with > > drivers/iio/pressure/ (next to sdp500) is preferred I'll respin. > > This is easy to change later if we make a wrong decision. For now I think > iio/flow is fine. Sticking with drivers/iio/flow/ for v2. Thanks! v2 is up, addressing the inline review feedback from you and Guenter. Dropping the RFC tag since the three high-level questions are answered. Wadim