Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp685129rdb; Thu, 30 Nov 2023 15:55:00 -0800 (PST) X-Google-Smtp-Source: AGHT+IErzJ/DIn7I7mmthDf3iZnVHt5jm0ztPQ3bQoH4NoVGZVNeGYTf8UnQnIizGi5Xf0C+GvCw X-Received: by 2002:a17:903:1d2:b0:1d0:231f:5e38 with SMTP id e18-20020a17090301d200b001d0231f5e38mr6709760plh.38.1701388500688; Thu, 30 Nov 2023 15:55:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701388500; cv=none; d=google.com; s=arc-20160816; b=XkJYSKhYXfENA7g+U7qDOHEKBkN7U8AhYLDbN2Angt29HMhKSy9nikoGQQOED46Fcq inzJtNrGEoEiXaYZhJDsWOQz/lW9jNEMbyT4jRLlVIVeOAlgj4WZknTwBUJopKxEZeA3 v7nPhBCOhtiWCbo7ADsxbYJPY7j3whpdX4r8AbDgArvkXje0dWXOh+vmBEbSImbbeTt4 FRKOoF18h4W6AtIqyhscb7D1ZBo+FNVzoS0KbaaRDqJMIyUZK9MIPmQbKe8nnomub+N8 xu63C1m13Sal/OKN2J5UIYj6qVkwtyvr/z/a9IrCEaSiP2IMAgPjqh0wmlJzmxTJ3xKT arFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=sGO8mAdrAqhDRxrlrd1/sOrvK17UXFpdyDtQDEFr48s=; fh=ttWv8VCoGF50n4AB/K9MI+yMSg75NE7RBe49baFg6DU=; b=K0sRs6v8zQamnv2xfuZ2DL6NK+p+uzo0Ibh3V5+40ImJhnwDruiedFOoef9p75FRRB 4t6dmh6brStc6C7QhJqsNHKGbXhMI+6wRgSHPbMd7XglUJz04ujv09O3uiF0hhVTtzO4 V/WjOcY1gbImxjt2f90jyUIIrL5TlWbDn2NZ4M1KEoFXqDFiCqQAYqGIVOcqPouueixG WBXKbJj0ht0ju4k+/+gQ+R8wyZQaAW8w3U9BrKdgs4DjtBVTzyeFMZvylL7ex0aoC9O+ L4zx4ZRXCppaVSOYKhLCOKcemoLHUz7D06w/s7TXvCDYARuY4BKUL2E+y8T5obQnygWa EIhQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=P0w3vrmZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id w13-20020a170902e88d00b001cfa17ec32csi2315747plg.615.2023.11.30.15.55.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Nov 2023 15:55:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=P0w3vrmZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 6567080D6E6A; Thu, 30 Nov 2023 15:54:59 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377326AbjK3Xyt (ORCPT + 99 others); Thu, 30 Nov 2023 18:54:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46578 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377294AbjK3Xys (ORCPT ); Thu, 30 Nov 2023 18:54:48 -0500 Received: from mail-lj1-x229.google.com (mail-lj1-x229.google.com [IPv6:2a00:1450:4864:20::229]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9A18910E2 for ; Thu, 30 Nov 2023 15:54:52 -0800 (PST) Received: by mail-lj1-x229.google.com with SMTP id 38308e7fff4ca-2c9c581596eso15792861fa.0 for ; Thu, 30 Nov 2023 15:54:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1701388491; x=1701993291; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=sGO8mAdrAqhDRxrlrd1/sOrvK17UXFpdyDtQDEFr48s=; b=P0w3vrmZ/OBgZk9VnvkxG4/ZliZvrM8ERpyZfmVJKGBmM0tfKXgDxFmE5gH8Ht22Id S3vGIHzsLFBxxfAuzBPmoPiSJN6XutpKQFsSnFA8F/TJLS8HKVFcQ+ObIOUlA7g2jaPs MKEt2e59vzN9ezXrHBIXIz3PHN9rxLxs2wsxaZP4fXlpqv/PYHvOm+crQe5Y9wxQoFrd Juyf3ayyw1z/ZgcXRTa2meWQPqkjrcgQbcMhIrz/vm4pBAL7yFlPy/V+Ae1rcJERCia6 mDSxhFMmCL5O+b1Ml3PfpzqgdGhEM9S0W+yiIMIZRHCRwCIg188JRqibz4A78+t2YG8H +oUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701388491; x=1701993291; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=sGO8mAdrAqhDRxrlrd1/sOrvK17UXFpdyDtQDEFr48s=; b=UpUBdATQrta3T6XJM75OUuTERjJ52nB3WyB40/bDJp2nIcQ+CPwR1nnehKH7l8Utzl SDVmSFLMw6kqrxSbqNRcTHVn9FCsi6Igc989bQnmPI7Cf5wpbYPm3OYsMgu5YeML7SVc IaYQLMKk74BOphHtWrNTnOxZCZevDyEaNHH9d0zDN/vdN1gbI/5qjaBoAswchYJ6mRrJ /3RxqLnvSf2noAahG55Isb2Ncd1fHqeJIGZT/TL6oVf14NoL1x5BsmbusrmCacyv5iYJ 2NOWOGBkZriGNsch0KFbLiswpzRwE0bncZBmReNrTRp6H2qEOabjg4huhpRWhm/hktJ9 hoCQ== X-Gm-Message-State: AOJu0Yzguv7iC/MdMaaSwCT7oKBT+1DtmpLlBPrLMprTS+bQY0IzZ8Wm 0jfmLQUtuGf7TJS0gbXkBw+k/Npxew4ypcsYj7XyOA== X-Received: by 2002:a2e:5cc4:0:b0:2c9:c50c:a9c1 with SMTP id q187-20020a2e5cc4000000b002c9c50ca9c1mr203763ljb.6.1701388490692; Thu, 30 Nov 2023 15:54:50 -0800 (PST) MIME-Version: 1.0 References: <20231121-dev-iio-backend-v1-0-6a3d542eba35@analog.com> In-Reply-To: <20231121-dev-iio-backend-v1-0-6a3d542eba35@analog.com> From: David Lechner Date: Thu, 30 Nov 2023 17:54:39 -0600 Message-ID: Subject: Re: [PATCH 00/12] iio: add new backend framework To: nuno.sa@analog.com Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-iio@vger.kernel.org, Olivier MOYSAN , Greg Kroah-Hartman , "Rafael J. Wysocki" , Rob Herring , Frank Rowand , Jonathan Cameron , Lars-Peter Clausen , Michael Hennerich Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Thu, 30 Nov 2023 15:54:59 -0800 (PST) On Tue, Nov 21, 2023 at 4:17=E2=80=AFAM Nuno Sa via B4 Relay wrote: > > Hi all, > > This is a Framework to handle complex IIO aggregate devices. > > The typical architecture is to have one device as the frontend device whi= ch > can be "linked" against one or multiple backend devices. All the IIO and > userspace interface is expected to be registers/managed by the frontend > device which will callback into the backends when needed (to get/set > some configuration that it does not directly control). > > The basic framework interface is pretty simple: > - Backends should register themselves with @devm_iio_backend_register() > - Frontend devices should get backends with @devm_iio_backend_get() > > (typical provider - consumer stuff) > The "typical provider - consumer stuff" seems pretty straight forward for finding and connecting two different devices, but the definition of what is a frontend and what is a backend seems a bit nebulous. It would be nice to seem some example devicetree to be able to get a better picture of how this will be used in practices (links to the the hardware docs for those examples would be nice too). In addition to the backend ops given in this series, what are some other expected ops that could be added in the future? Do we need some kind of spec to say "I need a backend with feature X and feature Y" or "I need a backend with compatible string" rather than just "I need a generic backend"?