From patchwork Wed May 9 05:39:38 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shawn Guo X-Patchwork-Id: 910645 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="UTn4JCqL"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 40glcB3JZbz9s1w for ; Wed, 9 May 2018 15:42:18 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752478AbeEIFmR (ORCPT ); Wed, 9 May 2018 01:42:17 -0400 Received: from mail-pg0-f65.google.com ([74.125.83.65]:33547 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750903AbeEIFmQ (ORCPT ); Wed, 9 May 2018 01:42:16 -0400 Received: by mail-pg0-f65.google.com with SMTP id i194-v6so22170260pgd.0 for ; Tue, 08 May 2018 22:42: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; bh=jG58JYh94EV7odN6cLb1ez3Cc2B0Tyxtc88bu17Zi+c=; b=UTn4JCqL4DEd9VcNv9dUsZmOlvpuhZkzu15492h4fLoArLRRYMFqLbvVn5Y5xFALv2 iJ2Kck/yA5TO8/rgGCstgbpsM+5hSe83QZw8t3bXTzn6ODfWT+07WXaf2r3pSBXw4zOJ LZCkqqmc+ZIdbIxqHaXC/oDeqqJPRxYSWicRc= 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; bh=jG58JYh94EV7odN6cLb1ez3Cc2B0Tyxtc88bu17Zi+c=; b=p/B8aIw/rmqW+o7X1hBnbbSjiCa9ITzTqzATZLjrQUVHtjFQbJEVuYTyNirsw3AWaF EkkHktTGherwxPheZDrblPYf4+D91ZUY6cjEJS3x3rPPON42dNcUYBFWnhXY9kPZWCUM mIAfV44P9aOdj2EX0vjVhZ2ZFwSDV5je6eB0zNHrC3QlyEM2v28xc29j6O2PKN+xHut6 nlqzq1rX3SeNVi47FDiSatviEySx1vDHfxzbNaWnp0YIaPxnOkKRfkcyKQy0K8CbaQMu gTap8/g/Eq0mzV/5NSoCrwGr6e4/cD+0NrU7fZMlM+wl7bCbfGyZscLEnhSrGDS4YWIR P0tg== X-Gm-Message-State: ALKqPweZu6k1qm6k+1F061D2Vdu73SzvJHxD8tmLJjPwczgt6hwT/tmi CgsEEsrQL/p9DDLo/POsY6p4Mw== X-Google-Smtp-Source: AB8JxZqQxHbxKIrl6v1TKoZG6dWDFmmTntDz9FUM49PUWzesCZrtvcEfr8GaBxV20ko2vtx6rMRU3g== X-Received: by 2002:a63:9e53:: with SMTP id r19-v6mr2380033pgo.50.1525844535942; Tue, 08 May 2018 22:42:15 -0700 (PDT) Received: from localhost.localdomain ([45.56.152.77]) by smtp.gmail.com with ESMTPSA id z13sm64585951pfk.156.2018.05.08.22.42.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 08 May 2018 22:42:14 -0700 (PDT) From: Shawn Guo To: Bjorn Helgaas Cc: linux-pci@vger.kernel.org, Shawn Guo , Jingoo Han Subject: [PATCH 1/9] PCI: exynos: Drop unnecessary root_bus_nr setting Date: Wed, 9 May 2018 13:39:38 +0800 Message-Id: <1525844386-5433-1-git-send-email-shawn.guo@linaro.org> X-Mailer: git-send-email 1.9.1 Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org The root_bus_nr initialization has already been done in function dw_pcie_host_init(). The -1 assignment in platform driver before calling into dw_pcie_host_init() 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 Wed May 9 05:39:39 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shawn Guo X-Patchwork-Id: 910646 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="RB263P8l"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 40glcF0W5Kz9s1w for ; Wed, 9 May 2018 15:42:21 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751397AbeEIFmU (ORCPT ); Wed, 9 May 2018 01:42:20 -0400 Received: from mail-pl0-f68.google.com ([209.85.160.68]:33195 "EHLO mail-pl0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750903AbeEIFmT (ORCPT ); Wed, 9 May 2018 01:42:19 -0400 Received: by mail-pl0-f68.google.com with SMTP id n10-v6so532596plp.0 for ; Tue, 08 May 2018 22:42: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=sFGpsy6UTm/d4Za093emxYJEwzCl25vVelI3Wfa4DuM=; b=RB263P8lXeUV/fnqBK+tn6c47DVdZ3mvy5D8xMWcG/JCGoONBGJgTREI4/p2QYhTGJ Mn2V8GMwnGgZhxzY/IaLf3g2x2PPQY5ClKS7gQvXLrgGAxey7TZm0jHULZ/oCfkv06bH HHUHUZACvbEiBXXtVzPsXQJRLNbLGjYWMioyM= 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=sFGpsy6UTm/d4Za093emxYJEwzCl25vVelI3Wfa4DuM=; b=S6l6KoSvEKrn6hvbYmIFsodwejnIIlGKXSx8XsD77MjPIw6FqdToAq5e4CU2qggl1H PTMYgR60QFh9QyWMd9RB97IBhCLu2bGzFhUnPKU2STO8sC3wRlxqK9fK4KNvt4oIaMu+ 6/aT687ekLmTgTTKzgLO8JXwPdxQtwdMx+Z23tIwzwvj5+sTg3Kp5aVBNNmFjNpR9Dq2 EWTCypqemkXbwP6LN+VY67ZeVGd6zRhAn7fTgQfU0pq35fM8+Y15UZXINndK2/brZm0v 99iTd9xmTWOXxRB2+asdVebcFBTTCPoTLzxGqSP0ANm9MIaTfEC/cuhwZnhB6s7YxJQh E6IQ== X-Gm-Message-State: ALQs6tC1GnJE2/b9G42WHFLWLUYy/Jlf2XY7G7Ny/zt6hS3C3I0Gnx3M WWuChagBnb4DBNeU7PjfZyHChg== X-Google-Smtp-Source: AB8JxZp8I3Vk6pfIqWlVD0WRe1juavfUtvRhxpECNQlpIj76t0iEvOcYLAD1S5foGfKW2HAVqwFFXw== X-Received: by 2002:a17:902:8f97:: with SMTP id z23-v6mr21327785plo.329.1525844539375; Tue, 08 May 2018 22:42:19 -0700 (PDT) Received: from localhost.localdomain ([45.56.152.77]) by smtp.gmail.com with ESMTPSA id z13sm64585951pfk.156.2018.05.08.22.42.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 08 May 2018 22:42:18 -0700 (PDT) From: Shawn Guo To: Bjorn Helgaas Cc: linux-pci@vger.kernel.org, Shawn Guo , Richard Zhu , Lucas Stach Subject: [PATCH 2/9] PCI: imx6: Drop unnecessary root_bus_nr setting Date: Wed, 9 May 2018 13:39:39 +0800 Message-Id: <1525844386-5433-2-git-send-email-shawn.guo@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1525844386-5433-1-git-send-email-shawn.guo@linaro.org> References: <1525844386-5433-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 The root_bus_nr initialization has already been done in function dw_pcie_host_init(). The -1 assignment in platform driver before calling into dw_pcie_host_init() 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 Wed May 9 05:39:40 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shawn Guo X-Patchwork-Id: 910647 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="CMfqSzDX"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 40glcJ3JQFz9s1w for ; Wed, 9 May 2018 15:42:24 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751364AbeEIFmX (ORCPT ); Wed, 9 May 2018 01:42:23 -0400 Received: from mail-pf0-f196.google.com ([209.85.192.196]:35608 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750903AbeEIFmX (ORCPT ); Wed, 9 May 2018 01:42:23 -0400 Received: by mail-pf0-f196.google.com with SMTP id x9so5916760pfm.2 for ; Tue, 08 May 2018 22:42: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=7Gzy065yJ02bBdodsEiBmncFRo0z2OwtH5eztDiqTI4=; b=CMfqSzDXZheG06RPG9AwMrhUoaX0neaYqv4W0FjJoz4AO5m2V4q1HS+LsZWBfmxTEz g9rqH5dOsnltpT7WaxhkiXwuIGDC4RrCS4jaR32CU2IU2Ey+e1bNs46CQAqFAlDCb7mQ 1SBZMznzCXW7n33TejS5hlTiA1lN0O7KsH3O0= 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=7Gzy065yJ02bBdodsEiBmncFRo0z2OwtH5eztDiqTI4=; b=B0Dc8sv+wpZe2D+x8hy84VpcFsoSj8cOsAjN42Y61Layxzqa6SgYB8uk2G+8J09gkF 54/wQGXF8NH4kQIrOfdgWzoK+Jn44TmA/bs+oqtS79v9d8cxEikyZ3pdvXTfY//TVucK vOlZ9qeJd6gqC4v+anzIu1q5vPOEKaF68fdbTcoEGJZdMl38u+K7VA69Uw4rQbGAYbw4 mEUrmIO/PyY37/yJNkYyzExeJh9AKSYQYLe1NeOzNQo2VfgN4sZqvCjPPFe/QGdrfuhS qYKyz7aTx+P7H5tD+5N+zyorRlQy3Xc1noL1eYv0z/wFHb10CAe4YuHRl+zqdNCOKVil jiTQ== X-Gm-Message-State: ALQs6tB9pTwsJAUW8+dZ8Eo0lRLctYNAMDiDF4/mwom2Vui1dxy5Kc2v 23PIS7MbGoypZsWLG75pzAg4pQ== X-Google-Smtp-Source: AB8JxZoc8rq9g66vLi2R4QIc3v900Rwt+mExgk4yCoORRzK0NaIZY2qOTTFocJSNdVADC0zkM6OL6g== X-Received: by 10.98.254.14 with SMTP id z14mr13377827pfh.73.1525844542716; Tue, 08 May 2018 22:42:22 -0700 (PDT) Received: from localhost.localdomain ([45.56.152.77]) by smtp.gmail.com with ESMTPSA id z13sm64585951pfk.156.2018.05.08.22.42.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 08 May 2018 22:42:21 -0700 (PDT) From: Shawn Guo To: Bjorn Helgaas Cc: linux-pci@vger.kernel.org, Shawn Guo , Murali Karicheri Subject: [PATCH 3/9] PCI: keystone: Drop unnecessary root_bus_nr setting Date: Wed, 9 May 2018 13:39:40 +0800 Message-Id: <1525844386-5433-3-git-send-email-shawn.guo@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1525844386-5433-1-git-send-email-shawn.guo@linaro.org> References: <1525844386-5433-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 The root_bus_nr initialization has already been done in function dw_pcie_host_init(). The -1 assignment in platform driver before calling into dw_pcie_host_init() 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 Wed May 9 05:39:41 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shawn Guo X-Patchwork-Id: 910648 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="S87KnjRa"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 40glcM51jFz9s1w for ; Wed, 9 May 2018 15:42:27 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752605AbeEIFm0 (ORCPT ); Wed, 9 May 2018 01:42:26 -0400 Received: from mail-pf0-f195.google.com ([209.85.192.195]:41944 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750903AbeEIFm0 (ORCPT ); Wed, 9 May 2018 01:42:26 -0400 Received: by mail-pf0-f195.google.com with SMTP id v63so25063308pfk.8 for ; Tue, 08 May 2018 22:42:26 -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=ffs8TOlcfgicJNSsD93v0IbpCOX+gDlvd88ja61pPN8=; b=S87KnjRaQRjAZlpMaqjYgJPy8lLRiaATZcL4x7M9xcddX+rNn7DPLGgQqCmmzKfoJZ Y6WeU6/9AcarfqSKhQEFYhx7r2OsqmuvJZLuQVsqE0fTzDhtBan/NH4jvrqkgo9Prtng e3mblGZ++Q6J5W+tGsObTUcRE/pmKhqTdfwJg= 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=ffs8TOlcfgicJNSsD93v0IbpCOX+gDlvd88ja61pPN8=; b=blutsSwyAJNx5uFvqRyc1eAQjB/ybbBkb1xkjRlnaPHj/nqNqWKxroDqogjCYhOpmC +pZ3B1x87ASSDs3rhEjA8fkK33H3VFnMMkxSUuHJtzmEpjDJlelEuPqyEuINR39L+UH/ LnO/t4u11DMuIJATdXsQ58f00/mjl1l8pGUtBiXAMJSiA6DEK6t9Wg7T6vyZqW0T66fe gN42yaWb9gPsK9312omoCMRNou4yeuncw1VrB+bmn6f0f3L5WLQRm2RlckYVHLqCWLOl 1C77vTjdVdmo/UoUmQUWMKdvrfQiWA7MIAnr+RvxwRkdPldut0XMibGSINbIlPAG+Ldv LkFQ== X-Gm-Message-State: ALQs6tAECCD/9nFQQSZ1XFj9LYARplqXt2GwITKMoSJGh1fNeKSUTM2c 8CIEAIArrgV1gE2QQvznH8Df2Q== X-Google-Smtp-Source: AB8JxZrgfGLZxOr5R7Il8e6RzlB6ziTDYAhY2DdzIUh3lqDe3yNQY5PDMnb71jEdTM4iM0TORN0eUg== X-Received: by 2002:a63:6185:: with SMTP id v127-v6mr34560519pgb.441.1525844546027; Tue, 08 May 2018 22:42:26 -0700 (PDT) Received: from localhost.localdomain ([45.56.152.77]) by smtp.gmail.com with ESMTPSA id z13sm64585951pfk.156.2018.05.08.22.42.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 08 May 2018 22:42:24 -0700 (PDT) From: Shawn Guo To: Bjorn Helgaas Cc: linux-pci@vger.kernel.org, Shawn Guo , Thomas Petazzoni Subject: [PATCH 4/9] PCI: armada8k: Drop unnecessary root_bus_nr setting Date: Wed, 9 May 2018 13:39:41 +0800 Message-Id: <1525844386-5433-4-git-send-email-shawn.guo@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1525844386-5433-1-git-send-email-shawn.guo@linaro.org> References: <1525844386-5433-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 The root_bus_nr initialization has already been done in function dw_pcie_host_init(). The -1 assignment in platform driver before calling into dw_pcie_host_init() is not really needed. Drop it. Signed-off-by: Shawn Guo Cc: Thomas Petazzoni 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 Wed May 9 05:39:42 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shawn Guo X-Patchwork-Id: 910649 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="XJK8jrKJ"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 40glcQ3sDxz9s1w for ; Wed, 9 May 2018 15:42:30 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752679AbeEIFm3 (ORCPT ); Wed, 9 May 2018 01:42:29 -0400 Received: from mail-pl0-f68.google.com ([209.85.160.68]:35085 "EHLO mail-pl0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750903AbeEIFm3 (ORCPT ); Wed, 9 May 2018 01:42:29 -0400 Received: by mail-pl0-f68.google.com with SMTP id i5-v6so3625738plt.2 for ; Tue, 08 May 2018 22:42:29 -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=NzOE+gKkRUbCOF0uvC4Tbpz9bUENOhiXgoSBIQ42H5M=; b=XJK8jrKJIpIZD6wV3oL3w8h+DmDZttYFLqZDj2kw7daS3F3g2nUF0rgorKA75LYA6w 312IW8IRsygs5J1X6lic+podufXhx9aVYD7Wf7AKnje+148fzne4KNkqwm3hf1177/fn 4ku1LKoNkDBJFIfUeMRZsQLoifnAYJcIEfXSs= 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=NzOE+gKkRUbCOF0uvC4Tbpz9bUENOhiXgoSBIQ42H5M=; b=G6NbnMDn5cgQ+P1MRsl5AsawzDFqywL4kWqOacZAPMO4fKmDGI6mKJewnrvNW192LG xeEHJYMLFXtAlulPa2Cr4F5hSAR2m5mciF8TLahev9CGPYWAOJQUgqokvpJZ6S8LdV7r D5hQnji4TpaXp1jhAWUt8RIVLCB2RTXH4Vwv1gs69bvQ+0Nwltexl9fVNY1eZ6W+zX/E Ub7I8pJoDLyPEQx2zVYdvN/ntEQ1Asap0x01DWYwgkrmWektyjrnKdRswHPOzSp/+JoV eRMCoJMWZGdigQrSjj/LUP+lZ41qSs1QtWhbnCen2qfALiuhRiGzVbMdgc6pDQQFQ4bi jekw== X-Gm-Message-State: ALQs6tBeFRSkJHsl3DZJ8f17/WWhmB5jm9d3cPEFOvpMIN7h0eZY9ooK vipDPwuMTq1+fyp7PTLiWK+Jmg== X-Google-Smtp-Source: AB8JxZqkK1Iy47aQjs4SHL3ITdl7ZzM5svm0aRYQ0Efu/UTSf7L84yViBEFXOZRcTNHqeIeWHZfPkQ== X-Received: by 2002:a17:902:20eb:: with SMTP id v40-v6mr43960825plg.277.1525844548849; Tue, 08 May 2018 22:42:28 -0700 (PDT) Received: from localhost.localdomain ([45.56.152.77]) by smtp.gmail.com with ESMTPSA id z13sm64585951pfk.156.2018.05.08.22.42.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 08 May 2018 22:42:27 -0700 (PDT) From: Shawn Guo To: Bjorn Helgaas Cc: linux-pci@vger.kernel.org, Shawn Guo , Jesper Nilsson Subject: [PATCH 5/9] PCI: artpec6: Drop unnecessary root_bus_nr setting Date: Wed, 9 May 2018 13:39:42 +0800 Message-Id: <1525844386-5433-5-git-send-email-shawn.guo@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1525844386-5433-1-git-send-email-shawn.guo@linaro.org> References: <1525844386-5433-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 The root_bus_nr initialization has already been done in function dw_pcie_host_init(). The -1 assignment in platform driver before calling into dw_pcie_host_init() 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 Wed May 9 05:39:43 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shawn Guo X-Patchwork-Id: 910650 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="LZDBq6gA"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 40glcV1Ncnz9s1w for ; Wed, 9 May 2018 15:42:34 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752802AbeEIFmd (ORCPT ); Wed, 9 May 2018 01:42:33 -0400 Received: from mail-pg0-f65.google.com ([74.125.83.65]:42786 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750903AbeEIFmc (ORCPT ); Wed, 9 May 2018 01:42:32 -0400 Received: by mail-pg0-f65.google.com with SMTP id p9-v6so19262531pgc.9 for ; Tue, 08 May 2018 22:42:32 -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=O+2yXGSLdJZKfxT058g83rS3E2i5kTUhU0TYlLUH1Rs=; b=LZDBq6gAC5kdmDGuY4jMqtt6gGTCAy8H0FZcgeiO2OiREEid1OMebKEqlt21LMHNTu JAV9vpvqUX5e2hLl2BJz+qliiZuflqjkErZWDNhSNxJAYv0Xro/kLp0f7sl17g7o2ttX 2eXM8Dpdf3vSz2PjEkhCGb4+5UYf3jMemOcro= 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=O+2yXGSLdJZKfxT058g83rS3E2i5kTUhU0TYlLUH1Rs=; b=BedLz6q/vlzGDHVGbJcWsmebDOwBjRqcRz8ifrTcNq1xSPkEGcY7Ok3Ro5IZP4jiR/ J0QdH2sneogqJpPM6ILspc0NTKKyliy7bxy56sjnFwfBcNGVvGSxEA3wwx97xMsqLuL4 lAxdHSVM6+IhGMdwps2nCxeqvZ/W2Yh+zoikPT8A5iDbPsYM107MIDNrLUPlk7yz7ecl vhvoEd3p5kSFVyrxW5abF5+kNX4fSLFrdhZfjb5/iFFb+N6KJ7GAiOyg+3YglAmH1SFY ShTPy3GYbxTYSIXl1fENhFuIk+KpPrBIpwpL8g/DxOleyPKryVlRqp3eTRpkonV6IHq4 JkPA== X-Gm-Message-State: ALKqPwcmVvdrT9tIsxfrWeQeYj9jAkEIXZUR8vbfl3kxX5snAOA6+77K mYRPu9KIRZLyJM85xaKv+GaAbw== X-Google-Smtp-Source: AB8JxZqHmmDbNpdEzRLKSiGRdATraWVx5m2in+fbqi5SqLY2zK2uVdWshBiMhqWQWp7cKDDbaJs8wA== X-Received: by 2002:a63:924c:: with SMTP id s12-v6mr1848819pgn.368.1525844552475; Tue, 08 May 2018 22:42:32 -0700 (PDT) Received: from localhost.localdomain ([45.56.152.77]) by smtp.gmail.com with ESMTPSA id z13sm64585951pfk.156.2018.05.08.22.42.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 08 May 2018 22:42:31 -0700 (PDT) From: Shawn Guo To: Bjorn Helgaas Cc: linux-pci@vger.kernel.org, Shawn Guo , Joao Pinto Subject: [PATCH 6/9] PCI: designware-plat: Drop unnecessary root_bus_nr setting Date: Wed, 9 May 2018 13:39:43 +0800 Message-Id: <1525844386-5433-6-git-send-email-shawn.guo@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1525844386-5433-1-git-send-email-shawn.guo@linaro.org> References: <1525844386-5433-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 The root_bus_nr initialization has already been done in function dw_pcie_host_init(). The -1 assignment in platform driver before calling into dw_pcie_host_init() 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 Wed May 9 05:39:44 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shawn Guo X-Patchwork-Id: 910651 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="a2yQbVMR"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 40glcY2HYbz9s1w for ; Wed, 9 May 2018 15:42:37 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752907AbeEIFmg (ORCPT ); Wed, 9 May 2018 01:42:36 -0400 Received: from mail-pf0-f195.google.com ([209.85.192.195]:40433 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750903AbeEIFmg (ORCPT ); Wed, 9 May 2018 01:42:36 -0400 Received: by mail-pf0-f195.google.com with SMTP id f189so25061943pfa.7 for ; Tue, 08 May 2018 22:42:35 -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=sV+EbECabVB4hAV24O7X0YJY8k0U5zNkdvgQQ0HaixA=; b=a2yQbVMRLZ7dI8ouPoeQX2k0fEeVq5plJd40Zzm3tmYbBeYn0CaPCO0+DeyDScTVww YU+XpQvOy511Ajr4hBH0SEKV9u19ZLbxsPwv+YktLKeICmjICtIOL+MxWraAMJG8BVKn weTKUvDwbrZoDbHZ4wZThmxdkX5VR5U2nGP3E= 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=sV+EbECabVB4hAV24O7X0YJY8k0U5zNkdvgQQ0HaixA=; b=egoq5aXC/ozns7l8rKpSStNVQfvqhO39qf3jRt0elC2df1HuJFu9eGzklx9ncqJzfa Q4oZDd6WEY9ElxXnd1Mzgc68dYi4OlmhDqvMafkIDtf1XzoIC8AG3ZEJN3J7if1T51wW F8wgH1FNM43J2grRIeZm5vgBmMm9KWMVp6kvF+GcavHSL+/p9tbrl0dg6hxbdxHE53xe oeRdO1oAUpaVShgccQfsH2aB4OoTWSkFJA8U3a/MzAZU/nfiM0V7RHTz+/ubhnTSbJ3t A67QJRQtMre19fhWCglGmq9CrVRe851h6djpBJJYjCICBbzwou7eXOwd+Uev7yrC0WT0 f5cA== X-Gm-Message-State: ALKqPweiqK0YPwHM/nUfBLGZ8aEIt4swqb3H22XOCZSMHWYENl+y5vrx Ch0pfJGOahw2zy7ce3YQuxiW7M5VBVE= X-Google-Smtp-Source: AB8JxZobTd5/wAqMH198CEO96owBWAquKa+i93k02oBrHx0+Dnqf4W0FlN/72iR9VOkbt72s4FXU9w== X-Received: by 2002:a63:9e53:: with SMTP id r19-v6mr2380672pgo.50.1525844555678; Tue, 08 May 2018 22:42:35 -0700 (PDT) Received: from localhost.localdomain ([45.56.152.77]) by smtp.gmail.com with ESMTPSA id z13sm64585951pfk.156.2018.05.08.22.42.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 08 May 2018 22:42:34 -0700 (PDT) From: Shawn Guo To: Bjorn Helgaas Cc: linux-pci@vger.kernel.org, Shawn Guo , Jianguo Sun Subject: [PATCH 7/9] PCI: histb: Drop unnecessary root_bus_nr setting Date: Wed, 9 May 2018 13:39:44 +0800 Message-Id: <1525844386-5433-7-git-send-email-shawn.guo@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1525844386-5433-1-git-send-email-shawn.guo@linaro.org> References: <1525844386-5433-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 The root_bus_nr initialization has already been done in function dw_pcie_host_init(). The -1 assignment in platform driver before calling into dw_pcie_host_init() 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 Wed May 9 05:39:45 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shawn Guo X-Patchwork-Id: 910652 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="KMhSfHBB"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 40glcc4WL5z9s3q for ; Wed, 9 May 2018 15:42:40 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753032AbeEIFmj (ORCPT ); Wed, 9 May 2018 01:42:39 -0400 Received: from mail-pf0-f195.google.com ([209.85.192.195]:36165 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751198AbeEIFmj (ORCPT ); Wed, 9 May 2018 01:42:39 -0400 Received: by mail-pf0-f195.google.com with SMTP id w129so19650607pfd.3 for ; Tue, 08 May 2018 22:42:39 -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=4l//8m9C9KGIAOeq4mhWSz6Y7FrBGYw3iAVvfyvaDew=; b=KMhSfHBBaN9yH8J1FOeRrWauxM2TYvPnW0E5C7aHQLVbxG4g9QocH0w6mFIF7ZnDmR s3wctX1MLH53IibOGP4oyuXVP9AW5kPLJmV74K/UON1PD3R7szpEd1hN12HzRzLxqPdt Nx7jZBvTOzLfeYzxIyTL77sRWwsEKhZJMuA90= 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=4l//8m9C9KGIAOeq4mhWSz6Y7FrBGYw3iAVvfyvaDew=; b=IDS55OxCF/sAXb72pGOULHPI5fKQf9AwTyXJ5xPBHbV15Jrv1yGeQ7hzYJ++QvW9jX 8IoXFM7tpQX/cQgJEig4o2khcZQzM+ICX/C9hsA8jc4zHLgkOEc5pLQzDLSl7ricwugF 8rZvwTUnVVLWSM3A7HvYcs9FIYMzozWc3VAVb0dHLmw2HNWRcdVi49QWuKMqn6lfN99B NPmia49tAPr4YG1FJy65njtky4MZd+2ZpOI91OmD/ysNRIREi/pOE1LEU4PfFn2iu6VU Ee1Hoa13kz5d8Ni7Prba05S+WDN5HN0BpYTQPtBwk82mPX8YrorGqf8wQ7PzL64Vpfy5 ZlDA== X-Gm-Message-State: ALQs6tBhzACiWMDBKiCzn6FR2qmRbtWjXLiFAALdc3TVTUxCO6x4MfD8 oqKHfHIzz2Ctv/HMlHLFIKbDaHsAnUk= X-Google-Smtp-Source: AB8JxZqEdK5VxCYm2VOJD2/pZkipLOYYxfwcko+mP/rVynDhHULKaS8HfZfbBLc0jWRZPjV1k0anjg== X-Received: by 2002:a65:5d51:: with SMTP id e17-v6mr34727119pgt.100.1525844558946; Tue, 08 May 2018 22:42:38 -0700 (PDT) Received: from localhost.localdomain ([45.56.152.77]) by smtp.gmail.com with ESMTPSA id z13sm64585951pfk.156.2018.05.08.22.42.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 08 May 2018 22:42:37 -0700 (PDT) From: Shawn Guo To: Bjorn Helgaas Cc: linux-pci@vger.kernel.org, Shawn Guo , Stanimir Varbanov Subject: [PATCH 8/9] PCI: qcom: Drop unnecessary root_bus_nr setting Date: Wed, 9 May 2018 13:39:45 +0800 Message-Id: <1525844386-5433-8-git-send-email-shawn.guo@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1525844386-5433-1-git-send-email-shawn.guo@linaro.org> References: <1525844386-5433-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 The root_bus_nr initialization has already been done in function dw_pcie_host_init(). The -1 assignment in platform driver before calling into dw_pcie_host_init() is not really needed. Drop it. Signed-off-by: Shawn Guo Cc: Stanimir Varbanov 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 Wed May 9 05:39:46 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shawn Guo X-Patchwork-Id: 910653 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="WQD2ajI4"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 40glch3rg5z9s1w for ; Wed, 9 May 2018 15:42:44 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753148AbeEIFmn (ORCPT ); Wed, 9 May 2018 01:42:43 -0400 Received: from mail-pl0-f68.google.com ([209.85.160.68]:39979 "EHLO mail-pl0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753107AbeEIFmn (ORCPT ); Wed, 9 May 2018 01:42:43 -0400 Received: by mail-pl0-f68.google.com with SMTP id t22-v6so3627903plo.7 for ; Tue, 08 May 2018 22:42:43 -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=zRpnYFgY0s3uLb2hrKCo8+BYlbodlnVONhjxEzQrlGo=; b=WQD2ajI4YjE5WevTdJlop3Fq2sezojsdgIAXw+0izBxOX8CqgiBnOqs+FK9B/V2Fkm F1QeDK7eUZY5/HU29vtqxVF+s5y5ni8+d0+LZPHjjMgW5KzzAO4s1AP+KGtDTj9/YujQ GMZh/q2x+SE6mS1/JHdO61meR2kb47cIm9A3M= 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=zRpnYFgY0s3uLb2hrKCo8+BYlbodlnVONhjxEzQrlGo=; b=QJc/1WyycM3FxvfIGbkNfU0L0XGcSHHjivHSm+QXkmDoYjr3CxUK5S0eBvUyGqQa0/ KaePDFiwyYjw6pye8KduAleWcRMlKBOMrlkQqEL5djGYYlkNA5sZr/VCe5T9j1Mix71j Gp15O02KO/hteIdh3ty3GuGSXxAAqrx6MJwR6PaE3s/wDoy62TcvaUDSgLoqrGvwwtDz 4iCdc0AMjgVB4RDXFsEF6HIWf/tJQBaYIK2WqmRRGIa8QPm6yZ/4mdamOlTV9I4y/4sC bPGTwlM/lGnprZ6iqPLb0h9jqjEFCv+vs2Im9i3PGMpjFuDb59/D/vxN350+/LXpFqUZ OSOQ== X-Gm-Message-State: ALQs6tB/Bl2xO1AXHtqy5vfPp9Dr38B3Wg7/sHabJDvSqXUn3FvCEshF nHVNowEkJSnjwggQ2tfOMkJTKQ== X-Google-Smtp-Source: AB8JxZo8/yTmwgz2oAbJS223ldvt6a/Lwhe/zQD0NI/M8eZ8r3zIIivO2yE/28yNaSq9WYQ0UxaIzw== X-Received: by 2002:a17:902:8f97:: with SMTP id z23-v6mr21328767plo.329.1525844562769; Tue, 08 May 2018 22:42:42 -0700 (PDT) Received: from localhost.localdomain ([45.56.152.77]) by smtp.gmail.com with ESMTPSA id z13sm64585951pfk.156.2018.05.08.22.42.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 08 May 2018 22:42:41 -0700 (PDT) From: Shawn Guo To: Bjorn Helgaas Cc: linux-pci@vger.kernel.org, Shawn Guo , Pratyush Anand Subject: [PATCH 9/9] PCI: spear13xx: Drop unnecessary root_bus_nr setting Date: Wed, 9 May 2018 13:39:46 +0800 Message-Id: <1525844386-5433-9-git-send-email-shawn.guo@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1525844386-5433-1-git-send-email-shawn.guo@linaro.org> References: <1525844386-5433-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 The root_bus_nr initialization has already been done in function dw_pcie_host_init(). The -1 assignment in platform driver before calling into dw_pcie_host_init() is not really needed. Drop it. Signed-off-by: Shawn Guo Cc: 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);