Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp2088988pxm; Thu, 24 Feb 2022 16:11:43 -0800 (PST) X-Google-Smtp-Source: ABdhPJzdcYxxCavLdjJAGT6oS8nAm21CCOAkK8583fJPmOSxX632rbPlfH6KES0CBk7ww+UifHeI X-Received: by 2002:a63:5055:0:b0:372:f0e7:c034 with SMTP id q21-20020a635055000000b00372f0e7c034mr4078590pgl.4.1645747902721; Thu, 24 Feb 2022 16:11:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645747902; cv=none; d=google.com; s=arc-20160816; b=RpkslcOndf8nyGfSUot+gzjQRWebcrFr8rBxsH6WJ03JlENNYyvgM3zKdFOi2yTy9U m0ZiJf+ibtUg4lKjkkIlsTrCUDHnrlHkJXRHUKmO7CgwkyWxRZhJ0DWXn9ZxNxkxU5tZ 57M0ZucsOLw2a7yS34vLKGbMLeahDuime+OK4gSydH+cPoiW93XRVh3M7gjoTnXemQAs 3fQrf49C/kpMyszdJgdV2DfXpeKjHypmOhl/d4/brY/4b/HAOeIng5GHVGpWKg9PU8aX 7poIxZwqxRABf8xHbWox7wOtwDWa50/bi8OzlqZDHf+9B3sB2da9gj5ZGOQau5DoXw3d ZBog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=3c7oZAfGA3IfvsYasyQVDNOl29snwtyVFs/wY8XjjTs=; b=Fkhl+KLWbS8mlX+aSuFG32BwVkx7Ck5YfRtyskDaTql9ZR7mQYs0+XXY3utuz0SFji YdShryOHn8au+lRYETqlDu/fpj+kxBFz5aHzyaESkHXPjchUXiUOy/1ByB+9Amps5ii+ 8m+nPWSK6mrs2xk9i5TVqc5BHbpEWMtU2PBtW9fi8ZrjxHXkx65m1ssjASDQT2HYdYfM NXrk4VWhpDE6stmHv3rl3ZeUAiRMTJAGfD1TzcIGR6KtSRZEzHBE9utteBKTN75XGmDP BJJdvlCIEK1CMI7mNEPYllFjkWWZY179NO2A/hxSVOj3+6D8OcfDJrDO/QiELwtKbUHB AAlA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=H0iXRVEe; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l184-20020a6388c1000000b003661623dc0bsi490841pgd.867.2022.02.24.16.11.26; Thu, 24 Feb 2022 16:11:42 -0800 (PST) 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=@kernel.org header.s=k20201202 header.b=H0iXRVEe; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231555AbiBXR0u (ORCPT + 99 others); Thu, 24 Feb 2022 12:26:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40044 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230294AbiBXR0m (ORCPT ); Thu, 24 Feb 2022 12:26:42 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8376A278C92; Thu, 24 Feb 2022 09:26:11 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id A4F4E61BD6; Thu, 24 Feb 2022 17:26:10 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EB706C340E9; Thu, 24 Feb 2022 17:26:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1645723570; bh=wVV7zEE7Be5mHaysjzLTRuSJpGFyALfKlNpGdgCOzgU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=H0iXRVEe+RB7/jDaHg1TRBTFCzdWZ9jX4oCBT6hKMteYlX/sdTL8EZn2SUckJjEYi DHM2i26aUXzOiIsofo12RXtKrZaphHGaAt5cIbtarjRaUjTsZYTvNycBhTNTxQEpmS qEK4KPI9pLEw8Y2pwoID73y97kbS6aShl6V66a7OYCdyeTJ94Q1yuL5Eeoek3oQ8H9 n0UYaqTtMF4rpUpF2MlqhhGS7Z2QllPbdnSoJQa5PHn1mx1ccbgTaoUxzIMbrFYF+R FiPLwKza6aLrpz+Lhq753Esb/kIgC6wWALWTIYl7K5W8ycPnOnm7S/mPjFtjuP8Kv2 3uk04yePq40LA== Date: Thu, 24 Feb 2022 17:26:02 +0000 From: Mark Brown To: =?iso-8859-1?Q?Cl=E9ment_L=E9ger?= Cc: Hans de Goede , Andy Shevchenko , Daniel Scally , Heikki Krogerus , Sakari Ailus , Greg Kroah-Hartman , "Rafael J . Wysocki" , Wolfram Sang , Peter Rosin , Russell King , Andrew Lunn , Heiner Kallweit , "David S . Miller" , Jakub Kicinski , linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, linux-i2c@vger.kernel.org, netdev@vger.kernel.org, Thomas Petazzoni , Alexandre Belloni Subject: Re: [RFC 00/10] add support for fwnode in i2c mux system and sfp Message-ID: References: <20220221162652.103834-1-clement.leger@bootlin.com> <20220224154040.2633a4e4@fixe.home> <2d3278ef-0126-7b93-319b-543b17bccdc2@redhat.com> <20220224174205.43814f3f@fixe.home> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="yfmG7fklHcmXRGqd" Content-Disposition: inline In-Reply-To: <20220224174205.43814f3f@fixe.home> X-Cookie: I smell a wumpus. X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 --yfmG7fklHcmXRGqd Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Feb 24, 2022 at 05:42:05PM +0100, Cl=E9ment L=E9ger wrote: > Hans de Goede a =E9crit : > > As Mark already mentioned the regulator subsystem has shown to > > be a bit problematic here, but you don't seem to need that? > Indeed, I don't need this subsystem. However, I'm still not clear why > this subsystem in particular is problematic. Just so that I can > recognize the other subsystems with the same pattern, could you explain > me why it is problematic ?=20 ACPI has a strong concept of how power supply (and general critical resources) for devices should be described by firmware which is very different to that which DT as it is used in Linux has, confusing that model would make it much harder for generic OSs to work with generic ACPI systems, and makes it much easier to create unfortunate interactions between bits of software expecting ACPI models and bits of software expecting DT models for dealing with a device. Potentially we could even run into issues with new versions of Linux if there's timing or other changes. If Linux starts parsing the core DT bindings for regulators on ACPI systems then that makes it more likely that system integrators who are primarily interested in Linux will produce firmwares that run into these issues, perhaps unintentionally through a "this just happens to work" process. As a result of this we very much do not want to have the regulator code parsing DT bindings using the fwnode APIs since that makes it much easier for us to end up with a situation where we are interpreting _DSD versions of regulator bindings and ending up with people making systems that rely on that. Instead the regulator API is intentional about which platform description interfaces it is using. We could potentially have something that is specific to swnode and won't work with general fwnode but it's hard to see any advantages for this over the board file based mechanism we have already, swnode offers less error detection (typoing field names is harder to spot) and the data marshalling takes more code. fwnode is great for things like properties for leaf devices since those are basically a free for all on ACPI systems, it allows us to quickly and simply apply the work done defining bindings for DT to ACPI systems in a way that's compatible with how APCI wants to work. It's also good for cross device bindings that are considered out of scope for ACPI, though a bit of caution is needed determining when that's the case. --yfmG7fklHcmXRGqd Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmIXv6kACgkQJNaLcl1U h9C1Agf+Kme6hR86cN0B7vpqfch9wuRn7xKc0xr5luehmMY5hz+uq+d496xj40YU 4q3VzYTeb0eeXeRZCnnvP/W1fwZ8+rMFgOc9LcCBJzPzx14u8y1HWciC0n/Hp/Dx K6u796agx8LCfGGd1ednsIJOAI9vvJSugHPj08P3EQJj1W5unL02Ql7M3FrM2a2y r4zsRWhgInLqquSLH72KGlVTYFzDTgQ/VUU8yYsoVD8PCt2lAn8/fvd42UrCUCRU iLlQxFo7/h3W0VgCUc7ptkqqfg3k4dYwZDngrMSQ5YL83a0YbmFFqEeSDCFXnrYi bAy6tbgvRlKDm7VNDCMVVK9k/8bhAg== =KvM8 -----END PGP SIGNATURE----- --yfmG7fklHcmXRGqd--