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 X-Spam-Level: X-Spam-Status: No, score=-13.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CDDCCC43461 for ; Thu, 17 Sep 2020 01:54:12 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 5DC692076D for ; Thu, 17 Sep 2020 01:54:12 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="KT9b+YGN" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5DC692076D Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: Subject: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=+oUpGkqivg1ria2BlJ6BlCRI4aukjO00QHg5Ey5R//g=; b=KT9b+YGNCMpsSfzh5OeNfIH7Y b4NuDqUqcEuji9MKhuBPtdd4r0OuoqFdHRJKXDEnufn8SHZsUaYIMpWPIx16NddrhX0v/sXRZqyx1 /V15WBwKvG1xC6excv4A8PF67IcBwcbK2zfiAsWZ0YnjRfJEUz0usO7J0+Lp5BrxhvLLV3gF5BA7o KMIaCQ3T1tkGMi2gd/E8U2Dwxdb4HkDvWnpZVmFo9PuS0u7GKGLUCPW/eqybErUDYi3drVM3h5DhK xqPi34YNqdi++OPrrgVHUTWBMdVhRicf03ut38yzBPdyrpK4N25bGc7ISdoqXm51u4M52iQNjy05A Hk9flsjQA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kIj6T-0001jz-QZ; Thu, 17 Sep 2020 01:52:53 +0000 Received: from mail-io1-f65.google.com ([209.85.166.65]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kIj6Q-0001jM-A0 for linux-arm-kernel@lists.infradead.org; Thu, 17 Sep 2020 01:52:52 +0000 Received: by mail-io1-f65.google.com with SMTP id r25so452378ioj.0 for ; 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=RUJ1cNlk9Q3M+ouCoForWLehCYqo3/bbw4TjIn5jHI8xPQtjviN3ZcmjbYji+f6WyK zxrQ7mxMBEqcQAxk1aENaMMEDznme55VLFSUBg+LhK5TqjRzZvtj1w9DCC7hKsmcuw6O ikz37aP5WalC0dMqleJFf2b3YFSHQLEAmOKs6CFCWx+PqtpWw6693TrF3wKkoKzLaZAG 7yiJKXf1Wh9WvFD4jZlSzYbemjlDt4PMNNWd2SuLecqUsrS+dhtD7LthmvVgvEIMLOZz lcFKEWcIW6gfl6684zPFfNad/JtWAQTP7Tv/t5TNlSqh49Qq09vsY8bSi1bgUxSuop9L 8Kow== X-Gm-Message-State: AOAM532N2A1r05bJDhd2lpQVV1a9OE+7WGLlO/HgqyiAtQPJRF6+A9yh VtgITQ7f9IZa0m6Qidpa7g== X-Google-Smtp-Source: ABdhPJwY6xr3vb1swKAQ5WvmeGwOnOBoBbtymdMSqkRnDHosXTbREj7fm0gsF54+Ft9qfMhdo+0Ahg== 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 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-Disposition: inline In-Reply-To: <20200915134541.14711-4-srinath.mannam@broadcom.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200916_215250_354530_F2BAB6C0 X-CRM114-Status: GOOD ( 16.27 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Lorenzo Pieralisi , Ray Jui , linux-kernel@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com, linux-pci@vger.kernel.org, Bjorn Helgaas , linux-arm-kernel@lists.infradead.org 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 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 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel