Received: by 2002:ac2:464d:0:0:0:0:0 with SMTP id s13csp3280133lfo; Mon, 23 May 2022 00:34:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyQdjjqE+qZ1USzWZe+5gqF7f4NtkxRz4CSV4LpewlG4zHg/iPrl7hDvX66UrTAYGz9C89T X-Received: by 2002:a63:551e:0:b0:3fa:288f:d87 with SMTP id j30-20020a63551e000000b003fa288f0d87mr5812596pgb.586.1653291285768; Mon, 23 May 2022 00:34:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653291285; cv=none; d=google.com; s=arc-20160816; b=KY1tJlR/p+ET+96OlPZbwnySD+iqMXUzSZgBkn1N9+EKo9U7qYygaGOLkTFojC/p/2 Pl5OoEBtnPqbjMAyLcnT1D2Lo6ZX30yG5ntDZDW46/wFBE7ATr9g9vWavspBCSaVt8B1 TxdsuvG+mEyGN7JxWlhZlMDNKxCSfpNacLz9kpvXN/jSTRCCZa4/g90mdFNNqFJ3Vzjl mJn1+WeNjSNICL4BMj9XwNF4zrYbcHZ6uZPaQpjmlarV0IpqXYskFnxM/7lAI/N1FkMK P+RgVDxhLVozkhJzKnHYz4BiOdYYKSLUwZfOBFCDGIHDBk7DEAGdb6gOFfxI4Yw8gN6m noiw== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=sgVdkj+m0vdYfC42vgmnXcgErywSFim9EldJP/IRKb8=; b=M3EeGLgEbWT4/3C/z/W1Ale/g8jVeVih5hcWzbPvEp7FHCR1cLjiU7NHH3juA3+IuK +nOQDKDYZGNDcGaITO0VFCsT/WDZN6jUr6Xy4pe3i5DrNcj/rx/1JkVHnIbkwwiMWXnP lSKivyJPbk4abmchVoZ8PlOsXbhkabib9odgug9tIMIIFOMJWSfZ1ghmJ0xEn9d4H5zQ HtmhvhA8918pv5ohGpTdlyCgf/1LiFcHjiGlaHDkdhnJAhar191TBG4X2kE9Z5QFJHL7 AqQW/4z862ikeyAOPKi0jLXi3tDybbq5aagTlrpPAUYYNq6IpGtZRFnJp6FV2+w60wYk pI8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=UbCjQtGR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id y16-20020a170902b49000b0015d52457704si9882686plr.475.2022.05.23.00.34.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 May 2022 00:34:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=UbCjQtGR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 7945F1A4084; Sun, 22 May 2022 23:44:51 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346892AbiETIQN (ORCPT + 99 others); Fri, 20 May 2022 04:16:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40810 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346875AbiETIQH (ORCPT ); Fri, 20 May 2022 04:16:07 -0400 Received: from mail-wr1-x42c.google.com (mail-wr1-x42c.google.com [IPv6:2a00:1450:4864:20::42c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 826933DA48 for ; Fri, 20 May 2022 01:16:04 -0700 (PDT) Received: by mail-wr1-x42c.google.com with SMTP id u27so9594904wru.8 for ; Fri, 20 May 2022 01:16:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=sgVdkj+m0vdYfC42vgmnXcgErywSFim9EldJP/IRKb8=; b=UbCjQtGRYjLqlisKKVYQpJgMYj/br9KZw6pGqNIRnL84QxknHPwih4CK9F5I2S/7Ki IiOelDJRDtgCgP298udFAK1aWzVaCZ7RT4ZahHcBGmee5L74RImyWtVZcWbHwwmS31Vb KRCORvITE+zT6KppLMaGOMhi7pFikUYxpIb3NGlyYZ0qLcnYIJ2GAP6R1lpgYwgMX/LB 7IHc+a+uWC+czjVbCL9a0shS9FDqRkGALziE0pfwdtD6S7qevDZOKUIRXJ9/Z+5O3bhU bak0XChjaPwOdMDWTkYPt7rKc16wH1TAgCSMNsAijtXjymRrf4RfcKq5SOzqu8iL3ZW/ z1bw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=sgVdkj+m0vdYfC42vgmnXcgErywSFim9EldJP/IRKb8=; b=nD+PaeQ5B9dBPnATJyKWAAhVQ/94DNb1Dk9BYCaNJBTJadmcuxhWtMfKJeaE9WI2+1 9aBA/mkq5zTFPRGQKGF3N8zDpAyUC6CJapz5VDBQNrVBnD2+1Qz6Qx4m+S1B6zJs6Og/ oiRFTU7wJUBecs1Uvc9bOUxd82B+xeHdBJYdm6YATiH5b1d1wYT/5Fax5SXAP8PVdc6s 0mp9voNW2Xh8fN+pmLOManQeKRWCVHYb2PEBt1m4HIv6BMCTWbX6ThjZfZR9/qXOCrxT t9m7CJpRD3nwIeXOrAXIVgNatGkI9vsvjowkcjT7FTs46ZDaTFdUFJY3g90gXdO8uvT1 +VTA== X-Gm-Message-State: AOAM532260C1X77jNizJc1MzjqHAgIGV9OYCpMkcN0PB5e8YMzeB3qfu 6e/6ErqPzUmR3EMPUMU10c3xNeyOZVXE2A== X-Received: by 2002:a5d:598b:0:b0:20e:6288:8c6a with SMTP id n11-20020a5d598b000000b0020e62888c6amr7114554wri.531.1653034563061; Fri, 20 May 2022 01:16:03 -0700 (PDT) Received: from Red ([2a01:cb1d:3d5:a100:264b:feff:fe03:2806]) by smtp.googlemail.com with ESMTPSA id l6-20020a05600c088600b00397335cf750sm1283305wmp.47.2022.05.20.01.16.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 May 2022 01:16:02 -0700 (PDT) Date: Fri, 20 May 2022 10:15:55 +0200 From: LABBE Corentin To: Krzysztof Kozlowski Cc: Mark Brown , Andrew Lunn , calvin.johnson@oss.nxp.com, davem@davemloft.net, edumazet@google.com, hkallweit1@gmail.com, jernej.skrabec@gmail.com, krzysztof.kozlowski+dt@linaro.org, kuba@kernel.org, lgirdwood@gmail.com, linux@armlinux.org.uk, pabeni@redhat.com, robh+dt@kernel.org, samuel@sholland.org, wens@csie.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-sunxi@lists.linux.dev, netdev@vger.kernel.org Subject: Re: [PATCH v2 4/5] dt-bindings: net: Add documentation for optional regulators Message-ID: References: <20220518200939.689308-1-clabbe@baylibre.com> <20220518200939.689308-5-clabbe@baylibre.com> <95f3f0a4-17e6-ec5f-6f2f-23a5a4993a44@linaro.org> <0518eef1-75a6-fbfe-96d8-bb1fc4e5178a@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <0518eef1-75a6-fbfe-96d8-bb1fc4e5178a@linaro.org> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Fri, May 20, 2022 at 09:57:26AM +0200, Krzysztof Kozlowski a ?crit : > On 19/05/2022 17:49, Mark Brown wrote: > > On Thu, May 19, 2022 at 01:58:18PM +0200, Andrew Lunn wrote: > >> On Thu, May 19, 2022 at 01:33:21PM +0200, Krzysztof Kozlowski wrote: > >>> On 19/05/2022 13:31, Mark Brown wrote: > >>>> On Thu, May 19, 2022 at 11:55:28AM +0200, Krzysztof Kozlowski wrote: > >>>>> On 18/05/2022 22:09, Corentin Labbe wrote: > > > >>>>>> + regulators: > >>>>>> + description: > >>>>>> + List of phandle to regulators needed for the PHY > > > >>>>> I don't understand that... is your PHY defining the regulators or using > >>>>> supplies? If it needs a regulator (as a supply), you need to document > >>>>> supplies, using existing bindings. > > > >>>> They're trying to have a generic driver which works with any random PHY > >>>> so the binding has no idea what supplies it might need. > > > >>> OK, that makes sense, but then question is why not using existing > >>> naming, so "supplies" and "supply-names"? > > > >> I'm not saying it is not possible, but in general, the names are not > >> interesting. All that is needed is that they are all on, or > >> potentially all off to save power on shutdown. We don't care how many > >> there are, or what order they are enabled. > > > > I think Krzysztof is referring to the name of the property rather than > > the contents of the -names property there. > > Yes, exactly. Existing pattern for single regulator supply is > "xxx-supply", so why this uses a bit different pattern instead of > something more consistent ("supplies" and "supply-names")? > I agree that supplies and supply-names are better. But in another answer Rob is against it, so if I understand well, we are stuck to use individual xxx-supply. I will try to create a new regulator_get_bulk_all() which scan all properties matching xxx-supply