Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp694527rdb; Thu, 30 Nov 2023 16:12:45 -0800 (PST) X-Google-Smtp-Source: AGHT+IGMDOxBGvppNLyVyPVV1s/c7jv8HPpjLU7LczF1k2dK623T7KDOO/4frCJihz7ZQG1xco2d X-Received: by 2002:a05:6e02:508:b0:35c:a13c:9be7 with SMTP id d8-20020a056e02050800b0035ca13c9be7mr20125545ils.5.1701389565381; Thu, 30 Nov 2023 16:12:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701389565; cv=none; d=google.com; s=arc-20160816; b=cHr4aUmRssHnR1zrU2eqqdKJYhPBVCfKG8TnkkWWtbuVUD+/1A3jJ5brAxMr8GMC1B +Wc1FLKYyGTb0dQf/IxIAGliStVbxfPEzoXOy3XWoAjmbKo2WqHLIrcciMCNa1v2fDS7 9yuL9PbNm7OZs8WzigGcgCPPJgQBoJU0mqST6pI0mK/J9lSG/jzgsGeVXZy+oLYHuvYX ONZfhoDs1RkJ8i/FMMjDFVUngPgB8CcboUjGgMWfcgybIvQt362dXzT+OcdX1MXjZ/tr sGLu2dO4wXfeVlG6jfPNanxQcwC6q/yb/secqXeI+XYt6OsRbBlAOAAV4BqNLhcTxZxP B4gQ== 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=w+S6ZNm0KY70bzKBdaXHGr9e7p3t5vwxIYL3G+hCH9Y=; fh=ttWv8VCoGF50n4AB/K9MI+yMSg75NE7RBe49baFg6DU=; b=rHi9GPAuYjnr6gUbqfbo6uhA5M4HMUSF/9dGr8ebghG5HFeTlxKwzSp+adwQehunz9 lhDlp2mJVDFfnwjpR8YlyZ/cFIDP2piMq+8eH48UZszv0WpU5HsWO3ve36lqOEEpBNYO oc4O5WSMHn8gi1OmP26k4jUDRVAaMiNFt55e8wXgK0M7I16cs3+8oA00tu0S1tFABs9p DVkK1Jk61y48+m20UYSWtx68nMyxa8WGyvo+cHbhITmMH3A72eTgFhx6RZkfJEFlRNIa JxWZoJzxWoijcoHBF3s3jmrdl4Fhb3/nNPGiW27AJDkQGVEBALaYRl2xR5emCSZSl7vU aITw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=EgkiEx+V; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id t7-20020a63d247000000b005c602ff4068si2321121pgi.438.2023.11.30.16.12.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Nov 2023 16:12:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=EgkiEx+V; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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 agentk.vger.email (Postfix) with ESMTP id A26F0801CFDB; Thu, 30 Nov 2023 16:12:42 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377379AbjLAAMU (ORCPT + 99 others); Thu, 30 Nov 2023 19:12:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56920 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229570AbjLAAMT (ORCPT ); Thu, 30 Nov 2023 19:12:19 -0500 Received: from mail-lj1-x22a.google.com (mail-lj1-x22a.google.com [IPv6:2a00:1450:4864:20::22a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CD25D10FD for ; Thu, 30 Nov 2023 16:12:24 -0800 (PST) Received: by mail-lj1-x22a.google.com with SMTP id 38308e7fff4ca-2c9ccf36b25so15228001fa.3 for ; Thu, 30 Nov 2023 16:12:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1701389543; x=1701994343; 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=w+S6ZNm0KY70bzKBdaXHGr9e7p3t5vwxIYL3G+hCH9Y=; b=EgkiEx+Vcd230vMg3k+g1khMK+c/37irFitUfftbLmkI4ENDgI9Hg11raTawsFLvBg ThtPknKqohzR7RhnFKEi0fh8/BUGUhpO7meziEFNb+uNz4Mrifx8ZGIcNL9qtbONjUh0 MS07QKpp73AUuaD2UcQOp+uSSM+wKSXnh1JlYClAl7sFd/ZN1HSA5LX7WtZC1jv9xrpS Ft2jse4sT+pgn/7jiIDv6JkhHsJoZWpyTbDOATsrGrR0OaibWQDkfQEURJRZUG1+piTX Kd+WCKjx5d9+FlO9qX9O0speDuN7qjHmZrArsy6r3uViBuOE492X6gueHImwp+WHY1fq Wh5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701389543; x=1701994343; 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=w+S6ZNm0KY70bzKBdaXHGr9e7p3t5vwxIYL3G+hCH9Y=; b=tA99n+G4X6hWVlN/sWUOnHDv0b7VvN+2Azn9WNv/sWvVv3HfyEB3YhRBcyPJw+ns3g LeMJDXMUfW8SIoBInpV6TM2u7Q0piZ1n7qvIwbaCiuz6NztMT+x2o8grv0VtaRouhfE0 5+qGy1K3DbJy6M5NuHTQKZBC6Sj+jK8GPj7QXEyxXb5bwA2Yv4IVsAPcRykze+lbhceq 1NeggaaauV6AX/YxZX0h+AgC4NPMomSvHD7/hBxKoSPRajS754OgCkkZ4/vMkcx+2zN6 //qe9W4lSxcXt/5VSie4XOTGEeEwY5GHXe+YlBPWkdyxIeC7O2TFJILc/MlxOxs6MgA5 85Fw== X-Gm-Message-State: AOJu0YywLZujKkln7fDBGaTMRcrLYFi07lH/a7T33N3LBa39FCQSDVAq TV9/xatuzNC7CYTBBlp3mAtscaK3yHxEBLSg8Y5ehA== X-Received: by 2002:a05:651c:23a:b0:2c9:d862:c66f with SMTP id z26-20020a05651c023a00b002c9d862c66fmr217019ljn.92.1701389542959; Thu, 30 Nov 2023 16:12:22 -0800 (PST) MIME-Version: 1.0 References: <20231121-dev-iio-backend-v1-0-6a3d542eba35@analog.com> <20231121-dev-iio-backend-v1-10-6a3d542eba35@analog.com> In-Reply-To: From: David Lechner Date: Thu, 30 Nov 2023 18:12:12 -0600 Message-ID: Subject: Re: [PATCH 10/12] iio: adc: ad9467: convert to 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=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,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 agentk.vger.email 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 (agentk.vger.email [0.0.0.0]); Thu, 30 Nov 2023 16:12:42 -0800 (PST) On Thu, Nov 30, 2023 at 5:30=E2=80=AFPM David Lechner wrote: > > On Tue, Nov 21, 2023 at 4:17=E2=80=AFAM Nuno Sa via B4 Relay > > + st->back =3D devm_iio_backend_get(&spi->dev, NULL); > > Based on the descriptions given of IIO frontend and backend, I was > expecting this driver to be the backend since SPI is only used to > configure the chip while the adi-axi-adc driver is the one determining > the scan data format, providing the DMA (INDIO_BUFFER_HARDWARE), etc. > > Also, from a devicetree "describe the hardware" mindset, it doesn't > seem like this chip (AD9467) should dictate a specific backend. I know > it doesn't make sense practlically for this chip to not use DMA given > the high sample rate, but why should the devicetree for this chip > require it when there is nothing intrensic about this chip itself > related to DMA? > Afterthought: Put another way, it seems like it would be much easier to say "I, the arbitrary frontend that actually handles the data from the LVDS outputs, need a backend that provides a SPI connection to an AD9467 chip and takes care of turning on power supplies" than it is to say "I, the AD9467 chip frontend, need an arbitrary backend that handles reading data from the LVDS outputs in a very specific manner that is determined by the driver, not the hardware".