Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3864315pxf; Mon, 29 Mar 2021 13:47:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzRPVQUHsXY1uZVRzgoQ3IfBJBjS2osnbZJVXcnRnor+O25031pWbJRkJShDRlZBPO/gvcM X-Received: by 2002:a17:906:c099:: with SMTP id f25mr30840267ejz.141.1617050867951; Mon, 29 Mar 2021 13:47:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617050867; cv=none; d=google.com; s=arc-20160816; b=QCiihLXYnQ+KvNJjk/aT0bfsl6sqklRpgpyfLAarZWaf6u+wx7tFJDmzNqkxXA36NP CbezAjIJlIVLkaKsfDM7NonV2uqwBpCA//IXNNAX7d4sooYxEVpz9eBPK96ehZBrcL4j wm9GK19HVTJktUiltcoR+bUsMMBzvfyf5x/IKYc7G7KdGd1UKDfRAvJqdxmA19foUvNt 9mQRLzUW0jX2uDSdb5W7ZdO3onUjrsnGHD+T3xZxUJTcuBDUx+RRzH+ez3ciq+Tss5r3 GlLbbp/9ul62jKmLw3qFP/Fs3Q4+gj4CvCg+6rIq8piV6ReZkrIZhGs1SnexXzesdbSo WqRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=CjN8L1htVBYlWcQiOR/MlQj7gNrg40dHexUZZyRzoL4=; b=OnhG75ZMSvknwfCPlNdOSdOz785ZbTA0PgGIk20nDnJaW8d/sxx56ZHhN1ybCJEgpX iu2bGWAt73HKsmtRz5Pw4PCZP0ug+egzQCfHSUA5ezTijkiLFiLAxbT3GLZ3joCIZb/a UjBfhJ5AW0IVt2emFB0F49iIc4fm7VYFTzjwfSXnwCkdzg7VtDdwUtMoG62V/M5oN2lz j4un6rVO++KqUJrhwsFZzAiLVXiw2NB+sXfgjTRT/+CfxN9iSyKIZlPl6/PxK46SFpyV FJ6XVMyRGDgiPNtqpuRNPyKSgtW2BSLpHo8lvxCvWMTmKdyf8LJZ8sRwKAZgcpQdBu9G DsUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ilUFPx4h; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z8si1206437edd.550.2021.03.29.13.47.25; Mon, 29 Mar 2021 13:47:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ilUFPx4h; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S230202AbhC2Uq2 (ORCPT + 99 others); Mon, 29 Mar 2021 16:46:28 -0400 Received: from mail.kernel.org ([198.145.29.99]:49404 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231134AbhC2Upy (ORCPT ); Mon, 29 Mar 2021 16:45:54 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 00E9861924; Mon, 29 Mar 2021 20:45:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1617050754; bh=Tn6txlmT/d5Y6cdWpSK86evJAyAI5ibaFDr8ZhPHJ7I=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ilUFPx4hc92t2Aj4EYfhXwfBLx9FIgfYhx08XN4s09fLHol3ENfrlglaL1lCfsKaE QBBft64uV6XYkBYaIVasY9QFVUV0Ysk2k/5cHBw+UuGX3E8iOTAl6TOASLulPINCNu NegRpZT1iGQaUWL6fDINp2rePSxHQeySAt6qyuOufxvqzuqTNYd64lPcqcFIKTvAhs fi+JyNlIHBXJpL+ocTnGeKCtU/4NqjHv2OrL3JhRyBLMi2GShp23yJ/5C2fo+rOcLg QkEV5uVt+e1NL3alss/vkRHLGWAmLOWZ5BwgiZ4J931YIcStCVo55Etf9VKzFkBDO0 NdTMOLu6/6l8A== Date: Mon, 29 Mar 2021 21:45:43 +0100 From: Mark Brown To: Jim Quinlan Cc: linux-pci , Nicolas Saenz Julienne , Rob Herring , bcm-kernel-feedback-list , Jim Quinlan , Lorenzo Pieralisi , Bjorn Helgaas , Florian Fainelli , "moderated list:BROADCOM BCM2711/BCM2835 ARM ARCHITECTURE" , "moderated list:BROADCOM BCM2711/BCM2835 ARM ARCHITECTURE" , open list Subject: Re: [PATCH v3 2/6] PCI: brcmstb: Add control of EP voltage regulators Message-ID: <20210329204543.GJ5166@sirena.org.uk> References: <20210326191906.43567-1-jim2101024@gmail.com> <20210326191906.43567-3-jim2101024@gmail.com> <20210329162539.GG5166@sirena.org.uk> <20210329171613.GI5166@sirena.org.uk> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="EVh9lyqKgK19OcEf" Content-Disposition: inline In-Reply-To: X-Cookie: Never give an inch! User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --EVh9lyqKgK19OcEf Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, Mar 29, 2021 at 03:48:46PM -0400, Jim Quinlan wrote: > I'm not concerned about a namespace collision and I don't think you > should be concerned either. First, this driver is for Broadcom STB > PCIe chips and boards, and we also deliver the DT to the customers. > We typically do not have any other regulators in the DT besides the > ones I am proposing. For example, the 7216 SOC DT has 0 other You may not describe these regulators in the DT but you must have other regulators in your system, most devices need power to operate. In any case "this works for me with my DT on my system and nobody will ever change our reference design" isn't really a great approach, frankly it's not a claim I entirely believe and even if it turns out to be true for your systems if we establish this as being how regulators work for soldered down PCI devices everyone else is going to want to do the same thing, most likely making the same claims for how much control they have over the systems things will run on. > regulators -- no namespace collision possible. Our DT-generating > scripts also flag namespace issues. I admit that this driver is also > used by RPi chips, but I can easily exclude this feature from the RPI > if Nicolas has any objection. That's certainly an issue, obviously the RPI is the sort of system where I'd imagine this would be particularly useful. > Further, if you want, I can restrict the search to the two regulators > I am proposing to add to pci-bus.yaml: "vpcie12v-supply" and > "vpcie3v3-supply". No, that doesn't help - what happens if someone uses separate regulators for different PCI devices? The reason the supplies are device namespaced is that each device can look up it's own supplies and label them how it wants without reference to anything else on the board. Alternatively what happens if some device has another supply it needs to power on (eg, something that wants a clean LDO output for analogue use)? > Is the above enough to alleviate your concerns about global namespace collision? Not really. TBH it looks like this driver is keeping the regulators enabled all the time except for suspend and resume anyway, if that's all that's going on I'd have thought that you wouldn't need any explicit management in the driver anyway? Just mark the regualtors as always on and set up an appropriate suspend mode configuration and everything should work without the drivers doing anything. Unless your PMIC isn't able to provide separate suspend mode configuration for the regulators? --EVh9lyqKgK19OcEf Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmBiPHYACgkQJNaLcl1U h9DcTgf+OZsWq4Kiw9u8jT0Zh0uDMR6gGhzcyfOahqmUWp9hC1kN/GHXDI3w4TeJ hP0LpX8fmakwqDIpzcznWQlCXP/ugmDG4NUXvYUdZuXA2eVLtjLJBBDOLR1OLp/b qVagVEC1Mj56FjMqlM2a76+DEj9q3l0MbYPlEldMKuxv3PeAK2QswG2jfJkITImg Ab9UhzhJb7ocDfTcgxOEyYhzhFWppAJrJZ+ZprHqDktAJAz9g6SP/kzAWNM+/X33 iXmxoro4y4Ri2cRoZWLZRlFaQqSraj0ayRuTMebWd0FCUlG6eaiFGUYNc52+jHdy yaHM7wnjraDdfm4WS1wVzjHh+I0YDA== =rc28 -----END PGP SIGNATURE----- --EVh9lyqKgK19OcEf--