Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp498638pxu; Thu, 26 Nov 2020 04:17:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJysBGQ6Hv77MjY0iNlNQBtsPW0Mxo01W/fXwU1mjL3ON8J23ajjQIaa9D7YDUa+lWjEJ00b X-Received: by 2002:a17:906:d101:: with SMTP id b1mr1086877ejz.80.1606393049180; Thu, 26 Nov 2020 04:17:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606393049; cv=none; d=google.com; s=arc-20160816; b=ot3mxvi2HO4VYPuDlSt2GFyiBrP+49pqy1KNMn1VqP/KeBgKNq28iXOSlJ3zNLg2hN udUOlavca2dHIsiybug7vandcjfQ3ycjhBlZkC0AxDGg15/uyusqIqL/bq2u+WLR7i/L 8YeqUXsYbSm/SPbK+J5FCt54UFExwrAiK+hQzSMZKyTxoYjrni84Mr1A7rBX1KesBgOV zlOuMvPpxpzhVBKXPTDQJYLYTiJqwiQndgux+DaBXHQLWknz/Rz0VXDfszRMyVC5EZQM XU/0jXhNnYwpmediE2M/d+VOlA+hprxXBAS4wOIMRpng05eMVlEU8VMMATZH6K+lf6Or cO/A== 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=pLv+XeT3/9SFsqipgvLYobiYj4qpS0200z60U2qsEU4=; b=vLKU1YcGSxgfRIHHAcBK+edusJ/1dGLefsoXZXBfNJeUNyDKuXFlk7pn0s2o6y5FAU C4JEdaJ1EgYe0WtcEWb16hYm0ahxuQXZpwrJg23/f9JV6WD/+cVPWVwvr8I6IYQDKK7L /KybIGmk/H7LNu1xMFFUEA0pFWu3w0szeRZHLk/I3EVwDi4uLLxZGiTpf0RXog+zYSmr +S89bJCSsa8KlkdKIXLN/9Pas80lNeGtXhsXKg/C0qco6kAZv8oqWkurZMTM5nkffP2Z SVjRruih0Rm7816+/VS0sVrCUxYusT4KHGslrqCDjMsDsOtDlBgsXMCLfPL/Q4EPx5BS BOcg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=pQty6a3t; 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 h24si3686293ejt.583.2020.11.26.04.17.06; Thu, 26 Nov 2020 04:17:29 -0800 (PST) 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=default header.b=pQty6a3t; 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 S1733248AbgKZLti (ORCPT + 99 others); Thu, 26 Nov 2020 06:49:38 -0500 Received: from mail.kernel.org ([198.145.29.99]:49844 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730735AbgKZLti (ORCPT ); Thu, 26 Nov 2020 06:49:38 -0500 Received: from localhost (cpc102334-sgyl38-2-0-cust884.18-2.cable.virginm.net [92.233.91.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 115FB20678; Thu, 26 Nov 2020 11:49:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1606391377; bh=9e4yaA6CcohD3sgKshLtFCqZxBH1iZur10IvEDoTtrw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=pQty6a3tWyYqJjQviHpFGeRLxcjHF+P3k3KQ3qQlFgdR4tYRM8pK0rIU2CAvfZ/1K TjDnABJYCL2kXRaGxoZqnUxfEwluBH8Y+HQPPEPAyWr+oHFeRNeb9HUV59zGkoR2ju 81uKAzFMy08X5lLFzz5Uo1vuwtvm9Isrj0S2tdNU= Date: Thu, 26 Nov 2020 11:49:12 +0000 From: Mark Brown To: Jim Quinlan Cc: linux-pci@vger.kernel.org, Nicolas Saenz Julienne , bcm-kernel-feedback-list@broadcom.com, Lorenzo Pieralisi , Rob Herring , Bjorn Helgaas , Florian Fainelli , Liam Girdwood , "moderated list:BROADCOM BCM2711/BCM2835 ARM ARCHITECTURE" , "moderated list:BROADCOM BCM2711/BCM2835 ARM ARCHITECTURE" , open list Subject: Re: [PATCH v1 2/6] PCI: brcmstb: Add control of EP voltage regulator(s) Message-ID: <20201126114912.GA8506@sirena.org.uk> References: <20201125192424.14440-1-james.quinlan@broadcom.com> <20201125192424.14440-3-james.quinlan@broadcom.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="y0ulUmNC+osPPQO6" Content-Disposition: inline In-Reply-To: <20201125192424.14440-3-james.quinlan@broadcom.com> X-Cookie: Serving suggestion. User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --y0ulUmNC+osPPQO6 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, Nov 25, 2020 at 02:24:19PM -0500, Jim Quinlan wrote: > + for (i = 0; i < PCIE_REGULATORS_MAX; i++) { > + ep_reg = devm_regulator_get_optional(dev, ep_regulator_names[i]); > + if (IS_ERR(ep_reg)) { Does PCI allow supplies to be physically absent? If not then the driver shouldn't be using regulator_get_optional() and much of the code here can be deleted. > +static void brcm_set_regulators(struct brcm_pcie *pcie, bool on) > +{ This is open coding the regulator bulk APIs. --y0ulUmNC+osPPQO6 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAl+/ljcACgkQJNaLcl1U h9BIAAf/QqjxCH8S51N4QuGM0DaR1GewyFK4OXnt3/H++qbgzoNsOF8XLIKc/tqg tYD1zmUpQYD44YaQ9HKIdsXUZ8LYfxL1OFgzKhi3Af6OWsG5Fp2A5VxoeWNTFAJQ QtlbGx0eBXRurktsqrwTPTbpygjTdYTOLbmF1Mn4jKvAk8JeU6/i6UG9ozlCd0VK qIrPLyLNkzx74vaZZUGBM5nZoiR2g9MgaQo3vSXIHJsms5yITf2eU1B43hGOU0+o HDwViSGHWGrCXBV55A2XbPWy3FzucuOiF36EeItx8Z/H6s5UVAixsUgqlibkYFeY LV6yhHjuY7o9jDuZj2WUVSL8ZdUHJw== =ub0o -----END PGP SIGNATURE----- --y0ulUmNC+osPPQO6--