Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp1966079pxm; Thu, 24 Feb 2022 13:08:46 -0800 (PST) X-Google-Smtp-Source: ABdhPJwOddTEFPqgLc54vfYOa5GDKlCMaZ335YF9r8qPoVbEiJ3B/EV7soxq3v7+jtsYWOMg5yxf X-Received: by 2002:a63:e60:0:b0:374:6620:f372 with SMTP id 32-20020a630e60000000b003746620f372mr3560350pgo.557.1645736926059; Thu, 24 Feb 2022 13:08:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645736926; cv=none; d=google.com; s=arc-20160816; b=mpt31kgep6Fc2EbjLsy0i2JB85OZayTwfF7UN9T8N+T/Nj7dr7XtnEPwPab2wt0+dI 6scRvlpbplgAYZ42DSaQisOWfMgCMhH4+ovFjTFWFwNmUspwXj3c1JyGAp0CxNCzFqtQ rj+RSOLV/s4hpzg4D0vo4v+zEgofWba7RrtXoJkyGVvPICLKFR6QIkjEUgNynMGYndQe 0bP1gS2wcvYVE5v7oYP11+i5D4KagMF4OweP/DZOsHkYRrdyBfn9Ns6EiAG7B2t8o/Q/ PZZzPv3kXxKhUZb4IT8l7Dqv9NwcRnIGj4hLvTC/UFfLGP+Xhhp3bMUm3TVtP8KNc93h 49TA== 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=ekM1W1uzOOxfBmlQ7EQovp83hvSwhF7Ii2bJO1V+DjA=; b=WItg3VTGx1i7FkBigOFW34+9UdH4EW8yP6PMSR08JCeQEW/F0EDFm7QHSLRYuotJwl G8mOSzREyZwBWoitm5AmqMrUefb5T4mwmyct5dzqS6RUYYAY4wELj/jt0NBmC5z9/tcC xdmekuUWUZ4TzGvirLC5rSd0RPByRPmgWr67+VlC+R50onWfLLYvpw0VwPt+37785Fwj R2vKqFGMApYwGwjPP9yYt2S8K+jOoTsHVDMAkyyMYdb8+RatltNO2Vs6ej11Q7pc6KUL FbIfKUOrkXqxkvXgG487ifhuWzE5Dq4qLqzLaPi0gtFT1MJ89uK1sKKvdA9WmSfc0GPC j0ag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=Sg9IJ5Z1; 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 k6-20020a170902ce0600b0014f63facf03si258425plg.81.2022.02.24.13.08.29; Thu, 24 Feb 2022 13:08:46 -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=@bootlin.com header.s=gm1 header.b=Sg9IJ5Z1; 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 S232917AbiBXSkb (ORCPT + 99 others); Thu, 24 Feb 2022 13:40:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37008 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229778AbiBXSkb (ORCPT ); Thu, 24 Feb 2022 13:40:31 -0500 X-Greylist: delayed 166129 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Thu, 24 Feb 2022 10:39:59 PST Received: from relay8-d.mail.gandi.net (relay8-d.mail.gandi.net [217.70.183.201]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9E0CC25D6FC; Thu, 24 Feb 2022 10:39:59 -0800 (PST) Received: (Authenticated sender: alexandre.belloni@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id 91D231BF203; Thu, 24 Feb 2022 18:39:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1645727998; 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: in-reply-to:in-reply-to:references:references; bh=ekM1W1uzOOxfBmlQ7EQovp83hvSwhF7Ii2bJO1V+DjA=; b=Sg9IJ5Z1f7t8z9TDjBOQ+4Q4gutrAaWI9EO8jWgu1v/s90TYOBuytik28VhCe2s5DSIMU2 X3Tg8bDOWONL/MiRpodw2q83J69VOdIhpor0Fdol52NDbYplXMhjonfxZlYtEPgUT7JoEX srwv1EBOIMIXT5D7GDhbZFz1khD5DectJmTWjdRiyZlbMEIEos9Xbp/uMs/6Sg8zik1jAo 7Ge/yJY9L4BQ1JPHUMX4jDNeXaoIkPt1Xzkl7xoGWDXaUEg8qmFviUho5eh7yMwdZUiodP G+0Ljc1J8oasASN0u+vkVVOroUM7DTQveVQvzDoB56f6HSxBMgoP/0P9qupS3g== Date: Thu, 24 Feb 2022 19:39:52 +0100 From: Alexandre Belloni To: Sakari Ailus Cc: Mark Brown , Hans de Goede , =?iso-8859-1?Q?Cl=E9ment_L=E9ger?= , Andy Shevchenko , Daniel Scally , Heikki Krogerus , 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 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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_H3,RCVD_IN_MSPIKE_WL,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 On 24/02/2022 20:14:51+0200, Sakari Ailus wrote: > Hi Mark, > > On Thu, Feb 24, 2022 at 03:33:12PM +0000, Mark Brown wrote: > > On Thu, Feb 24, 2022 at 03:58:04PM +0100, Hans de Goede wrote: > > > > > As Mark already mentioned the regulator subsystem has shown to > > > be a bit problematic here, but you don't seem to need that? > > > > I believe clocks are also potentially problematic for similar reasons > > (ACPI wants to handle those as part of the device level power management > > and/or should have native abstractions for them, and I think we also > > have board file provisions that work well for them and are less error > > prone than translating into an abstract data structure). > > Per ACPI spec, what corresponds to clocks and regulators in DT is handled > through power resources. This is generally how things work in ACPI based > systems but there are cases out there where regulators and/or clocks are > exposed to software directly. This concerns e.g. camera sensors and lens > voice coils on some systems while rest of the devices in the system are > powered on and off the usual ACPI way. > > So controlling regulators or clocks directly on an ACPI based system > wouldn't be exactly something new. All you need to do in that case is to > ensure that there's exactly one way regulators and clocks are controlled > for a given device. For software nodes this is a non-issue. > > This does have the limitation that a clock or a regulator is either > controlled through power resources or relevant drivers, but that tends to > be the case in practice. But I presume it wouldn't be different with board > files. > In this use case, we don't need anything that is actually described in ACPI as all the clocks we need to control are on the device itself so I don't think this is relevant here. -- Alexandre Belloni, co-owner and COO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com