Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp1892410pxm; Thu, 24 Feb 2022 11:24:07 -0800 (PST) X-Google-Smtp-Source: ABdhPJyGY5OT3K4lttABMMKk3oCACaTGBKEuA/6jtviL5uuK8mb090bGOKE76vqU32B37WKdwqSA X-Received: by 2002:a17:906:40c9:b0:6cf:1fb3:aca with SMTP id a9-20020a17090640c900b006cf1fb30acamr3364659ejk.101.1645730646788; Thu, 24 Feb 2022 11:24:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645730646; cv=none; d=google.com; s=arc-20160816; b=w7n8V5rysMAdlTAksU7GTwZ8LRRhiT+z98i4+UWc3i804FDtgqUdRzPJH2mnZqt8Hf 4DbP4WablHEACvBta4Vpjv+Lx2L0zVboH6BfwfVZFTbRJe2fYIomGSXXs+/i/5IavFK2 btzgAGvq/DBz9HvqDo1yX+mmPUpJVLnM7c4+/UFZuZMAOf7NgVLbJy0zjIIKDRlVN3Il 8LLIQIKCn/5Dehmk6a6PRTQ4NnMC8g5w3nWgjiPcg1KXd+Ifg/FiKRbtTrci9C8ExJs/ cdIQd0/Zbsh+ErP+DkCJ111LL05yS96NnwlQsXK7lKDgUF9XDky+F/n9o+CIblQrk8uC K9hg== 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=fwxa8Yp0v5DeR2uTbtepX4M/KRgZZrRjbb5XENEFXGA=; b=JNHupJiJ9doGfYMJ7P15o9wCe7mbDyPrQ13xl2Cf4sElv6JkKJuXZOsGhP9XKbha05 GvwqSEIO59MB3B9zx13ch8HgaDUFFh6RJ+lE2xvDPAILk8iK5oohgeBjOZRxLpKOHfXV NbElG6ETBVQTyEvYJDO3k2iL8H8F19gOftiyv9KLaZBj7mbyTxUExuDxL2Q8surDr5Yg TxvgLpzlevrFe+i8hATvpb53o1o0Ao+SOs56YTbnvkbaXc72HB3UmMpEXdVBTq/nbk2R FW2+wtZyPfPcDesCRjp/Y7VLqGJyPhH1HgCvfU4YBVNBU3aeedo4ODO26PBb9ioEuLX3 L3CA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=WI4UE60K; 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=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b13-20020aa7df8d000000b0041286b4e7b0si343340edy.175.2022.02.24.11.23.43; Thu, 24 Feb 2022 11:24:06 -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=@intel.com header.s=Intel header.b=WI4UE60K; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232640AbiBXSQC (ORCPT + 99 others); Thu, 24 Feb 2022 13:16:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55982 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232607AbiBXSP7 (ORCPT ); Thu, 24 Feb 2022 13:15:59 -0500 Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 07EAA253151; Thu, 24 Feb 2022 10:15:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1645726529; x=1677262529; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=XijmOSBFg2r2w0bH7u5K1EPX285/C0Q7dvemmZGlDXA=; b=WI4UE60KOL4tDE9N2Co+B+hm6iO8Wn+l5cQHAyfhWJ2/fRMrxtWOe9qr XQOieByuYKl8GMwGrlX6hf+JXPHznZQzOxRTQ86zMHP2cd81tsWH2luLN KgBrSDMqsQ2vTx5MkQkF7SPSp+GLngX3TqjxFUkgi5VuRdEg03WNvgxBN VR9zMBMlkpeWy0OzhgjOLitC9JEZUDLVQ8mGUnJ+rgEguur/JnnKGVqJE AggrMpcZj8EaRSVWAJvIaHshV/sQ7N3Suhnr6X9ar23bMj98g6A8hONtm MIX1TgzNa4wCNwyENlC7waAZVEZrA5IgWUXaHIdLfrOHLSjuGYqpLbzX4 w==; X-IronPort-AV: E=McAfee;i="6200,9189,10268"; a="232934278" X-IronPort-AV: E=Sophos;i="5.90,134,1643702400"; d="scan'208";a="232934278" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Feb 2022 10:15:28 -0800 X-IronPort-AV: E=Sophos;i="5.90,134,1643702400"; d="scan'208";a="777145359" Received: from punajuuri.fi.intel.com (HELO paasikivi.fi.intel.com) ([10.237.72.43]) by fmsmga006-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Feb 2022 10:15:24 -0800 Received: from paasikivi.fi.intel.com (localhost [127.0.0.1]) by paasikivi.fi.intel.com (Postfix) with SMTP id 056B5203BA; Thu, 24 Feb 2022 20:14:52 +0200 (EET) Date: Thu, 24 Feb 2022 20:14:51 +0200 From: Sakari Ailus To: Mark Brown Cc: 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 , 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,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 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. -- Sakari Ailus