Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp61391pxk; Wed, 16 Sep 2020 18:56:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJygaNt7oX8tPs/KgK+mIq4oQy91D+9SJTqfD+qMM374dJM73HMvffqfb7Zg4gso0w6TlIbY X-Received: by 2002:a17:906:ca8f:: with SMTP id js15mr29707954ejb.175.1600307772820; Wed, 16 Sep 2020 18:56:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600307772; cv=none; d=google.com; s=arc-20160816; b=LcwyZs8JzTLGszhAepuiQhhpLmMgs3pVN/OZ1WDK67QX8uFLEayhU/pTTcdPm0F+is MnUEVcKOrd5uySOk/7HzEjb3xHjkBg6ianwbQw6u+tN8NcmS+YoJzJLYpBAtWurCX5kD NwVmQQf43R46Hjv7QS2q2jwOax0He3HzesqHpS4UTHxVUNIEtbpZ55eEoun7PsPbIq/x EUIVBDU/gJvY6sFvEm7tiR3q6zCwj0x21ZIta521r/ytSAzEME7m41xLv9EpLoTPv8B7 WkHBdCN9RsT4BDKD/htuBu5mmip7QuiFQgFoSRHUTwv2dL6atxqpIEF47fNp1XUYi3I0 Wo2g== 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 :references:message-id:subject:cc:to:from:date; bh=Eeo2RxIy09U3tisfj7sBhkZOIk4q9g2XE/z4whZwqUA=; b=eH6RzSiHhZ5HI1bgTdcagEKA4bR6AaHEzrPjU9xX/uoPZ/Ar26UEbIko/tgVGxAUyI Vu2AxHqyWQ0pd5KL7UgxCGTPqxq0k1YVROMYdVDqWBnW4abFSbU2d57KP+bHdYbFHx31 QUNT3r3jJQdV/ylkK2RVi2U3JX0MXj1ezZGjvXU1j/JlUD37m7pW7J+8kekaCU8kQ5mk 0pnfvzdYXQ2qBy2nus/kFD9BjolFZSqSEEbiz53oSh9WDkHtxZzd17hckKtNfQMxFwjm +D2aKh8VxWgFtgaoXtTR4BVBWR1YgH/rdfIoWBK0/1/SNxvbRFC8WQ1c9u4klji23ZvT ksag== ARC-Authentication-Results: i=1; mx.google.com; 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 u6si12563018ejg.449.2020.09.16.18.55.49; Wed, 16 Sep 2020 18:56:12 -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; 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 S1726156AbgIQBwv (ORCPT + 99 others); Wed, 16 Sep 2020 21:52:51 -0400 Received: from mail-io1-f68.google.com ([209.85.166.68]:43526 "EHLO mail-io1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726009AbgIQBws (ORCPT ); Wed, 16 Sep 2020 21:52:48 -0400 Received: by mail-io1-f68.google.com with SMTP id z25so402132iol.10; Wed, 16 Sep 2020 18:52:48 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=Eeo2RxIy09U3tisfj7sBhkZOIk4q9g2XE/z4whZwqUA=; b=VKvawtrbKeud7wt2MBz0dL6srq13WxBpvOIwvUwOTd2f6K5I0BKkvafGXVke8vqAfa egu0zDRneKT7+0ZY0jpDdVGUCWZIMOjUdSXXnFDM4JQL3SAciTSwWYRh6P/RmfgyLo9+ IiAcfkKIqFgfvA/RvskKs/kfvnL7lHSdzXcc4K+tGkbJaD2LpOD/ttNK1DHW6WWHOhu1 5+IhAp7I5NCEQ8x6WUfbCXJuKllaALMpbjImkL64mdXCrLsGDzBucBQlsyN2NNNKefpK 0fvv7q6QF010Z/nwbo5Sxzj7kx5WFVzoa7WerTNvCu/5uvOGPB9D4yvA3m9DrswLJSbX 7FuQ== X-Gm-Message-State: AOAM532chYa9Ya0NE6gL56i6cyofcgnTKJFTGvCYH5QJ4S+gnqCjshfK w9Da6ULV6pStO7bmZreKYg== X-Received: by 2002:a6b:e206:: with SMTP id z6mr21772899ioc.208.1600307568030; Wed, 16 Sep 2020 18:52:48 -0700 (PDT) Received: from xps15 ([64.188.179.253]) by smtp.gmail.com with ESMTPSA id w70sm11885701ilk.87.2020.09.16.18.52.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Sep 2020 18:52:47 -0700 (PDT) Received: (nullmailer pid 680592 invoked by uid 1000); Thu, 17 Sep 2020 01:52:45 -0000 Date: Wed, 16 Sep 2020 19:52:45 -0600 From: Rob Herring To: Srinath Mannam Cc: Lorenzo Pieralisi , Bjorn Helgaas , Ray Jui , linux-pci@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v2 3/3] PCI: iproc: Display PCIe Link information Message-ID: <20200917015245.GA678675@bogus> References: <20200915134541.14711-1-srinath.mannam@broadcom.com> <20200915134541.14711-4-srinath.mannam@broadcom.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200915134541.14711-4-srinath.mannam@broadcom.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 15, 2020 at 07:15:41PM +0530, Srinath Mannam wrote: > After successful linkup more comprehensive information about PCIe link > speed and link width will be displayed to the console. > > Signed-off-by: Srinath Mannam > --- > drivers/pci/controller/pcie-iproc.c | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/drivers/pci/controller/pcie-iproc.c b/drivers/pci/controller/pcie-iproc.c > index cc5b7823edeb..8ef2d1fe392c 100644 > --- a/drivers/pci/controller/pcie-iproc.c > +++ b/drivers/pci/controller/pcie-iproc.c > @@ -1479,6 +1479,7 @@ int iproc_pcie_setup(struct iproc_pcie *pcie, struct list_head *res) > { > struct device *dev; > int ret; > + struct pci_dev *pdev; > struct pci_host_bridge *host = pci_host_bridge_from_priv(pcie); > > dev = pcie->dev; > @@ -1542,6 +1543,11 @@ int iproc_pcie_setup(struct iproc_pcie *pcie, struct list_head *res) > goto err_power_off_phy; > } > > + for_each_pci_bridge(pdev, host->bus) { > + if (pci_pcie_type(pdev) == PCI_EXP_TYPE_ROOT_PORT) > + pcie_print_link_status(pdev); > + } If this information is useful for 1 host implementation, why not all of them and put this in a common spot. Rob