Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp1257469rda; Mon, 23 Oct 2023 07:20:14 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHbIYftrzQF5iUO7KNNmUgg/RiEbbzxUd46pMsFvr3iX71q09sSjCLv2vUL3ZUsk+GLwbHP X-Received: by 2002:a17:902:facf:b0:1c9:d358:b3d9 with SMTP id ld15-20020a170902facf00b001c9d358b3d9mr14276734plb.18.1698070814637; Mon, 23 Oct 2023 07:20:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698070814; cv=none; d=google.com; s=arc-20160816; b=AR1NRJHdfVO+FOaE1yj9ZRGC8OX2TZBhAQb/CPxgxOAzvxzO+640EHsimOzFri+Lyb U51v7j0IUlmsAKvEV3ObVn2aQ2OrNhTKeOFdV2PBI3L4SZDPXu1HT/1TkWYIX0w0lTpz Z7S4oRz5nZiwRZtShu9CcATEWi1WXlCBPvFC/al7wZLCoJSRiI5q1qHoLdyW9XSdKMg5 c3oEUL3aFFzEh4ZPKFhyIUvYHYH3LwKtCsR9a8nE8tquWNNHvxQRB5X1d+3/oW+JlA8i 9ccytbPXIRZtVM9QyaglTkls6PB0KFeuz+i5Z/SJ/Nm5YBi41lZMQSQhXyOULfIRH1MI yKZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:cc:to:from:date:references:in-reply-to :message-id:mime-version:user-agent:feedback-id:dkim-signature :dkim-signature; bh=bsmBsb2C4biRFAK90R3YGndrC+6bsEOQQxqfzZ99ePQ=; fh=AWIhQ89EcIBl/htHRsGuq4N2EofUv/QUpFne0WvAf58=; b=E0VGCmC0K+vvcOTjWl2iA+eJUk2QFNkydXYST+YVzRjLLZx5hgRRY5H+0792T1clLr WWeRR9EnQMoTrZkmR/5M0UyqldTuURWPXEDfsevNd87W4nSXET/Hf+muAHYSrkjp9fYN cHd42fqAKs8zhGJETT1iMkPyIB0We1md65oSbJt1jLDRR3usaFUkLHlIpRGUFnyVxuBk akSiH4ZmONGY+yFyv0Kg8FdUYsEzVWvtNdy6Bo5RCMRfyz3nriY/WvYO251NlGxJHLqN /mVllSK3td4o57QX0fVH2WjmmttE3I3CklShmMaaaJOv5pv+ZdWExvTBEbCAoB7eKQpV H5mQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@arndb.de header.s=fm2 header.b=lYc+ZBHk; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=niRJqeL+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id p5-20020a1709026b8500b001ca0a487ab2si6074200plk.200.2023.10.23.07.20.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Oct 2023 07:20:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@arndb.de header.s=fm2 header.b=lYc+ZBHk; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=niRJqeL+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (Postfix) with ESMTP id 30BE48080D70; Mon, 23 Oct 2023 07:20:08 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229807AbjJWOT6 (ORCPT + 99 others); Mon, 23 Oct 2023 10:19:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51592 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230012AbjJWOT4 (ORCPT ); Mon, 23 Oct 2023 10:19:56 -0400 Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CC950100; Mon, 23 Oct 2023 07:19:54 -0700 (PDT) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 319375C033F; Mon, 23 Oct 2023 10:19:54 -0400 (EDT) Received: from imap51 ([10.202.2.101]) by compute5.internal (MEProxy); Mon, 23 Oct 2023 10:19:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arndb.de; h=cc :cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm2; t=1698070794; x=1698157194; bh=bs mBsb2C4biRFAK90R3YGndrC+6bsEOQQxqfzZ99ePQ=; b=lYc+ZBHk7xNLUtCtBW SW8wU5/knar6IJPqYjl2CJlJp3v6LY9kHkC/0Zfhp+3PTywtBVWdAqtC05b7Pbzr U0hz2+5uHYYsZS0NY32+N1gtTXo4aD7GNYc1rbazGdO0kyURlMQBaEirGbvxkG9d SIAW0ZhuyzLDXAtskzdjRZxeHE7ttbI9ALKzJf0d6CeVwc9wvatHsle+gWRH4fVb 55FuhknZOFv5PHK4IK8rzARimnoff+PJPTeyjyIM0mWIRxMmzFwWahsJ2ZRGVauV bOxKJuyw7zaSXKFAOCRJlzcHn9kWaL7DG1uRb2N9IQr83vl3yqUJiLntZnkFkXjF tfTg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; t=1698070794; x=1698157194; bh=bsmBsb2C4biRF AK90R3YGndrC+6bsEOQQxqfzZ99ePQ=; b=niRJqeL+BF+kNPZQvaQPd/1+q2SwC 69sqEW1ElhXcqkiS2L7UGVNTaxU+nsD5f0wrk/AX8LHVxxVBnJnQSNwuKytXPxt2 z7m3Hg++LJW/fAsDZj01KzRe4fZNimddMbymzw69rCMe5pVjfRD1VGtoqXlhUwYX M82mbZRNauf5OBlCi9+V9Bbao1ZWLMekUgh7l1pUm6uKWjtg6u2JhkNnfvOiBkE1 8YioQ8s2B9pAvNmz5GZwg5JALdw67TAToo8hKHBX58mE4e6httVe8fqF3V9uNVde xEQskAu0dFh408H21biJ8MxBRlaRvv0kmYld0GqBk3mKPnBHvJORtg9Rw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrkeeigdejfecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefofgggkfgjfhffhffvvefutgesthdtredtreertdenucfhrhhomhepfdetrhhn ugcuuegvrhhgmhgrnhhnfdcuoegrrhhnugesrghrnhgusgdruggvqeenucggtffrrghtth gvrhhnpeevhfffledtgeehfeffhfdtgedvheejtdfgkeeuvefgudffteettdekkeeufeeh udenucffohhmrghinhepkhgvrhhnvghlrdhorhhgnecuvehluhhsthgvrhfuihiivgeptd enucfrrghrrghmpehmrghilhhfrhhomheprghrnhgusegrrhhnuggsrdguvg X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id DCB18B60089; Mon, 23 Oct 2023 10:19:53 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-1048-g9229b632c5-fm-20231019.001-g9229b632 MIME-Version: 1.0 Message-Id: <15f25d73-32d5-4809-8096-32c856559d66@app.fastmail.com> In-Reply-To: References: <20231019125646.14236-1-eliza.balas@analog.com> <20231019125646.14236-3-eliza.balas@analog.com> <2023101917-cork-numeric-dab8@gregkh> <2023102030-resort-glance-57ef@gregkh> <2023102339-outcast-scone-5a63@gregkh> Date: Mon, 23 Oct 2023 16:19:32 +0200 From: "Arnd Bergmann" To: "Eliza Balas" , "Greg Kroah-Hartman" Cc: "linux-kernel@vger.kernel.org" , "devicetree@vger.kernel.org" , "Rob Herring" , "Krzysztof Kozlowski" , "Conor Dooley" , "derek.kiernan@amd.com" , "dragan.cvetic@amd.com" , "Jonathan Cameron" , "Lars-Peter Clausen" , linux-iio@vger.kernel.org Subject: Re: [PATCH v3 2/2] drivers: misc: adi-axi-tdd: Add TDD engine Content-Type: text/plain X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.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 (fry.vger.email [0.0.0.0]); Mon, 23 Oct 2023 07:20:08 -0700 (PDT) On Mon, Oct 23, 2023, at 15:30, Balas, Eliza wrote: >> -----Original Message----- >> Cvetic ; Arnd Bergmann >> Subject: Re: [PATCH v3 2/2] drivers: misc: adi-axi-tdd: Add TDD engine >> > > > Since the device is not an iio device, using an iio function would be confusing. >> > > >> > > Why isn't this an iio device? >> > >> > The device is not registered into the IIO device tree, >> > and does not rely on IIO kernel APIs. >> > Even though there are a few attributes that resemble the >> > ones from iio, and the sysfs structure is similar, >> > this is not an IIO device. >> > In the previous patch versions 1 and 2 we concluded >> > that this device fits better in the misc subsystem. >> >> Ok, can you point to that in the changelog where the IIO maintainer >> agreed that this doesn't fit into that subsystem? >> > This was one of the discussions from previous v2 : > https://lore.kernel.org/all/5b6318f16799e6e2575fe541e83e42e0afebe6cf.camel@gmail.com/ > > I will add it to the changelog the next time I submit the patches. It sounds like Jonathan wasn't quite sure either here, and I would still argue (as I did in that thread), that drivers/iio is probably a better option than drivers/misc. In particular, you mention that you actually make this device appear as an IIO device to user space using the "iio-fake" hack. I can see that IIO is not a perfect fit if this is the only device of its kind, but going that way anyway avoids a number of problems by reusing infrastructure for the IIO ABI and serialization with in-kernel users, as well as giving you the option of adding other compatible drivers later. Arnd