Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp701138pxb; Tue, 5 Apr 2022 19:23:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwqwwtfLxgR1qyxSEdHpvqP82PrEn50E9Jxt2Zs45ibG54Q5e2hhZFeMf5VZ71WSYVGCsfD X-Received: by 2002:a17:902:c215:b0:14f:f1c2:9fe3 with SMTP id 21-20020a170902c21500b0014ff1c29fe3mr6425079pll.145.1649211797291; Tue, 05 Apr 2022 19:23:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649211797; cv=none; d=google.com; s=arc-20160816; b=XXzm38EhV014dpZVT6mES9ZQpH+7AM5YvNrT2RY/LoK509IymJ0MzI8EMvrScUHmDz CEjHwWVyCdYfwoE6kLD230nSvu/n6uEC9J5Vi577kVJeSYgTX6U6QIqY++uhJi+H8x/U qt0xkUh3J+We+mwZPiPAPVfjhdHlKA+2DS3c4peCpz5JU/b9jdSXjB5PzyrrRFYGvL7H kDxVFzthtQqXa5COukiR4iiVgLAEvNWPhBslHIg8eL/MZeYz4dLpqCh2jTtGHnXyANZi E5vM9q2x3df/B7yCVyU3PmbnIW2V7jTsdvKbGyRBPtkKzBte/La8tgnyFp92WIcTu7Ka hObg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:dkim-signature; bh=3aYdJv1c3x76qPIILK7iOMtk/QOsfJfFzAQtz6UrxU0=; b=mijQsg6XGsE/bJ7ZAIKgVkCnBDE89lCrp+AxPqElmdvcW4BB+ZFpjWJbGCFYPLibFk GzLG4isC7DWTRLgyKA8N8eg+bl5JsuE+d3Rv9UG3jkpGUlGy7qSFvG3CCZDgh+/6l4r7 kEjfCVFRMNr62ZBUQoeTQhZ0cvb/PsnH9rXTepOvj3rCiwYZrQ5e2B7nXnCLt0ahs6KK 7k/4v0CTv1E4GZdmqhWaM4Gwc4cBIj01Fu2TnQiYX7d6+ORc+bbYEnVMsJIytjCvySce iPbzVLGwMWZVyDXhE6bXj1svQHR0rHPgE35/171TrLNtj0/kzumVFykwSLG3FVzd6lV7 9jtQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=o5zJTgpx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g7-20020a056a001a0700b004fa3a8dff5bsi15058858pfv.18.2022.04.05.19.23.02; Tue, 05 Apr 2022 19:23:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=o5zJTgpx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230353AbiDEH2F (ORCPT + 99 others); Tue, 5 Apr 2022 03:28:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57494 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229450AbiDEH2E (ORCPT ); Tue, 5 Apr 2022 03:28:04 -0400 Received: from relay8-d.mail.gandi.net (relay8-d.mail.gandi.net [217.70.183.201]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7DB0726AC0; Tue, 5 Apr 2022 00:26:04 -0700 (PDT) Received: (Authenticated sender: clement.leger@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id 5D0781BF205; Tue, 5 Apr 2022 07:26:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1649143563; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=3aYdJv1c3x76qPIILK7iOMtk/QOsfJfFzAQtz6UrxU0=; b=o5zJTgpxUzuajIIHNLVIqd6D7PNI0cy1ZbmZHCpqUbDDUd/4HAaRA+CL7ocwWZnYTCY3mk b+u90n1nEzLFtu0XgK6KGlU6Sw0X53CVSIJalp9wXnql73H8GvSiBUdiKd//qydDndQmzV UeZ/36HfWY7ezAqGsKNaMJTU3SHdmP7ta4BkhrSQ9oHjjfNIKbd6VJgr95khwIC/QlCBbm gP/Ab8rTn0nnL2JgIc0BFJxB6o52G3+f7Ueq/LtUawEQtbUUuY8wQVEs/4/lFIBZACmIWF oJNNhlQTjgS9peeGM+0RexBOUrbiKxKYHwr8zeg0hQ3RIQEgsZwYgPj5aMbVDw== Date: Tue, 5 Apr 2022 09:24:34 +0200 From: =?UTF-8?B?Q2zDqW1lbnQgTMOpZ2Vy?= To: Rob Herring Cc: Philipp Zabel , Frank Rowand , Lars Povlsen , Steen Hegelund , UNGLinuxDriver@microchip.com, Thomas Petazzoni , Alexandre Belloni , Allan Nielsen , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: Re: [PATCH v2 0/3] add fwnode support to reset subsystem Message-ID: <20220405092434.6e424ed4@fixe.home> In-Reply-To: References: <20220324141237.297207-1-clement.leger@bootlin.com> Organization: Bootlin X-Mailer: Claws Mail 4.0.0 (GTK+ 3.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 Le Mon, 4 Apr 2022 12:41:37 -0500, Rob Herring a =C3=A9crit : > On Thu, Mar 24, 2022 at 03:12:34PM +0100, Cl=C3=A9ment L=C3=A9ger wrote: > > This series is part of a larger series which aims at adding fwnode > > support in multiple subsystems [1]. The goal of this series was to > > add support for software node in various subsystem but in a first > > time only the fwnode support had gained consensus and will be added > > to multiple subsystems. =20 >=20 > The goal is describing a solution. What is the problem? >=20 > What's the scenario where you have a reset provider not described by=20 > firmware providing resets to devices (consumers) also not described by=20 > firmware. Hi Rob, there was a link attached to this series since there was a previous one that was sent which described the problem. Here is a link to the same thread but to a specific message which clarifies the problem and the solutions that were mentionned by other maintainers (ACPI overlays, DT overlays, software nodes and so on): https://lore.kernel.org/netdev/20220224154040.2633a4e4@fixe.home/ >=20 > > For the moment ACPI node support is excluded from the fwnode support > > to avoid creating an unspecified ACPI reset device description. With > > these modifications, both driver that uses the fwnode_ API or the of_ > > API to register the reset controller will be usable by consumer > > whatever the type of node that is used. =20 >=20 > Good, because controlling reset lines directly isn't how the ACPI device= =20 > model works AFAIK. This was based on Mark Brown feedback. >=20 > > One question raised by this series is that I'm not sure if all reset > > drivers should be modified to use the new fwnode support or keep the > > existing device-tree support. Maintainer advice on that particular > > question will be welcome. =20 >=20 > That would be pointless churn IMO. Why do we need to convert drivers=20 > which the vast majority will never use anything but DT? To have a single interface to maintain and to remove duplicated fields (of_node, fwnode, fwnode_xlate, of_xlate) from reset controller struct. --=20 Cl=C3=A9ment L=C3=A9ger, Embedded Linux and Kernel engineer at Bootlin https://bootlin.com