Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2987096pxk; Tue, 15 Sep 2020 07:26:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxTMbkc1xt/kRSvr3yMrKhCu/65wthJk4aqiB7sBpHcHgrnfInP2gUqNjmN3OVff7LX/+wB X-Received: by 2002:a17:906:4b18:: with SMTP id y24mr20102086eju.471.1600180004989; Tue, 15 Sep 2020 07:26:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600180004; cv=none; d=google.com; s=arc-20160816; b=Ca1vSJoIBuQCe/mGX6eIaO4TWnp2h0hpFyhotOIN2k3MqfxOO5TDEvOwM5WMPNZxg5 qZ3u4MmWHWQh2Z3VY1WFkRFlrOlw1qS06mwrLgjTEwDB07fQv8vhRV5e+YnC6+FP83Vs xUIpkVQuIo+7f/GhbG/P94podDkO2ulvmHAXQdEUfTWyqmuGE4xalOI/pSePVCze5roe 8FHDOZEJWD9H+v0t1pjAtBMN/1hn22LR07oi2H+bRfi1E2jnllTKkd1n9uRrwk5yYeiN cN6QImPP9Zu1wKjKl4obKIgqtegAnZGCzdEmW4lRofCO3M0Gmgx22ttd/zMaIS3HqLcC Q4Mg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=rgoatpPEep+AjT30Mye6VvozNsyBb0uBUKnSsty40P0=; b=qGU0Q8GY+mFZhfF5gZNfACTcgw/WAaU2V3ruE9aXy0XQO/J3wKgg+kB+Mkg1FLB+/r 0+0ZPjGDwglBnrnL0YcVDL7yQr74TlXibAoUDkA05YDXUcvS0mwdWCuG1QVIjKEl6pnC rvmq2XEGxCIpYCiHtsz2A1JzEuGMg8pH4eSOaFGiXtC1IM7g6bBzbSHTODyeaEV/jDhZ VCcMGqPIRX7aI9Ja0RVYBb+lchG2uRkvGeK6xGqqZiWnDR1CHXIGCqbaGMBe5OcL924q AFbfauTdVgsI+D2tcickW9KJCfpqoexHtnBV01Wa2pPKoyk6F/7iUyfXqv/lmzP7G8kv wA1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b="FE/uY5xZ"; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id sd28si9486143ejb.302.2020.09.15.07.26.22; Tue, 15 Sep 2020 07:26:44 -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; dkim=pass header.i=@broadcom.com header.s=google header.b="FE/uY5xZ"; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726874AbgIOOU1 (ORCPT + 99 others); Tue, 15 Sep 2020 10:20:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59304 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726811AbgIOOI2 (ORCPT ); Tue, 15 Sep 2020 10:08:28 -0400 Received: from mail-pl1-x644.google.com (mail-pl1-x644.google.com [IPv6:2607:f8b0:4864:20::644]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B2E4EC061224 for ; Tue, 15 Sep 2020 06:46:22 -0700 (PDT) Received: by mail-pl1-x644.google.com with SMTP id r19so1371676pls.1 for ; Tue, 15 Sep 2020 06:46:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=rgoatpPEep+AjT30Mye6VvozNsyBb0uBUKnSsty40P0=; b=FE/uY5xZIO2hyih0TY8Kk+GNLuKbNHwGhwfJlJlTn0x25KvEKzKwPIXhtT1FiH82ky RvvXicGvXhRegmv+6a3/aG9rthMjIg5O5vM+D2AsADTOl5CvyKHgcY7xwaMiUw5qckDt gBSrWdy4AdPAUh+T4wM1AjGZfJ21HHvWZCVio= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=rgoatpPEep+AjT30Mye6VvozNsyBb0uBUKnSsty40P0=; b=p8RsmcuLi1OFtEcPvkZCaN3EAn54Tumv2dsAbciGAjca/9CzbIlStRlpPDuY3CxCXG NQjW/Ia4ljh3FDCgwWjN5tV2g9Qn1rufGiywFobPe/7V9AfvxFalMyy6Tqb7r7wk9zuF T+KYeSOmxw9q0Lyle8UDUC0hrbQJQdrirJjgdRrcTq8jrxuUHZvI4GZBFZo4a+8CVmn+ uj/MqyjgZTcdHFtg9H+LQJO4WPmwO8qYif98x3bpI0QRKlzEeSqi0Aj3dJTlojj/D6zk hLHVn15AHkaZtrTvH5JG33RTnDhMI2apN7sYSxRzgwd6VH0eKtajYDZCdDxPWIK1reYi eYEw== X-Gm-Message-State: AOAM53108pogvXFMKqjXNMUoIzvq3s1+ZklzlSE1a/D9LEy/ATbqKPn3 DuZL4856svRS/khfKPSFnm9NEQ== X-Received: by 2002:a17:902:fe0b:b029:d1:9bd3:6e20 with SMTP id g11-20020a170902fe0bb02900d19bd36e20mr19833487plj.31.1600177582178; Tue, 15 Sep 2020 06:46:22 -0700 (PDT) Received: from mannams-OptiPlex-7010.dhcp.broadcom.net ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id jz6sm12471478pjb.22.2020.09.15.06.46.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Sep 2020 06:46:21 -0700 (PDT) From: Srinath Mannam To: Lorenzo Pieralisi , Bjorn Helgaas , Ray Jui Cc: bcm-kernel-feedback-list@broadcom.com, linux-pci@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Srinath Mannam Subject: [PATCH v2 3/3] PCI: iproc: Display PCIe Link information Date: Tue, 15 Sep 2020 19:15:41 +0530 Message-Id: <20200915134541.14711-4-srinath.mannam@broadcom.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200915134541.14711-1-srinath.mannam@broadcom.com> References: <20200915134541.14711-1-srinath.mannam@broadcom.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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); + } + return 0; err_power_off_phy: -- 2.17.1