From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 0F743C433F5 for ; Tue, 4 Jan 2022 14:19:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=imikn7SC93/1HACREFHgsPwOySfoQIznmgwz0gDbONg=; b=JGTKzARF63xtH/ sKAfFuiBKtARgTVXhov558+ZcRflEW/aNkxBTZk8y4NY9FEtEquIV1aXSSZzo9JUshfWGiLVMVFcq PiTXcg20zzS5YGE+Bvu8MeFLpt+fAGrdUNvV/EEqA1eeZNXI0MXnH8TW3LVwySaxmLuFlTXJ0tiZk KPlki6P3gJerAneTnPRLfqn2N17Vt4gs2l4Pbp84tln26ZjC4uasI8htTZKmn6HTh1OjPQnj3Ch7O To7nrlOXlP+MTd3i7lyf+ZOErgABlblxEoWBKvx0wJNndyHuObZHzD2jbJKSHTgOVEZtP2JEDIMXU oOF8rP9uMRsERRyX1pmg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n4kdf-00BgFn-T2; Tue, 04 Jan 2022 14:18:12 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n4kdb-00BgE3-Qh; Tue, 04 Jan 2022 14:18:09 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id C8E93ED1; Tue, 4 Jan 2022 06:18:04 -0800 (PST) Received: from lpieralisi (e121166-lin.cambridge.arm.com [10.1.196.255]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id E671C3F774; Tue, 4 Jan 2022 06:18:02 -0800 (PST) Date: Tue, 4 Jan 2022 14:17:52 +0000 From: Lorenzo Pieralisi To: Florian Fainelli , bhelgaas@google.com Cc: Rob Herring , Jim Quinlan , linux-pci@vger.kernel.org, Nicolas Saenz Julienne , Mark Brown , bcm-kernel-feedback-list@broadcom.com, james.quinlan@broadcom.com, "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , "moderated list:BROADCOM BCM2711/BCM2835 ARM ARCHITECTURE" , open list , "moderated list:BROADCOM BCM2711/BCM2835 ARM ARCHITECTURE" , Saenz Julienne Subject: Re: [PATCH v10 0/7] PCI: brcmstb: root port turns on sub-device power Message-ID: <20220104141742.GA27804@lpieralisi> References: <20211209211407.8102-1-jim2101024@gmail.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220104_061808_005347_45362DC9 X-CRM114-Status: GOOD ( 33.15 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Fri, Dec 10, 2021 at 12:31:10PM -0800, Florian Fainelli wrote: > On 12/10/21 10:44 AM, Rob Herring wrote: > > On Thu, Dec 09, 2021 at 04:13:58PM -0500, Jim Quinlan wrote: > >> v10 -- Bindings commit example: in comment, refer to bridge under > >> controller node as a root port. (Pali) > >> -- Bindings commit example: remove three properties that are not > >> appropriate for a PCIe endpoint node. (Rob) > >> > >> v9 -- Simplify where this mechanism works: instead of looking for > >> regulators below every bridge, just look for them at the > >> bridge under the root bus (root port). Now there is no > >> modification of portdrv_{pci,core}.c in this submission. > >> -- Although Pali is working on support for probing native > >> PCIe controller drivers, this work may take some time to > >> implement and it still might not be able to accomodate > >> our driver's requirements (e.g. vreg suspend/resume control). > >> -- Move regulator suspend/resume control to Brcm RC driver. It > >> must reside there because (a) in order to know when to > >> initiate linkup during resume and (b) to turn on the > >> regulators before any config-space accesses occur. > > > > You now have a mixture of 'generic' add/remove_bus hooks and the host > > controller suspend/resume managing the regulators. I think long term, > > the portdrv is going to be the right place for all of this with some > > interface defined for link control. So I think this solution moves > > sideways rather than towards anything common. > > > > Unfortunately, the only leverage maintainers have to get folks to care > > about any refactoring is to reject features. We're lucky to find anyone > > to test refactoring when posted if done independently. There's a long > > list of commits of PCI hosts that I've broken to prove that. So it's > > up to Lorenzo and Bjorn on what they want to do here. > > After version 10, it would seem pretty clear that we are still very much > committed to and interested in getting that set merged and do it the > most acceptable way possible. Common code with a single user is always a > little bit of a grey area to me as it tends to be developed to cater for > the specific needs of that single user, so the entire common aspect is > debatable. I suppose as long as we have the binding right, the code can > change at will. > > Not trying to coerce Bjorn and Lorenzo into accepting these patches if > they don't feel comfortable, but what about getting it included so we > can sort of move on from that topic for a little bit (as we have other > PCIe changes coming in, supporting additional chips etc.) and we work > with Pali on a common solution and ensure it works on our pcie-brcmstb.c > based devices? We are not going to vanish and not come back looking at this. Sorry for being late on reviewing this set. I agree with both of you. I don't think Bjorn had a chance to have a look at patch (4) now I am delegating it to him; I am not very keen on adding functionality to PCI core where it is still a question whether it can be reused by other drivers (forgive me if I missed some details on previous review versions). Is it possible to keep patch (4) brcmstb specific (ie keep the code out of PCI core for now), we then merge this series and help Pali implement a generic version based on Rob's suggestion ? Just let me know please, thanks. Lorenzo _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel