Received: by 2002:ab2:7903:0:b0:1fb:b500:807b with SMTP id a3csp1200823lqj; Mon, 3 Jun 2024 13:23:59 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUXnbeutnF2vsIo4pfS1QIQG/qu5uvlnF6f5FRK7/2OSTTv0h6bfNLC07ceDAjfFKF+DAyahhLyK0+V5JB8B+3wtxxtm/zpii5ngwel/Q== X-Google-Smtp-Source: AGHT+IHzxcKRCFPtHUipwOe1ZmSK0MJ2zdXfRGACg9RO0y+UA6mDnzpD0JjFFIzOfgUypLX13FdX X-Received: by 2002:a17:902:d2c2:b0:1f4:8bb7:6862 with SMTP id d9443c01a7336-1f636fc5382mr129863855ad.5.1717446239516; Mon, 03 Jun 2024 13:23:59 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717446239; cv=pass; d=google.com; s=arc-20160816; b=xx+wKSwlrTwFmdY7wYKsjjJtzhLFxsesmy+VMEaPCQlQlxbDCFZ/uRozgmgwKznZV3 ZDJ1+/MV42cn1jw4drw7Mch2bmbP2Y79ZwbhgZayFcEDWMWefuS2zSDOCehg0sDbRsUe RhKm9l3xyXOZ2YVwOXg/6svcsoY/WY+JjNwkFkLCPTV6M8GbqecDLrwYucS0PfOLo7Pz i8VRmTSpKZrR6GqQvPx9CsuUIJnVe3LnqIYoqBaPr59/ORJGYxmaZw7pj76+BLHRE/vp +ZEHtxL8RjUnK0aN3OiK3esTZLdXWL1W8T+tcDjL4i428rqifHaPqhu4qz1AxnDa1Avb aHTw== 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=9gcnU31JYe6k9/zZm7ZNLeFhqCBaYAbihAfjWIZ/2bo=; fh=16jvDeb6Ktf2UXv+rYJNoxP63JaqlB+rSL9h38cJonI=; b=uBYjIhPWPCNsdFJ+sKMi+e8huVgfwW98Zvk5121b0ZiES8KH1Tq4SQD8dMA/DNMdPt cb8Np96+xr1M8Njzu4/zLSo+OjfB289i1Ti7pQ3rkoynh9Sg/CBFMp4ntAiqjC0azu/r rYLXdW/lUUOHZWscmKDXeYoLKMzmDmAvFUf+qzwS4Km7xndgM/6X8iPzhqulyMp/gf5p uty64lEU16lCcu+d05Mtto2YSFXYVPqKo/dT0dFqDA3nYrCx5Qk7zXlKC9EYXCM2Bgms 59x1MAFJ+5OT1ejvgKthkQXN11/r8RABjI7DvmUiAQIq5PELz4qUYhutzPs0YyIu2lAh Qkaw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=GU2WgC73; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-199668-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-199668-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-1f685d2059asi12380665ad.443.2024.06.03.13.23.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jun 2024 13:23:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-199668-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=GU2WgC73; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-199668-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-199668-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 7F2B9B249E3 for ; Mon, 3 Jun 2024 19:55:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 37E1D13AD20; Mon, 3 Jun 2024 19:55:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="GU2WgC73" 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 58CF020ED; Mon, 3 Jun 2024 19:55:14 +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=1717444514; cv=none; b=k+4uP8emU9N5ffHj2Xq5VAZ0zxu2gyQyOqoM8Ul4L52JU0amevB2U1cto8hVZEYv5N/05Dwyt+AE0xWSC3n3ylzcayiOthBkTDDquL/tR49wtkCLucGX5cz6axX6DgrK2tluM4qv05fYv52AbYcztBrg7z01YbVOTQp1mQ5bdC8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717444514; c=relaxed/simple; bh=1fIiUaMhINY/BVkZO99M6/eSuzyKLzaI9qYzq+ht54o=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=qIinmGBQXVpwwYHiRn9UEB49UPgoxoSV2gXBsHIIPHjjtlSknN6uGAsHEKa//DjC7glPhxapviQGXtAMOUh094slL5xql3oqm9jPkkwLAv4JPWcyUs1mU39Rkeh0WSuCs7X3D34+/FPuVXYvKqoMz+JcYRMAYV2DkMbvPCURy38= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=GU2WgC73; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id DA74DC2BD10; Mon, 3 Jun 2024 19:55:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717444513; bh=1fIiUaMhINY/BVkZO99M6/eSuzyKLzaI9qYzq+ht54o=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=GU2WgC73jIvh4bn4NaorEWg2xhgW+IYbR0ift7S+6CWOfDNzNUePA/ofMhkB6uCtV PdhhHFocOtzJNrBIgJkPIupD4qgeAArOL51ZWV0Ue4sloDKOTCvja0mLk9yeTDTfDS xDESPcMEP5EAobL3A8DrOMQOlcdpQYLelBRzaY6vSjKmkPKgJyUbGNzrK3UjvxmeOl YxBkRc99cANRbATQXqoDwLLpj1c+WsDo6jFhUgf3mru8YKznT1RdPpLZSukc+pdHNY s1rYGFcsqSc9CXyAs+QwS2OpzqMeCB5RSWK1b08DFToFMpKqotXcOR0qeJYBRGe7N6 ClPT7F0bWCBew== Date: Mon, 3 Jun 2024 20:55:02 +0100 From: Jonathan Cameron To: Nuno =?UTF-8?B?U8Oh?= Cc: David Lechner , Michael Hennerich , Nuno =?UTF-8?B?U8Oh?= , Julien Stephan , Esteban Blanc , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 0/5] iio: add support for multiple scan types Message-ID: <20240603205502.5e6155f4@jic23-huawei> In-Reply-To: <11841924e4e1db49001a2fe52f5985f3c044c184.camel@gmail.com> References: <20240530-iio-add-support-for-multiple-scan-types-v3-0-cbc4acea2cfa@baylibre.com> <20240602102517.438b51b8@jic23-huawei> <11841924e4e1db49001a2fe52f5985f3c044c184.camel@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=UTF-8 Content-Transfer-Encoding: quoted-printable On Mon, 03 Jun 2024 12:25:55 +0200 Nuno S=C3=A1 wrote: > On Sun, 2024-06-02 at 10:25 +0100, Jonathan Cameron wrote: > > On Thu, 30 May 2024 10:14:07 -0500 > > David Lechner wrote: > > =20 > > > Up to now, the IIO subsystem has only supported a single scan type per > > > channel. This scan type determines the binary format of the data in t= he > > > buffer when doing buffered reads. > > >=20 > > > For simple devices, there is only one scan type and all is well. But > > > for more complex devices, there may be multiple scan types. For examp= le, > > > ADCs with a resolution boost feature that adds more bits to the raw > > > sample data. Traditionally, for slow devices, we've just always used = the > > > highest resolution mode, but for high performance ADCs, this may not = be > > > always practical. Manipulating data after every read can hurt perform= ance > > > and in the case of hardware buffers, it may not be possible to change= the > > > format of the data in the buffer at all. There are also ADCs where > > > enabling the higher resolution can only be done if oversampling is al= so > > > enabled which may not be desireable. > > >=20 > > > To allow for more flexibility, we would like to add support for multi= ple > > > scan types per channel. > > >=20 > > > To avoid having to touch every driver, we implemented this in a way t= hat > > > preserves the existing scan_type field. See the "iio: add support for > > > multiple scan types per channel" the details. The first couple of pat= ches > > > are just preparation for this. > > >=20 > > > [1]: > > > https://lore.kernel.org/linux-iio/CAMknhBHOXaff__QyU-wFSNNENvs23vDX5n= _ddH-Dw3s6-sQ9sg@mail.gmail.com/ =20 > >=20 > > Nice series. Applied to the togreg branch of iio.git and pushed out as > > testing for 0-day to poke at it. > >=20 > > Obviously this v3 hasn't been on list that long, but there is still time > > as I doubt I'll push out a non rebasing tree for a week or so. > > This week is looking too busy! =20 >=20 > If there's still time, feel free to add my tag: >=20 > Reviewed-by: Nuno Sa >=20 Done