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 24526C43334 for ; Mon, 18 Jul 2022 22:41:35 +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: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:References: List-Owner; bh=WKyPFZt2rCsuWIx52ADhIKfTL+pINtvQTxuCTmdPldo=; b=vssQD733Uli+1n f23xFwHxrr43BXcVVIzspX2oEP0q7qIbxqOc9S8s8R4A3LRHInib+Pie1ITGbcgCmxlTlq25v5fJ/ P907Lxp8k4lPaYsE2QJPQrNYQRl//m4lumagIFXxH5cDjNIWGdyXa8NTsivVeyjAwX1nPAe2mqmYe ntck9FWLvTzowhDMlSc3zIxsat1ioUk4dsLOMtM9WWfmgJ9MsvlRDhA1nlHVGFFcXQ4tklq1d2U7C jrNtKrGB4Qw22UqFcf4SGRFlBKLFxa/mRMUqeoCHkK8b0ujhyKAYEqSsicbB4g3A4RBh7GmINOLjj bU85yWtcMmBGua5WO0DQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oDZPt-002GkL-EZ; Mon, 18 Jul 2022 22:40:41 +0000 Received: from ams.source.kernel.org ([2604:1380:4601:e00::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oDZPq-002Gbr-78; Mon, 18 Jul 2022 22:40:39 +0000 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 D2983B817B5; Mon, 18 Jul 2022 22:40:36 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3FD2AC341C0; Mon, 18 Jul 2022 22:40:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1658184035; bh=lhU/JExpOSEKJDInQznDy3qsN7c7UqcbEHd+FzPXqEY=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=mIGa+9/u5W3L/ehTjMVx+iDuDXxtClxxVs/tEEqzi6L2SMBrbXpEsILTlVtT8QEM4 QU1qVnB5+99Ra+nMwQvonth+j0hA2QIOPFslDc1FJ3zS33EKqr6s3Ks7vicDJaXz4O YvUQ5IA429Ano35x+TQwWNs3+Vy+dYLAX56jDp0hTvbT+q770IHcTsVKN+8LCQmVyk tWVm/BNZNknkXqHL6+tuFaD9H7l/poj2ON2M2pYr5maaldeIEXDD5yKCyXlpfzfeNi vUY11fMIDYUjNSzLZenS8Qzq1K0E+O0wiBEJNLBZyIcPbwk1QMUGbHe6gxMkz7FPuf T5iyd3OMRLhlQ== Date: Mon, 18 Jul 2022 17:40:33 -0500 From: Bjorn Helgaas To: Jim Quinlan Cc: linux-pci@vger.kernel.org, Nicolas Saenz Julienne , Bjorn Helgaas , Lorenzo Pieralisi , Cyril Brulebois , bcm-kernel-feedback-list@broadcom.com, james.quinlan@broadcom.com, 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 v2 2/6] PCI: brcmstb: Split brcm_pcie_setup() into two funcs Message-ID: <20220718224033.GA1450714@bhelgaas> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20220718181425.GA1431580@bhelgaas> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220718_154038_418366_61B7C6CE X-CRM114-Status: GOOD ( 14.12 ) 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 Mon, Jul 18, 2022 at 01:14:25PM -0500, Bjorn Helgaas wrote: > ... > So I think brcm_pcie_setup() does initialization that doesn't depend > on the link or any downstream devices, and brcm_pcie_start_link() does > things that depend on the link being up. Right? > > If so, "start_link" might be a slight misnomer since AFAICT > brcm_pcie_start_link() doesn't do anything to initiate link-up except > maybe deasserting fundamental reset. Some drivers start the LTSSM or > explicitly enable link training, but brcm_pcie_start_link() doesn't > seem to do anything like that. > > brcm_pcie_start_link() still does brcm_pcie_set_outbound_win(). Does > that really depend on the link being up? If that only affects the > Root Port, maybe it could be done before link-up? What about the /* PCIe->SCB endian mode for BAR */ thing? Does that depend on the link being up? And the "Refclk from RC should be gated with CLKREQ#" part? Does that depend on the link being up? It seems obvious that brcm_pcie_set_ssc() and reading the negotiated link speed and width depend on the link being up. _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel