Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp822528imw; Fri, 8 Jul 2022 12:22:49 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sKmhqOlhSu2CnHhlM9fhzaK6p1QBHQ5gPMIfoNpAlwAt8M3Gn9HvN+xYQRhms3RHMHeIoN X-Received: by 2002:a17:907:3f88:b0:726:a6a3:750c with SMTP id hr8-20020a1709073f8800b00726a6a3750cmr5282514ejc.142.1657308169423; Fri, 08 Jul 2022 12:22:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657308169; cv=none; d=google.com; s=arc-20160816; b=eBIWPyyGB7G1MyWztk7xyWeydv15CDpv5YjY7IKXwZb2ngZCXxawnyThJd2qjTfm1i mU8MKnv/T/IMRcNUDbRaefJORd5K6yUS/LuSSmWxT/Iz4wrfP886yhbEk5NyzImJQoL8 eIFiUgik0ouQBmtaJH7qAkKJzfLXfzEEwAQNFyMFaGOA29OdLDSjk6nrk8J873kI8vYF a+F12CN8WVKEgCqYcihiGn25FnwOCC66eLIeXGd7GCWOPnacJQK/uGSHpvQkkQinGgcU cVjgr2wW2JuA7e+Oaf4nhcH7QRCQakaYvdjb8UE4HVQf04Iq1SQitoNJj5hLTvFo1iW0 oytw== 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 :message-id:subject:cc:to:from:date:dkim-signature; bh=eRnbKkSPddzMJBspt3uJrPSzbkaIOPS8VCb0Fo6towM=; b=Sr8a9ivZwjPUbWSO3NZTsk9a57//s2PCW0VjfH997ljbrctdi85u+Kh4THnauxCGm7 q27i5GyDusTCVMDSOnT1UBMagQXdLS9MKCCCq2AB9fWrCJXXxq8ltCNrX8V3AerlT4z1 MLo64GoFveuzgN0S8CQ499YochYz+a9ureDJS0nWZbVIpcadL5+On4zYMiiPhEeFWnY5 k+Ck6K4l45lH5GU8iyj+1EU49SZS4glZ/u7AtG3EWq68D4mOpiWy9FFRJJkxLLAFAzDH WnIPEVXrlCycMMjsIjzG3fOpr0zlSq6yUFs0OTducWJDmHf+I11LDqullvvRnJ4xMKAY zZqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Qr2pIIxs; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id fi23-20020a056402551700b0043a65b00adbsi15928754edb.413.2022.07.08.12.22.23; Fri, 08 Jul 2022 12:22:49 -0700 (PDT) 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=@kernel.org header.s=k20201202 header.b=Qr2pIIxs; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239329AbiGHTHa (ORCPT + 99 others); Fri, 8 Jul 2022 15:07:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54068 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238639AbiGHTH3 (ORCPT ); Fri, 8 Jul 2022 15:07:29 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3C5E12656F; Fri, 8 Jul 2022 12:07:28 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id E0E11B824F7; Fri, 8 Jul 2022 19:07:26 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4DEB2C341C0; Fri, 8 Jul 2022 19:07:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1657307245; bh=rjeSBuy7WINmWx1pFu173n7NXaBRljwS3TEUUol/8xA=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=Qr2pIIxsT2+b8vifONEdOuiCMeFMq+Fdai7jvFef2HwpemnemDmbIpP3eaGbsmuox KHOi3zFjMCjR4O7rRCM2PTdRRGSN+AQuIKuRv1LutHC81uf0AAtDdyokB3ZXlmzXQq xAeyocy5ylC80h/i6Da+PF5y694B0C79aUCgR7jUwl+9MQapwkEq6+dzOVLaWgxc7M q4D+CjrsYvDqPbHo+aZskqtk6ehJZ5dY6V20cu5ukQ58L+PMcrnXMogUzUt5UE0QGK DyFJVIkSeDLJBVraMvoBmZ2ozjZAmWgQhhT+RWfiShELqvlT/8zwhr7xiQ3oQJFLSo RCvFlPlESAAAw== Date: Fri, 8 Jul 2022 14:07:23 -0500 From: Bjorn Helgaas To: Jim Quinlan Cc: Jim Quinlan , "open list:PCI NATIVE HOST BRIDGE AND ENDPOINT DRIVERS" , Nicolas Saenz Julienne , Bjorn Helgaas , Lorenzo Pieralisi , Cyril Brulebois , "maintainer:BROADCOM BCM7XXX ARM ARCHITECTURE" , Florian Fainelli , Lorenzo Pieralisi , Rob Herring , Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , "moderated list:BROADCOM BCM2711/BCM2835 ARM ARCHITECTURE" , "moderated list:BROADCOM BCM2711/BCM2835 ARM ARCHITECTURE" , open list Subject: Re: [PATCH v1 2/4] PCI: brcmstb: Add mechanism to turn on subdev regulators Message-ID: <20220708190723.GA366169@bhelgaas> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-7.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 Fri, Jul 08, 2022 at 10:14:11AM -0400, Jim Quinlan wrote: > On Wed, Jul 6, 2022 at 7:12 PM Bjorn Helgaas wrote: > > On Fri, Jul 01, 2022 at 12:27:23PM -0400, Jim Quinlan wrote: > > > Add a mechanism to identify standard PCIe regulators in the DT, allocate > > > them, and turn them on before the rest of the bus is scanned during > > > pci_host_probe(). > > > ... > > > +static int pci_subdev_regulators_add_bus(struct pci_bus *bus); > > > +static void pci_subdev_regulators_remove_bus(struct pci_bus *bus); > > > > I think these forward declarations are unnecessary. I can remove them > > if you agree. > > It is up to you. I have a commit-set ready that will make a number of > improvements to our driver. > One of them removes all forward declarations. Other commits concern > other suggestions you > have made, e.g. rename brcm_pcie_linkup() to brcm_pcie_start_link(). If you're planning a v2, I'd drop the declarations there. No point in adding them, only to remove them in a future patch (unless we need them in the interim, of course, but in this case I don't think we do). Bjorn