From patchwork Fri May 11 00:20:11 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shawn Guo X-Patchwork-Id: 911630 X-Patchwork-Delegate: lorenzo.pieralisi@arm.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=linux-pci-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="BSDDfQpz"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 40hrNW5DXqz9s16 for ; Fri, 11 May 2018 10:20:59 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750806AbeEKAU6 (ORCPT ); Thu, 10 May 2018 20:20:58 -0400 Received: from mail-pf0-f196.google.com ([209.85.192.196]:40959 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750798AbeEKAU6 (ORCPT ); Thu, 10 May 2018 20:20:58 -0400 Received: by mail-pf0-f196.google.com with SMTP id f189-v6so1844009pfa.7 for ; Thu, 10 May 2018 17:20:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=nT3Snifsxsm5bRINVcD2HlqwFELTcfL5a4bxWmCCxuQ=; b=BSDDfQpz0VEWyBVqGiQ1fNcCz80vTGgf0uG8I+l018LGihGPFetWk+Dm0LEN1b1gyp Ddke5finyJnnVr3UZvcdjmu2uq/S9NP+DyB0I6+hRM+iuhniTXpjM+v6cS48jVifROu8 pkH1WHXcBB/K+0S0Ofot1R1kUch9XPPQnvTjk= 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=nT3Snifsxsm5bRINVcD2HlqwFELTcfL5a4bxWmCCxuQ=; b=rkjfnO2GRwvfe7WGS0X7/m6z7pwxHqElC81adaq8+V0A9wRG17i7mHiYxdGcGMFo8F vx22lcwa3g8Gm+zI7XXqy4xXqPdW13Tu2mvFdymfZmB9Smf/28S8NuGZUBPqIiHR5b8y nYtx7wnwwY/b1UshmXEVeISMlAJqUvt8QmGYJ8/LeXJHy71NT9ubO6Pco40fVCPQ4Ej0 Fk6B0QpkB0J2vKF/wFpuJ8ZAYDnqNd73QlE7cGQiUnzY/YLS4I6x8jobJsqM0GkJsqmJ QzatEXYQkU8mD73ThXrGk0/Qy0xmoZpDnr7nDYGBQO8Ob2m1tiD0yiotBShYe1mgLknW xGBA== X-Gm-Message-State: ALKqPwceN3k/UiPzRn7cCBChecrFNb0gLLHf28Ivm6T3KwbPMg2Hgpmz uxfX95S5QfLz+LLfF/HGi87c3g== X-Google-Smtp-Source: AB8JxZr7ewn9vL7Psu3+xcGz0C+XUOP1Gh9F0/du/JqcQADEjk9kdxsZzzNWxbErr0P4o/C9ntibfw== X-Received: by 2002:a62:9c0d:: with SMTP id f13-v6mr3245278pfe.15.1525998058017; Thu, 10 May 2018 17:20:58 -0700 (PDT) Received: from localhost.localdomain ([45.56.152.100]) by smtp.gmail.com with ESMTPSA id h17-v6sm3335518pfn.80.2018.05.10.17.20.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 10 May 2018 17:20:56 -0700 (PDT) From: Shawn Guo To: Bjorn Helgaas Cc: linux-pci@vger.kernel.org, Shawn Guo , Jingoo Han Subject: [PATCH v2 1/9] PCI: exynos: Drop unnecessary root_bus_nr setting Date: Fri, 11 May 2018 08:20:11 +0800 Message-Id: <1525998019-28634-2-git-send-email-shawn.guo@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1525998019-28634-1-git-send-email-shawn.guo@linaro.org> References: <1525998019-28634-1-git-send-email-shawn.guo@linaro.org> Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org Function dw_pcie_host_init() already initializes the root_bus_nr field of 'struct pcie_port', so the -1 assignment prior to calling dw_pcie_host_init() in platform specific driver is not really needed. Drop it. Signed-off-by: Shawn Guo Cc: Jingoo Han --- drivers/pci/dwc/pci-exynos.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/pci/dwc/pci-exynos.c b/drivers/pci/dwc/pci-exynos.c index 4cc1e5df8c79..cee5f2f590e2 100644 --- a/drivers/pci/dwc/pci-exynos.c +++ b/drivers/pci/dwc/pci-exynos.c @@ -421,7 +421,6 @@ static int __init exynos_add_pcie_port(struct exynos_pcie *ep, } } - pp->root_bus_nr = -1; pp->ops = &exynos_pcie_host_ops; ret = dw_pcie_host_init(pp); From patchwork Fri May 11 00:20:12 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shawn Guo X-Patchwork-Id: 911631 X-Patchwork-Delegate: lorenzo.pieralisi@arm.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=linux-pci-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="gAzwdQ0X"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 40hrNZ73t3z9s16 for ; Fri, 11 May 2018 10:21:02 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750818AbeEKAVC (ORCPT ); Thu, 10 May 2018 20:21:02 -0400 Received: from mail-pg0-f68.google.com ([74.125.83.68]:46301 "EHLO mail-pg0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750798AbeEKAVB (ORCPT ); Thu, 10 May 2018 20:21:01 -0400 Received: by mail-pg0-f68.google.com with SMTP id z4-v6so1649352pgu.13 for ; Thu, 10 May 2018 17:21:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=/Kh4LRkU0d3omEMGr6cvVaqYcGVJ6siTraFZyiNAy+8=; b=gAzwdQ0XK3hoks+l3FSi5zwWb9IZfQb4C98w+awTrKiCum3YDyBVtViWUPdC6n9mkC XkZTElX2/01pUTxbrO1DWKPJJ68jvADTp8+1yxSPp5Yz2ghoeLT9crWWDO948mH4leMp dDRL03QaaJgrnX3rEkjFvq2vc5LHYuppo3Mnc= 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=/Kh4LRkU0d3omEMGr6cvVaqYcGVJ6siTraFZyiNAy+8=; b=rgkEzWev9JU6goQqFAtwvy1IZjHG6cpUfZoBbq5LVcYI08QM91qJ2BtirQhd8+b4Bz quZtGzED09VdbPwzQOsT3mS5WMHKv7WvH3RXcZU2I/yBfGhy1ZH2is4e5csIDowUHYm6 kaz5XefR90vy2R4J/9KFPor+NQ2b4fCE/s9+j2oCLoRHJAj278sAhf029GNCT10BQPjJ NodFD5Zc2vad008oBmFUBK9FzFajBMREzYszwy6oQKK3AEzFx7QYMldAZF33manbjCYW trzCRN8hnuv3SmWuLJaVIHvZUYPcL9HI9qSFNdp6CP6Qh3SXZc4zc5QCSOXtrfLHeovt GROg== X-Gm-Message-State: ALKqPweXvJ3CJK9oacUmkukz1uoH5ELFabc/MeemYbZGJB7c2NX9ZnCM WX/TXijd+wlRf5Hx8A6o9RLpOA== X-Google-Smtp-Source: AB8JxZp9Vxa9BVWhbZLUk1Q65fIEPTLP/To0zEC//xtHFPfDVPl1L5Cv1VXreEoN7OrFkDEK2rXatg== X-Received: by 2002:a63:6807:: with SMTP id d7-v6mr2683550pgc.332.1525998061327; Thu, 10 May 2018 17:21:01 -0700 (PDT) Received: from localhost.localdomain ([45.56.152.100]) by smtp.gmail.com with ESMTPSA id h17-v6sm3335518pfn.80.2018.05.10.17.20.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 10 May 2018 17:20:59 -0700 (PDT) From: Shawn Guo To: Bjorn Helgaas Cc: linux-pci@vger.kernel.org, Shawn Guo , Richard Zhu , Lucas Stach Subject: [PATCH v2 2/9] PCI: imx6: Drop unnecessary root_bus_nr setting Date: Fri, 11 May 2018 08:20:12 +0800 Message-Id: <1525998019-28634-3-git-send-email-shawn.guo@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1525998019-28634-1-git-send-email-shawn.guo@linaro.org> References: <1525998019-28634-1-git-send-email-shawn.guo@linaro.org> Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org Function dw_pcie_host_init() already initializes the root_bus_nr field of 'struct pcie_port', so the -1 assignment prior to calling dw_pcie_host_init() in platform specific driver is not really needed. Drop it. Signed-off-by: Shawn Guo Cc: Richard Zhu Cc: Lucas Stach --- drivers/pci/dwc/pci-imx6.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/pci/dwc/pci-imx6.c b/drivers/pci/dwc/pci-imx6.c index 4818ef875f8a..f330e322c1e7 100644 --- a/drivers/pci/dwc/pci-imx6.c +++ b/drivers/pci/dwc/pci-imx6.c @@ -667,7 +667,6 @@ static int imx6_add_pcie_port(struct imx6_pcie *imx6_pcie, } } - pp->root_bus_nr = -1; pp->ops = &imx6_pcie_host_ops; ret = dw_pcie_host_init(pp); From patchwork Fri May 11 00:20:13 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shawn Guo X-Patchwork-Id: 911632 X-Patchwork-Delegate: lorenzo.pieralisi@arm.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=linux-pci-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="d9uP0yqE"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 40hrNd6T3Tz9s16 for ; Fri, 11 May 2018 10:21:05 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750858AbeEKAVF (ORCPT ); Thu, 10 May 2018 20:21:05 -0400 Received: from mail-pl0-f67.google.com ([209.85.160.67]:35816 "EHLO mail-pl0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750798AbeEKAVE (ORCPT ); Thu, 10 May 2018 20:21:04 -0400 Received: by mail-pl0-f67.google.com with SMTP id i5-v6so2235316plt.2 for ; Thu, 10 May 2018 17:21:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=5ChVu9j+zuVg6iI2exGFbBxsEuWmhIev844o/EXySsk=; b=d9uP0yqEKEvYiccBk6s1oIN6xDMK6PBdiAvOkhxRvqNE+7mYpMZVmFfj80VcTXZaYF sYOVLRJg9gyqOm+EpeV+p03Glu7K53w/jgj9t0zn5w9u/UI3saZPnDR5kNOh/nIPfpkW bF1EH+27zL71IA+kvq/h+t8Oma4xp2mfV29R0= 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=5ChVu9j+zuVg6iI2exGFbBxsEuWmhIev844o/EXySsk=; b=qQjancCRPxOyYtM4yKGXdTkdy2tbLhai0wiB39MXal7I/kTdix/hknLGr4ie24CYvY 6L2qrvRch/dqXPzSxaERWsn1p+2Sk8fA4cv/VBSbA42/sHrO7X8lKufgp/3ifkwX8DW0 VKhhLIBW1Ki8iwusJQcWKopFouDFGMQZ18bAVFG67+uRLFYxn31Lk7wyoOIgrJeKM46M ncoCmOtTzIcgSBfp5Gm+YlaUXXEzwWBMGEU5F+YdQiGY4DtM9q/tHwKfQeGiBsR9Hc/4 dOz5kCXiWBboEqNLbuDXGhFHmQhHbFSzShj4xfK9Muoj0aai1BREg++UQQABpZROqiKD u2ow== X-Gm-Message-State: ALKqPwfHKFTwoB1eGguUgBgHlZNaH9Gcu+M4EuY617BYjTHLvhML2r91 nJb8dPnCdAnmCcIH3acpG0Nn5g== X-Google-Smtp-Source: AB8JxZpirfhueRFkPTLSPcs1Kl0bO2n0AX10oIWVlOwn+ZGaYUvuKhxCH3fnpvEA6m9jQAladEnmaA== X-Received: by 2002:a17:902:1a6:: with SMTP id b35-v6mr3290543plb.80.1525998064207; Thu, 10 May 2018 17:21:04 -0700 (PDT) Received: from localhost.localdomain ([45.56.152.100]) by smtp.gmail.com with ESMTPSA id h17-v6sm3335518pfn.80.2018.05.10.17.21.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 10 May 2018 17:21:02 -0700 (PDT) From: Shawn Guo To: Bjorn Helgaas Cc: linux-pci@vger.kernel.org, Shawn Guo , Murali Karicheri Subject: [PATCH v2 3/9] PCI: keystone: Drop unnecessary root_bus_nr setting Date: Fri, 11 May 2018 08:20:13 +0800 Message-Id: <1525998019-28634-4-git-send-email-shawn.guo@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1525998019-28634-1-git-send-email-shawn.guo@linaro.org> References: <1525998019-28634-1-git-send-email-shawn.guo@linaro.org> Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org Function dw_pcie_host_init() already initializes the root_bus_nr field of 'struct pcie_port', so the -1 assignment prior to calling dw_pcie_host_init() in platform specific driver is not really needed. Drop it. Signed-off-by: Shawn Guo Cc: Murali Karicheri --- drivers/pci/dwc/pci-keystone.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/pci/dwc/pci-keystone.c b/drivers/pci/dwc/pci-keystone.c index d55ae0716adf..6ca80a21969e 100644 --- a/drivers/pci/dwc/pci-keystone.c +++ b/drivers/pci/dwc/pci-keystone.c @@ -347,7 +347,6 @@ static int __init ks_add_pcie_port(struct keystone_pcie *ks_pcie, } } - pp->root_bus_nr = -1; pp->ops = &keystone_pcie_host_ops; ret = ks_dw_pcie_host_init(ks_pcie, ks_pcie->msi_intc_np); if (ret) { From patchwork Fri May 11 00:20:14 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shawn Guo X-Patchwork-Id: 911633 X-Patchwork-Delegate: lorenzo.pieralisi@arm.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=linux-pci-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="PRhQUt32"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 40hrNk1BxBz9s16 for ; Fri, 11 May 2018 10:21:10 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751168AbeEKAVJ (ORCPT ); Thu, 10 May 2018 20:21:09 -0400 Received: from mail-pl0-f65.google.com ([209.85.160.65]:40944 "EHLO mail-pl0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751000AbeEKAVI (ORCPT ); Thu, 10 May 2018 20:21:08 -0400 Received: by mail-pl0-f65.google.com with SMTP id t12-v6so2237375plo.7 for ; Thu, 10 May 2018 17:21:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=ABoME8P8kWzU8ETOgkUZCjBdUsv2NI2zJt4IolMB12c=; b=PRhQUt329UbmdI7kEvylmJDChQBVv2RWgsm8ObkP8xhnljlt9HcjT4LEnADUugPcSY XbxlEo9f8KqUgQfP2k7GXD7v35IAzBkKVB+k07Cq2Q4gvv/Bvn/ePGPY58qlQkfcIFHh imb/h0vUEhl1MGuvPgstNK4U/erkc3MJEnGbk= 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=ABoME8P8kWzU8ETOgkUZCjBdUsv2NI2zJt4IolMB12c=; b=n9rStacP9f1EtJPHWLyD29U300k5V6HvIKW0r5jxxC/3unOZ1l2CLtGg4rjNtJc+c/ 7ek9Of36tZsKsdjeFm5P9rgFJ2V9JdVUP3kNkLDMGraBpAlvj7vVrYxo9k+6GrLOoxHT LiIPSk/p0FyFiPQkJQH/41GNA9p54Ejg+RlOlSjmCw6FVGyiTkqC0oUtVWtvr3H/Nskv OqcmTc968yvzpGbJh8lG+agCdH2ns6SlE2BHIMGSEAjv2iumTPVI7+7q2eZiez8umtUU IAE03jtC8TRO013HPcQe1RjuXetjp5xLptzJltbkVqziqfTDi1j5HnELmcbweotZCHRo eMxg== X-Gm-Message-State: ALKqPwfGVEx6+C/ZpkHaxFxSf2gCm2JD1eRgqBhGm4OHvkNTumkW+jtX LSXnpookGPmLvgP8z6Ekwn/E2g== X-Google-Smtp-Source: AB8JxZrhiJcYsNATKXfE6DCWIUyGsO9Mq59dIfdQKlSyyUHF/zw4SlxHh12vXkOGKqI6jf49Clefxw== X-Received: by 2002:a17:902:8:: with SMTP id 8-v6mr3204963pla.287.1525998068528; Thu, 10 May 2018 17:21:08 -0700 (PDT) Received: from localhost.localdomain ([45.56.152.100]) by smtp.gmail.com with ESMTPSA id h17-v6sm3335518pfn.80.2018.05.10.17.21.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 10 May 2018 17:21:07 -0700 (PDT) From: Shawn Guo To: Bjorn Helgaas Cc: linux-pci@vger.kernel.org, Shawn Guo Subject: [PATCH v2 4/9] PCI: armada8k: Drop unnecessary root_bus_nr setting Date: Fri, 11 May 2018 08:20:14 +0800 Message-Id: <1525998019-28634-5-git-send-email-shawn.guo@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1525998019-28634-1-git-send-email-shawn.guo@linaro.org> References: <1525998019-28634-1-git-send-email-shawn.guo@linaro.org> Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org Function dw_pcie_host_init() already initializes the root_bus_nr field of 'struct pcie_port', so the -1 assignment prior to calling dw_pcie_host_init() in platform specific driver is not really needed. Drop it. Signed-off-by: Shawn Guo Acked-by: Thomas Petazzoni --- drivers/pci/dwc/pcie-armada8k.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/pci/dwc/pcie-armada8k.c b/drivers/pci/dwc/pcie-armada8k.c index b587352f8b9f..2d8eb88fd4f8 100644 --- a/drivers/pci/dwc/pcie-armada8k.c +++ b/drivers/pci/dwc/pcie-armada8k.c @@ -171,7 +171,6 @@ static int armada8k_add_pcie_port(struct armada8k_pcie *pcie, struct device *dev = &pdev->dev; int ret; - pp->root_bus_nr = -1; pp->ops = &armada8k_pcie_host_ops; pp->irq = platform_get_irq(pdev, 0); From patchwork Fri May 11 00:20:15 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shawn Guo X-Patchwork-Id: 911634 X-Patchwork-Delegate: lorenzo.pieralisi@arm.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=linux-pci-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="TLFk+Qqe"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 40hrNp2tdXz9s16 for ; Fri, 11 May 2018 10:21:14 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751209AbeEKAVN (ORCPT ); Thu, 10 May 2018 20:21:13 -0400 Received: from mail-pf0-f195.google.com ([209.85.192.195]:44896 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751000AbeEKAVN (ORCPT ); Thu, 10 May 2018 20:21:13 -0400 Received: by mail-pf0-f195.google.com with SMTP id q22-v6so1840265pff.11 for ; Thu, 10 May 2018 17:21:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Zbi1w2MmxO/cThxyOtODl2zOZkgaufXV4QHXD4itBBE=; b=TLFk+QqerbbvrSota0ncK8wBvQtdpIqfgLehtaEqbZPxxGM7bhQ81bz5L7fzqA7YlW CVi7v3kb0WOmSJhy6/U5H+uK5XkjqXMQKlNf7YOznYKI7vKGvOwIbfsX5HPSHKSGAPJy WZQ1NB5+kAP39R5WPMvCK/c9XFNUOyypInRVY= 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=Zbi1w2MmxO/cThxyOtODl2zOZkgaufXV4QHXD4itBBE=; b=f51bx4s9f32yJiGUBT5bgrrugQjUvxINheqP3n+7zF5D6D8bbB9gnijx3/WNKiYQeB +dZgQlg8WjRNbVcdHXAd/kEQpOFaMM3G+NVFmOKs5JNYdt90s5Ik7rROgMDSKuOQapl1 uob2WTzN1Dn5bkeZsQP24z8Nkd3Bt3GTHV3QtqN92ZM8/M8uBaVR4Ly01glGILoPH+cr dafKqa51izUKFEKcVWUNSaAHtSdgOSooSSrCB/h7l1ChOQeiObAIwq39HE1QAh17laFH Y0VaY1XjNJohOPTLvhRREAgcaaVMy34xnEyyppsW4dD/HccjltFz4SuHxNDbuUbe6WXA XbKQ== X-Gm-Message-State: ALKqPwe1wCYWiiQ2hqhwhkWhltVjc5ynryDrbNDYKIAzURmuVmdAy9KX LAPTKxRQuIDvj1/GHfq68istrw== X-Google-Smtp-Source: AB8JxZpgr2YJly1t3JlpIk4xZWJ6jomSPGR9le4f7mllQUcxjaJ8OmRi1u8Y8txcuBmTIFh/zBfuYg== X-Received: by 2002:a62:828c:: with SMTP id w134-v6mr3266536pfd.138.1525998072695; Thu, 10 May 2018 17:21:12 -0700 (PDT) Received: from localhost.localdomain ([45.56.152.100]) by smtp.gmail.com with ESMTPSA id h17-v6sm3335518pfn.80.2018.05.10.17.21.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 10 May 2018 17:21:11 -0700 (PDT) From: Shawn Guo To: Bjorn Helgaas Cc: linux-pci@vger.kernel.org, Shawn Guo , Jesper Nilsson Subject: [PATCH v2 5/9] PCI: artpec6: Drop unnecessary root_bus_nr setting Date: Fri, 11 May 2018 08:20:15 +0800 Message-Id: <1525998019-28634-6-git-send-email-shawn.guo@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1525998019-28634-1-git-send-email-shawn.guo@linaro.org> References: <1525998019-28634-1-git-send-email-shawn.guo@linaro.org> Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org Function dw_pcie_host_init() already initializes the root_bus_nr field of 'struct pcie_port', so the -1 assignment prior to calling dw_pcie_host_init() in platform specific driver is not really needed. Drop it. Signed-off-by: Shawn Guo Cc: Jesper Nilsson --- drivers/pci/dwc/pcie-artpec6.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/pci/dwc/pcie-artpec6.c b/drivers/pci/dwc/pcie-artpec6.c index e66cede2b5b7..af78b5c23bce 100644 --- a/drivers/pci/dwc/pcie-artpec6.c +++ b/drivers/pci/dwc/pcie-artpec6.c @@ -399,7 +399,6 @@ static int artpec6_add_pcie_port(struct artpec6_pcie *artpec6_pcie, } } - pp->root_bus_nr = -1; pp->ops = &artpec6_pcie_host_ops; ret = dw_pcie_host_init(pp); From patchwork Fri May 11 00:20:16 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shawn Guo X-Patchwork-Id: 911635 X-Patchwork-Delegate: lorenzo.pieralisi@arm.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=linux-pci-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="ZHmZ75OA"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 40hrNs5Nywz9s16 for ; Fri, 11 May 2018 10:21:17 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751258AbeEKAVR (ORCPT ); Thu, 10 May 2018 20:21:17 -0400 Received: from mail-pl0-f66.google.com ([209.85.160.66]:39940 "EHLO mail-pl0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751000AbeEKAVQ (ORCPT ); Thu, 10 May 2018 20:21:16 -0400 Received: by mail-pl0-f66.google.com with SMTP id t12-v6so2237576plo.7 for ; Thu, 10 May 2018 17:21:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=nNq6W04pIPr7C2kVCqmkbDtV5GLFU5vlszbaVzu2zIQ=; b=ZHmZ75OAMJV3keW7fd+RYU6/RYiWacUPj36bPmSZ7HVLXnqEgDof05xxppK1y/fPiI Njrz55P/+AFxurZ+P/svXWNfH+/c1qTHxJ1hyamqAQtjD8QfT2qWtQaSA+dhgnjLv1Tz 4Fu71CdPDdal0bmmH0mpHo/BBn5ks2Fe8Y1bQ= 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=nNq6W04pIPr7C2kVCqmkbDtV5GLFU5vlszbaVzu2zIQ=; b=SiE4JLv43L5e+5671K696TpFsu+IyFTUKkrdXbR7jF7xByXoi0UbgK6tlAcZdMlz8T 4crL1xY+HHLC3icDeZ4G+3QzUh3oGpJkyWX6Xl1dl6H6n0LPsRDyibrdWWiCCKIkUXwi 61aM6KrvruRWHoeifVf3MBPEXbbu4C3WfIxHN62vLYiI9Nir/5TY/w1GEeE0Ah4Tpe7w PPg1SGVA9FpZBA88hmbKfjcNduoKjiHELO68tZmQbq+y3xV05lunqrwdDOwu8f47qsnQ vqzsJaAwLrplpSBIhyhLRUeFrVCVL2jI2RIkrMv7F5NAvLLFXQgVRiH+SbEUIfPObt+k JuGQ== X-Gm-Message-State: ALKqPwctnOhjDYNk7a3mEqghvn76+IZ05APXKtepJJnN7W36LxB/zubU Kmj5G/v9kAdSyhI3bcKUUt1LLg== X-Google-Smtp-Source: AB8JxZoNjn3pWg7//zSMrtTK8w2en2DYyRtv8HaD7C2nBMdgvLhG9PMPkV0L1GbYpy5M64gAA/wvLA== X-Received: by 2002:a17:902:bc88:: with SMTP id bb8-v6mr3367539plb.175.1525998076102; Thu, 10 May 2018 17:21:16 -0700 (PDT) Received: from localhost.localdomain ([45.56.152.100]) by smtp.gmail.com with ESMTPSA id h17-v6sm3335518pfn.80.2018.05.10.17.21.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 10 May 2018 17:21:14 -0700 (PDT) From: Shawn Guo To: Bjorn Helgaas Cc: linux-pci@vger.kernel.org, Shawn Guo , Joao Pinto Subject: [PATCH v2 6/9] PCI: designware-plat: Drop unnecessary root_bus_nr setting Date: Fri, 11 May 2018 08:20:16 +0800 Message-Id: <1525998019-28634-7-git-send-email-shawn.guo@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1525998019-28634-1-git-send-email-shawn.guo@linaro.org> References: <1525998019-28634-1-git-send-email-shawn.guo@linaro.org> Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org Function dw_pcie_host_init() already initializes the root_bus_nr field of 'struct pcie_port', so the -1 assignment prior to calling dw_pcie_host_init() in platform specific driver is not really needed. Drop it. Signed-off-by: Shawn Guo Cc: Joao Pinto --- drivers/pci/dwc/pcie-designware-plat.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/pci/dwc/pcie-designware-plat.c b/drivers/pci/dwc/pcie-designware-plat.c index 5416aa8a07a5..6e39afefd6db 100644 --- a/drivers/pci/dwc/pcie-designware-plat.c +++ b/drivers/pci/dwc/pcie-designware-plat.c @@ -58,7 +58,6 @@ static int dw_plat_add_pcie_port(struct pcie_port *pp, return pp->msi_irq; } - pp->root_bus_nr = -1; pp->ops = &dw_plat_pcie_host_ops; ret = dw_pcie_host_init(pp); From patchwork Fri May 11 00:20:17 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shawn Guo X-Patchwork-Id: 911636 X-Patchwork-Delegate: lorenzo.pieralisi@arm.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=linux-pci-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="MKTmlBGh"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 40hrNw5dK6z9s16 for ; Fri, 11 May 2018 10:21:20 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751263AbeEKAVU (ORCPT ); Thu, 10 May 2018 20:21:20 -0400 Received: from mail-pf0-f196.google.com ([209.85.192.196]:34625 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751000AbeEKAVT (ORCPT ); Thu, 10 May 2018 20:21:19 -0400 Received: by mail-pf0-f196.google.com with SMTP id a14-v6so1850607pfi.1 for ; Thu, 10 May 2018 17:21:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=gYngF90GbZKs/ThXSKrEYv59+uzk9oQk7drU4Qc4HMU=; b=MKTmlBGhv32ixtXHOJd9SnQSf2GU0+sWT/XW/+GclgAe/pmwCjbHZOdONb8fFkpbn3 wE330LWEfl2xpjWiE8PSGWubqiydRxetPtGAL73cnwvkOJfyuxDy/vobDzILYWo/7V2F Olng4AiIXxloHeJooNeIicsXF5cBrOFo8iy2Q= 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=gYngF90GbZKs/ThXSKrEYv59+uzk9oQk7drU4Qc4HMU=; b=Kvv820/O5IqzP+Iy4LKAtdQiCaeO2w5U3sWFfqaTakDhKJwdyl18muIJhlbdbrBdCf tPWwkEUA+RsENkUsAOAOAw1HTgWqttDWI8S58Kna3nFYbr/uaEXm0WH77ElFw1GUVPcN g4dMqSsIiAGDKErQ6ChqZ1M79BMe49/RZ3YdtFTGG6u9U36roivqIypi076gkKf4891U ELVzLN6FpINth1eAY/QcDZOA7Zbe5qcupwqpoViVcBWb2HbzVpDGiwzW/EHTiqhcbby1 sbGG1ejASBSmmhuwp/XgsyhndSDsyuiY8H45WYTN61gZ/E7Bej6cW58DSFDjU2uiHvM7 jpYQ== X-Gm-Message-State: ALKqPwfoQ197p9Jt5ddGLv5Dar92qc09yGL06EeqIauELV93PLZTDADh bowSsIbgN1aLpSY7QYopP/fRzQ== X-Google-Smtp-Source: AB8JxZowlSmtdQ3QzU29Jx9EW8Qfy/Xd2/MOqpL8PbNv9fvXkJjYTsa1OKzTpA1kP3bW33MnJpH9qw== X-Received: by 2002:a62:ba09:: with SMTP id k9-v6mr3259054pff.245.1525998079021; Thu, 10 May 2018 17:21:19 -0700 (PDT) Received: from localhost.localdomain ([45.56.152.100]) by smtp.gmail.com with ESMTPSA id h17-v6sm3335518pfn.80.2018.05.10.17.21.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 10 May 2018 17:21:17 -0700 (PDT) From: Shawn Guo To: Bjorn Helgaas Cc: linux-pci@vger.kernel.org, Shawn Guo , Jianguo Sun Subject: [PATCH v2 7/9] PCI: histb: Drop unnecessary root_bus_nr setting Date: Fri, 11 May 2018 08:20:17 +0800 Message-Id: <1525998019-28634-8-git-send-email-shawn.guo@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1525998019-28634-1-git-send-email-shawn.guo@linaro.org> References: <1525998019-28634-1-git-send-email-shawn.guo@linaro.org> Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org Function dw_pcie_host_init() already initializes the root_bus_nr field of 'struct pcie_port', so the -1 assignment prior to calling dw_pcie_host_init() in platform specific driver is not really needed. Drop it. Signed-off-by: Shawn Guo Cc: Jianguo Sun --- drivers/pci/dwc/pcie-histb.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/pci/dwc/pcie-histb.c b/drivers/pci/dwc/pcie-histb.c index 3611d6ce9a92..7b32e619b959 100644 --- a/drivers/pci/dwc/pcie-histb.c +++ b/drivers/pci/dwc/pcie-histb.c @@ -420,7 +420,6 @@ static int histb_pcie_probe(struct platform_device *pdev) phy_init(hipcie->phy); } - pp->root_bus_nr = -1; pp->ops = &histb_pcie_host_ops; platform_set_drvdata(pdev, hipcie); From patchwork Fri May 11 00:20:18 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shawn Guo X-Patchwork-Id: 911637 X-Patchwork-Delegate: lorenzo.pieralisi@arm.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=linux-pci-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="bpAq/OBF"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 40hrNz5MKDz9s16 for ; Fri, 11 May 2018 10:21:23 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751273AbeEKAVX (ORCPT ); Thu, 10 May 2018 20:21:23 -0400 Received: from mail-pg0-f68.google.com ([74.125.83.68]:36172 "EHLO mail-pg0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751000AbeEKAVW (ORCPT ); Thu, 10 May 2018 20:21:22 -0400 Received: by mail-pg0-f68.google.com with SMTP id z70-v6so1661643pgz.3 for ; Thu, 10 May 2018 17:21:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=tnwpBAZTRDdX6sI+EkES8RWZMVTyb5vkt9rnqTx0Csc=; b=bpAq/OBFiCxnzb6ZEripVxL14LdJ27/EcKtmLq53bLqxNsO8XEPFxuhbTz60rycoGd gmCkMV69zwur1dscOFSsgrPNYog2behfioCIfs8ZW4NC+JbYWssKxDp02DEkQgnGLAqS HDEkGmhi675RMHNplnLg9KwIqOWUwgscEGa8Q= 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=tnwpBAZTRDdX6sI+EkES8RWZMVTyb5vkt9rnqTx0Csc=; b=K4/PpRtgEpBXBmiAXP3z1bZj8SKMgaCoF2ms9NEJqgfPUrRtpMj7VTEzll/kb8hwP2 T16l8ETD5w70a2Rwa0ntA0lQK5iLwPUdPb8pOK80lb6XT+/tzhJGf8QylgFf+MYbYLKg sAOj3dMFRLZpaYXfcM7JYbf4/ElTFANKUrd4UytbhfTZKl3lmlFgcqS8JlSLZUcSgzQQ dbeXEeRlp16VkpmHdmskcXtKTul2XqreBU/yhOoHg9R8U3uL2Eg4lcjGGLNVwRYW8EZa 4uy4PH4uuCDI3nYoxTCdbJ7a3lMZV6V9/9vFvaaMJlaFDCGs8WUYPDWaq+LxIcdbFDvz EDBA== X-Gm-Message-State: ALKqPwdlG7jXIHxlmqFFJzORaIuBnR2mGr36Z+UfF5mYzSaY7jlsUa3W YiJHFE+8FWN7M8vwyPkvZQ0vEA== X-Google-Smtp-Source: AB8JxZpWtDlI5Qtnwul5rzXZEAh24S2mB1VY33r/dAG3E4PDnDlXw1feLaubaEYCNTSJWz5sLmBD0A== X-Received: by 2002:a62:a044:: with SMTP id r65-v6mr3186231pfe.235.1525998082105; Thu, 10 May 2018 17:21:22 -0700 (PDT) Received: from localhost.localdomain ([45.56.152.100]) by smtp.gmail.com with ESMTPSA id h17-v6sm3335518pfn.80.2018.05.10.17.21.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 10 May 2018 17:21:20 -0700 (PDT) From: Shawn Guo To: Bjorn Helgaas Cc: linux-pci@vger.kernel.org, Shawn Guo Subject: [PATCH v2 8/9] PCI: qcom: Drop unnecessary root_bus_nr setting Date: Fri, 11 May 2018 08:20:18 +0800 Message-Id: <1525998019-28634-9-git-send-email-shawn.guo@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1525998019-28634-1-git-send-email-shawn.guo@linaro.org> References: <1525998019-28634-1-git-send-email-shawn.guo@linaro.org> Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org Function dw_pcie_host_init() already initializes the root_bus_nr field of 'struct pcie_port', so the -1 assignment prior to calling dw_pcie_host_init() in platform specific driver is not really needed. Drop it. Signed-off-by: Shawn Guo Acked-by: Stanimir Varbanov --- drivers/pci/dwc/pcie-qcom.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/pci/dwc/pcie-qcom.c b/drivers/pci/dwc/pcie-qcom.c index 5897af7d3355..a32aa024e907 100644 --- a/drivers/pci/dwc/pcie-qcom.c +++ b/drivers/pci/dwc/pcie-qcom.c @@ -1247,7 +1247,6 @@ static int qcom_pcie_probe(struct platform_device *pdev) if (ret) return ret; - pp->root_bus_nr = -1; pp->ops = &qcom_pcie_dw_ops; if (IS_ENABLED(CONFIG_PCI_MSI)) { From patchwork Fri May 11 00:20:19 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shawn Guo X-Patchwork-Id: 911638 X-Patchwork-Delegate: lorenzo.pieralisi@arm.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=linux-pci-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="DauN+Bdr"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 40hrP32lQ8z9s16 for ; Fri, 11 May 2018 10:21:27 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751333AbeEKAV0 (ORCPT ); Thu, 10 May 2018 20:21:26 -0400 Received: from mail-pg0-f68.google.com ([74.125.83.68]:35424 "EHLO mail-pg0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751000AbeEKAV0 (ORCPT ); Thu, 10 May 2018 20:21:26 -0400 Received: by mail-pg0-f68.google.com with SMTP id n1-v6so1662490pgs.2 for ; Thu, 10 May 2018 17:21:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=pzQ6BW41lmFzJJ5SPgiz9By2etsBFlp9KtoPL2v2POo=; b=DauN+Bdr+Ov8IFaxYBLkw25Aji4GfqBSYsghg2jNTDX4x20q9/j2+WTeVKIwmUcj4T 4jSY/n9SAJXCI4WCQkuVQeRvVvY6kdp5VVRfdIhf/WRLLr2SfdGyMwXEOTpkzoPIcT/j 8hg13HAPsaQQeS/lAwHj0bWbQ3Vgu6irzvZcQ= 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=pzQ6BW41lmFzJJ5SPgiz9By2etsBFlp9KtoPL2v2POo=; b=fao8cTzjg7irFnErCR92oTiKSnIx+3XteEXcquBVHG4UjLREw8TG8YbeceW/K+SW3K wxs3KoPz3Tocl8PSGozLNsrrz7oLsmdftOEYLXsan3jmtaS7paoWL9w3ffNpXx3jQeEf pzwKltJeHLYfdB6YqWKMpO4p4P//rJ1ifc3tvQSYu4lxSAAzGGLyK+Ug1DL1K7pYkn9X 1N3NhFBJiuDbfPsNslW/m1WElZVvES98GrhmknaMGUJ4fh1Em1mKcv6wG/pRCahZx2fF DZTj1TEdW4wyhLsEZArbhMIateF836knvEF9vDB7JXdo8Vta4aEFPxcoetmNfWEiAtHB Y9Ww== X-Gm-Message-State: ALKqPwfa3/+SYM6OhyAA3vjuxt3mv6+Xa8ziuS7STimT8v4/Z3Vay1Ya iC8Evc+h3PNVPIcqcUnryF5Iwg== X-Google-Smtp-Source: AB8JxZo4YhANi+F3ITkp3PIxCuitqoxw1HtN6Ll1WxJGCV18wt4+o7Nas0ePu8Hv+O7f2yo+6AzCXw== X-Received: by 2002:a63:6f82:: with SMTP id k124-v6mr2595008pgc.301.1525998085609; Thu, 10 May 2018 17:21:25 -0700 (PDT) Received: from localhost.localdomain ([45.56.152.100]) by smtp.gmail.com with ESMTPSA id h17-v6sm3335518pfn.80.2018.05.10.17.21.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 10 May 2018 17:21:24 -0700 (PDT) From: Shawn Guo To: Bjorn Helgaas Cc: linux-pci@vger.kernel.org, Shawn Guo , Pratyush Anand Subject: [PATCH v2 9/9] PCI: spear13xx: Drop unnecessary root_bus_nr setting Date: Fri, 11 May 2018 08:20:19 +0800 Message-Id: <1525998019-28634-10-git-send-email-shawn.guo@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1525998019-28634-1-git-send-email-shawn.guo@linaro.org> References: <1525998019-28634-1-git-send-email-shawn.guo@linaro.org> Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org Function dw_pcie_host_init() already initializes the root_bus_nr field of 'struct pcie_port', so the -1 assignment prior to calling dw_pcie_host_init() in platform specific driver is not really needed. Drop it. Signed-off-by: Shawn Guo Cc: Pratyush Anand Acked-by: Pratyush Anand --- drivers/pci/dwc/pcie-spear13xx.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/pci/dwc/pcie-spear13xx.c b/drivers/pci/dwc/pcie-spear13xx.c index ecb58f7b7566..7d0cdfd8138b 100644 --- a/drivers/pci/dwc/pcie-spear13xx.c +++ b/drivers/pci/dwc/pcie-spear13xx.c @@ -210,7 +210,6 @@ static int spear13xx_add_pcie_port(struct spear13xx_pcie *spear13xx_pcie, return ret; } - pp->root_bus_nr = -1; pp->ops = &spear13xx_pcie_host_ops; ret = dw_pcie_host_init(pp);