From patchwork Sun Jul 1 03:54: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: 937495 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="dgOJB0h1"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 41JGkB2pDBz9s1B for ; Sun, 1 Jul 2018 13:55:14 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752185AbeGADzN (ORCPT ); Sat, 30 Jun 2018 23:55:13 -0400 Received: from mail-pf0-f195.google.com ([209.85.192.195]:36303 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752181AbeGADzM (ORCPT ); Sat, 30 Jun 2018 23:55:12 -0400 Received: by mail-pf0-f195.google.com with SMTP id u16-v6so5960727pfh.3 for ; Sat, 30 Jun 2018 20:55: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=w7vl3ObFMJ7/qnFRgsWtSWHUmSvQZ7El0LqSgR2rnW0=; b=dgOJB0h11tRSeijKDnHPPc8jzq0zeHeSFH7gBfBFEuqlbaniorT+XuKBBgy86DHA4u Kttq1jYgX6i3zAjisDA4sr0BpNA5fM3JibeQNvKgC/B3whSoDMPYUc62tBZXnJjzBxtS rgfNaQun5bv7jZ+NX13j1gNg5QgEK8xGxS+vM= 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=w7vl3ObFMJ7/qnFRgsWtSWHUmSvQZ7El0LqSgR2rnW0=; b=f8xphqqpCrhqkRRQkaUm2zduqtFHZKdmkWZN81vAeJtvAQ9yVGpstqk25gQXxfiOwF nC3FFQz/4dri3t/iR01opnGU/aBPnNkkaOEJuUQ4F8OU0vsK5mfuzoBkt001VfwmEEn6 gUjZebfihUzYIupdGSYFhvZ3cF+JWBt5fskkGF3jQx6kA0xmD2nckgUWdF8ktZeN7pHJ en195mHV1ccwonxHlhsiNzZZmNirmiSv4rkcHhqadUJN4WtFTzgQt11d6HmiQicNuEI5 Sd+wCxypLK4xKV/EL/UocuByBO8nieukjLiOyXoBfwhZMAHPJrYmeMAw9nx4V+sGLxLg vtvw== X-Gm-Message-State: APt69E2qaam0d6b8JOnojIzWnMFbOBazHFnTSDxs9HHsm+wrhVenxjU4 F1yhrx7LjDKwniVpcCNDxtQfEA== X-Google-Smtp-Source: AAOMgpfgPDq/CHAh06lELvngC712rxvOrUcYKbJc3yhGveAvx9aRgPBeaIYyTb2Ol2LZBAltn5+fwQ== X-Received: by 2002:a62:c61d:: with SMTP id m29-v6mr20526700pfg.26.1530417312138; Sat, 30 Jun 2018 20:55:12 -0700 (PDT) Received: from localhost.localdomain ([45.56.152.146]) by smtp.gmail.com with ESMTPSA id v15-v6sm29541505pfk.12.2018.06.30.20.55.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 30 Jun 2018 20:55:10 -0700 (PDT) From: Shawn Guo To: Lorenzo Pieralisi Cc: Bjorn Helgaas , Pratyush Anand , Stanimir Varbanov , Jianguo Sun , Joao Pinto , Jesper Nilsson , Thomas Petazzoni , Murali Karicheri , Lucas Stach , Jingoo Han , linux-pci@vger.kernel.org, Shawn Guo Subject: [PATCH v3 1/9] PCI: exynos: Drop unnecessary root_bus_nr setting Date: Sun, 1 Jul 2018 11:54:43 +0800 Message-Id: <1530417291-30495-2-git-send-email-shawn.guo@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1530417291-30495-1-git-send-email-shawn.guo@linaro.org> References: <1530417291-30495-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/controller/dwc/pci-exynos.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/pci/controller/dwc/pci-exynos.c b/drivers/pci/controller/dwc/pci-exynos.c index 4cc1e5df8c79..cee5f2f590e2 100644 --- a/drivers/pci/controller/dwc/pci-exynos.c +++ b/drivers/pci/controller/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 Sun Jul 1 03:54: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: 937496 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="GmWaOaZ8"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 41JGkJ1lmcz9s1B for ; Sun, 1 Jul 2018 13:55:20 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752209AbeGADzT (ORCPT ); Sat, 30 Jun 2018 23:55:19 -0400 Received: from mail-pg0-f65.google.com ([74.125.83.65]:43587 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752181AbeGADzT (ORCPT ); Sat, 30 Jun 2018 23:55:19 -0400 Received: by mail-pg0-f65.google.com with SMTP id v13-v6so19386pgr.10 for ; Sat, 30 Jun 2018 20:55:18 -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=TGGiwxR8B6rJF1cIyekAm9HwghkJ1z7VJkTJrj6ZZCU=; b=GmWaOaZ8JKicuzkUS61SG3U3TUDr4/zcBmvnSlLsPZHFnrbNlwuSb3lPAUXr8ei98F zZYh3Y0Y+XWSSlBMdxzgZWEajiz4S/cbK9NypZvhmEqUu+AdaS1NFY2Ev0FG1XGpiKQc GfFVOpnvWND6LXD3Jr44IJ7ZjCBl83t8HUx1E= 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=TGGiwxR8B6rJF1cIyekAm9HwghkJ1z7VJkTJrj6ZZCU=; b=bCvYL81dEpbBgjrDomfz23ls23o7jVyDxxWa0ykwhVs7NcPxuRO4sLDqGTowGJgnJ9 sgU7XKRb4AF0gq8ckqHnDT+u6/TOHlKNDaJB5ECbAzGBBGbi9CUPiP45H6YsUI6Yz5Md 2KwsBUOiDHPf2xNTFyRlzczSCmQA6M1pbNJ7xGpsFyPdC1sESeazkGuqT7B5bNSOEVRc 88WLsxWsEfiVzm3LNY2OkSFS3sxBSn1SEpOmWTIlDPUDYLZRwQD14FaBmgCRRWSQb8fF Qptl8WTiBwVDEgYjtOwJF9cTA1cIwgHV9Go0nQDH1FHeMAbKHvGTTPGvGTGy2OTeSd36 Px+w== X-Gm-Message-State: APt69E2yp9QZDJk1/rHQ6ELrwS7qplIA04Ly88IE4LJdNJ1SJ7b6zIhW jLdHbFZumZpnQzrWCd5trxEIGQ== X-Google-Smtp-Source: AAOMgpcAUfqsPCAUQ8fyxFI/1lQQ88OA7Ygr3GxNOoepoBPqSJCyZvq1M3drThwy29MLiz5tlg+Lhw== X-Received: by 2002:a65:460e:: with SMTP id v14-v6mr8081355pgq.177.1530417318563; Sat, 30 Jun 2018 20:55:18 -0700 (PDT) Received: from localhost.localdomain ([45.56.152.146]) by smtp.gmail.com with ESMTPSA id v15-v6sm29541505pfk.12.2018.06.30.20.55.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 30 Jun 2018 20:55:17 -0700 (PDT) From: Shawn Guo To: Lorenzo Pieralisi Cc: Bjorn Helgaas , Pratyush Anand , Stanimir Varbanov , Jianguo Sun , Joao Pinto , Jesper Nilsson , Thomas Petazzoni , Murali Karicheri , Lucas Stach , Jingoo Han , linux-pci@vger.kernel.org, Shawn Guo , Richard Zhu Subject: [PATCH v3 2/9] PCI: imx6: Drop unnecessary root_bus_nr setting Date: Sun, 1 Jul 2018 11:54:44 +0800 Message-Id: <1530417291-30495-3-git-send-email-shawn.guo@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1530417291-30495-1-git-send-email-shawn.guo@linaro.org> References: <1530417291-30495-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 Reviewed-by: Lucas Stach --- drivers/pci/controller/dwc/pci-imx6.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/pci/controller/dwc/pci-imx6.c b/drivers/pci/controller/dwc/pci-imx6.c index 80f604602783..4a9a673b4777 100644 --- a/drivers/pci/controller/dwc/pci-imx6.c +++ b/drivers/pci/controller/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 Sun Jul 1 03:54: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: 937497 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="JTIgSuxQ"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 41JGkP4s4Nz9s1B for ; Sun, 1 Jul 2018 13:55:25 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752211AbeGADzY (ORCPT ); Sat, 30 Jun 2018 23:55:24 -0400 Received: from mail-pl0-f68.google.com ([209.85.160.68]:35586 "EHLO mail-pl0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752194AbeGADzY (ORCPT ); Sat, 30 Jun 2018 23:55:24 -0400 Received: by mail-pl0-f68.google.com with SMTP id k1-v6so6341323plt.2 for ; Sat, 30 Jun 2018 20:55:24 -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=ER/HHYAkoVj2OSSESeENZhdtLGMNmpSud5CQo2sYtuM=; b=JTIgSuxQ4WaaKyqJ0mFA03NxyFKn+PN/8LfJ+y4t+UnhOp3snLqJpRbrzk3uJk3uXK v3W7D5AkiO2AeInG2RqBV7Dav/er2PdlEatb7sKdn4T3T1vodgG0h/i3U8nyPjujKjrK Xt7kP4+Riy5MJUzz3kFUEMKGKdxcN3SRENuqk= 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=ER/HHYAkoVj2OSSESeENZhdtLGMNmpSud5CQo2sYtuM=; b=lMcCwNB0dLD9+VAcPhpnPmi5xHeRCwETAPzlJiY9p281oLTN4B5iEv/EchBa9N7EOH yXD8sqmCTeYWSSMUx9rpAdEQdGk3zATxSdgp177Dn8jFrl8CJcdREV4wtBvsBGMk1G5o Gb4moeYqdIYsNaZsoM0We1U1mlv3pAKvEPKqdJ0nm/5ZPRaER0DPEO3u/i6pIFIhDeHV iacG5lE6XwxTXCP/m2TUKMfy0QLhKZ5+7JfNllEut63jtGog7tbDqSIVsEWvSIZHjC+1 A8jFffPUzhLQOLMpfZ1ngvMhP9oivwl3ZbJ6hJhahJ+krSN9jzUKGUFHTQbW8L5Qkfpk gNMw== X-Gm-Message-State: APt69E0KohtYt12ZP3EtELMTDa9zVJNSpV5xWGTsbhRRcKgy2qhJqDqM 77nRnNTYKGNVeFuix5c4cAerRQ== X-Google-Smtp-Source: ADUXVKLM1H2c3Q73wiIYovzA0G7/CexlK/76i1m6tak1RcBU9nwAMywGWHyrfux4kb4c7dqtd5THSw== X-Received: by 2002:a17:902:3381:: with SMTP id b1-v6mr21348140plc.248.1530417324047; Sat, 30 Jun 2018 20:55:24 -0700 (PDT) Received: from localhost.localdomain ([45.56.152.146]) by smtp.gmail.com with ESMTPSA id v15-v6sm29541505pfk.12.2018.06.30.20.55.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 30 Jun 2018 20:55:22 -0700 (PDT) From: Shawn Guo To: Lorenzo Pieralisi Cc: Bjorn Helgaas , Pratyush Anand , Stanimir Varbanov , Jianguo Sun , Joao Pinto , Jesper Nilsson , Thomas Petazzoni , Murali Karicheri , Lucas Stach , Jingoo Han , linux-pci@vger.kernel.org, Shawn Guo Subject: [PATCH v3 3/9] PCI: keystone: Drop unnecessary root_bus_nr setting Date: Sun, 1 Jul 2018 11:54:45 +0800 Message-Id: <1530417291-30495-4-git-send-email-shawn.guo@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1530417291-30495-1-git-send-email-shawn.guo@linaro.org> References: <1530417291-30495-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/controller/dwc/pci-keystone.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/pci/controller/dwc/pci-keystone.c b/drivers/pci/controller/dwc/pci-keystone.c index 3722a5f31e5e..e88bd221fffe 100644 --- a/drivers/pci/controller/dwc/pci-keystone.c +++ b/drivers/pci/controller/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 Sun Jul 1 03:54: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: 937498 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="IaJ+34OB"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 41JGkW44pNz9s1B for ; Sun, 1 Jul 2018 13:55:31 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752201AbeGADza (ORCPT ); Sat, 30 Jun 2018 23:55:30 -0400 Received: from mail-pl0-f66.google.com ([209.85.160.66]:44777 "EHLO mail-pl0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752177AbeGADza (ORCPT ); Sat, 30 Jun 2018 23:55:30 -0400 Received: by mail-pl0-f66.google.com with SMTP id m16-v6so6330047pls.11 for ; Sat, 30 Jun 2018 20:55:30 -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=duloCE49cSlFdAC8u6tWxZejdP2pKOYynUQD0efWSIs=; b=IaJ+34OBq1FE79U4fdchG/I7heTroEYqR0MVOKtpGXXR/OOmpTUqiu756/Bnjym+a0 oNhR25VDmp3sJisHFlDd25wfN0JXZHnWnPK64fIUC83CuCKKGZYF8zftCIHCPVJEDZys fGCgwUC+NjMJbcMFbgQKBJSaxwGa9Hibm5QCU= 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=duloCE49cSlFdAC8u6tWxZejdP2pKOYynUQD0efWSIs=; b=aC8+bsm1OAOo/yO4oNMRoHgia6ousqdFBTNOGLaOUITx1OpXJWh+Y2LgvzxQ7Gx7c2 AxPsU5bKnYF8XTlXD52jBzgKJdtT6nSj3j69YOD5WhMAWos4UibAUllJqAsUQf03N1m3 F+IhgcFTblRr+Af0LtLhONJ32Iv35IOOLJnihHL2UwTS39SyIotVcOQmuuc1xTx5Gm20 wVu6ZX95D7YZZh20f/+I3eq756INLDieTpdIWGk9GFD/VpnKjb1GHadVXqy6/tqqwcf/ q7TM3ApiaYVggqM83LVI85h7TeCkMtaJKONnISnjP6eA2NGwBqhXaJA8527kYVp5QAIE TsNA== X-Gm-Message-State: APt69E3439xqbgui0DLrHu8jJ3dUzEJQGr51Se9vmaBLtztImTsY3/UJ uft4JG/RcJdahum+X+Iw0ueYGQ== X-Google-Smtp-Source: ADUXVKLogG/EJKqCezPlbQ8eOkgOrEU7e4nDZbOt/QK+8/2VxUdbG0e4ViD4XrHdB00X33x6qjZHyQ== X-Received: by 2002:a17:902:b48f:: with SMTP id y15-v6mr21124974plr.261.1530417329967; Sat, 30 Jun 2018 20:55:29 -0700 (PDT) Received: from localhost.localdomain ([45.56.152.146]) by smtp.gmail.com with ESMTPSA id v15-v6sm29541505pfk.12.2018.06.30.20.55.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 30 Jun 2018 20:55:28 -0700 (PDT) From: Shawn Guo To: Lorenzo Pieralisi Cc: Bjorn Helgaas , Pratyush Anand , Stanimir Varbanov , Jianguo Sun , Joao Pinto , Jesper Nilsson , Thomas Petazzoni , Murali Karicheri , Lucas Stach , Jingoo Han , linux-pci@vger.kernel.org, Shawn Guo Subject: [PATCH v3 4/9] PCI: armada8k: Drop unnecessary root_bus_nr setting Date: Sun, 1 Jul 2018 11:54:46 +0800 Message-Id: <1530417291-30495-5-git-send-email-shawn.guo@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1530417291-30495-1-git-send-email-shawn.guo@linaro.org> References: <1530417291-30495-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/controller/dwc/pcie-armada8k.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/pci/controller/dwc/pcie-armada8k.c b/drivers/pci/controller/dwc/pcie-armada8k.c index 072fd7ecc29f..0c389a30ef5d 100644 --- a/drivers/pci/controller/dwc/pcie-armada8k.c +++ b/drivers/pci/controller/dwc/pcie-armada8k.c @@ -172,7 +172,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 Sun Jul 1 03:54:47 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shawn Guo X-Patchwork-Id: 937499 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="N9aDR/jU"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 41JGkd1sVNz9s1B for ; Sun, 1 Jul 2018 13:55:37 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752223AbeGADzg (ORCPT ); Sat, 30 Jun 2018 23:55:36 -0400 Received: from mail-pg0-f65.google.com ([74.125.83.65]:46158 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752216AbeGADzg (ORCPT ); Sat, 30 Jun 2018 23:55:36 -0400 Received: by mail-pg0-f65.google.com with SMTP id q14-v6so5637137pgt.13 for ; Sat, 30 Jun 2018 20:55: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=Z0t4Ylv2lHdiYi6pdUgG448S9PewGUgyx+o3fva1U7I=; b=N9aDR/jU06W8IxazWXDiurSVxRU72pFu01FevHh7l9zEHuUBft7mgbPkSI1vKstP3L DTATuqYug0krxaDgtQ86F21pl2TQqjKFsjCuCBS1pjHi5yGTWUgIgeK8IpkvpDw5kCGN cxaOxHiIl/TZ9DTz/pCMQLOKehL0DJnw4n3qg= 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=Z0t4Ylv2lHdiYi6pdUgG448S9PewGUgyx+o3fva1U7I=; b=g6Rn3DMOigBFNL6dZoITHWXYgsWqfUnJ6FTT5SWwKiU+EhW1FWZ6Y5/03XZHLKFp7U Fkfgh6phWxCv6YX/J9mFYBPxdfWnXLvo9UbIIdU3f4xXEOQnL+UJcVAidJwY/LBO20kO G001HkCdL1tjUlanobVx7s662IjRldq+8a4/Z7kpQfqMY96CjKhorXKQTkje5ZgafCO/ cUuGFd2rp+5rh/Jtn5OcDhxDp3Bu8Iqm8dOpuV0G/RpanD0D2As3HFy2o2Q/RefNO4N2 /QEGgMNvwNfouNI6lTYJdY0yqHcVFRlhLToh+MNwr3q2jjBDwT2KaUUXC0aQGjhLVrYj 0hXA== X-Gm-Message-State: APt69E0VBdLHOqCjO9S9rEPp9Bhv3iFAHLQXpQhgr8Lnvadz0gUKxTMw DOfECSeu9VHyBqQQrhNoMGXeEQ== X-Google-Smtp-Source: AAOMgpe6OJKE9HOz35IbWtaVvIQPTgybOvs/yWymfHmqcsG9796juOnJbA3X/YYAPAwxhhiUe4BteA== X-Received: by 2002:a62:2ec1:: with SMTP id u184-v6mr20580579pfu.184.1530417335562; Sat, 30 Jun 2018 20:55:35 -0700 (PDT) Received: from localhost.localdomain ([45.56.152.146]) by smtp.gmail.com with ESMTPSA id v15-v6sm29541505pfk.12.2018.06.30.20.55.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 30 Jun 2018 20:55:34 -0700 (PDT) From: Shawn Guo To: Lorenzo Pieralisi Cc: Bjorn Helgaas , Pratyush Anand , Stanimir Varbanov , Jianguo Sun , Joao Pinto , Jesper Nilsson , Thomas Petazzoni , Murali Karicheri , Lucas Stach , Jingoo Han , linux-pci@vger.kernel.org, Shawn Guo Subject: [PATCH v3 5/9] PCI: artpec6: Drop unnecessary root_bus_nr setting Date: Sun, 1 Jul 2018 11:54:47 +0800 Message-Id: <1530417291-30495-6-git-send-email-shawn.guo@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1530417291-30495-1-git-send-email-shawn.guo@linaro.org> References: <1530417291-30495-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 Acked-by: Jesper Nilsson --- drivers/pci/controller/dwc/pcie-artpec6.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/pci/controller/dwc/pcie-artpec6.c b/drivers/pci/controller/dwc/pcie-artpec6.c index 321b56cfd5d0..128b182648b3 100644 --- a/drivers/pci/controller/dwc/pcie-artpec6.c +++ b/drivers/pci/controller/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 Sun Jul 1 03:54:48 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shawn Guo X-Patchwork-Id: 937500 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="C3WnTJE9"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 41JGkk4tVnz9s1B for ; Sun, 1 Jul 2018 13:55:42 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752226AbeGADzl (ORCPT ); Sat, 30 Jun 2018 23:55:41 -0400 Received: from mail-pg0-f65.google.com ([74.125.83.65]:37310 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752217AbeGADzl (ORCPT ); Sat, 30 Jun 2018 23:55:41 -0400 Received: by mail-pg0-f65.google.com with SMTP id n15-v6so2415047pgv.4 for ; Sat, 30 Jun 2018 20:55:41 -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=F8aN39tphVfaQKNGyA/MPz3lIuf8X0+rqiq+uSefmaQ=; b=C3WnTJE9ZgV4f88EKADpuNRFAxJ51xYnpC9/c7hHBS2MrorryJ9uCZavdV/o/FYd+S p3EorE1dkUGrZeZVNk7bNlWRWOzgriXQGGSR0UIwwgQAni1THAjagomFWCj/9bsvFRvM 8WO/ZKyQKEevK4C404QzBuPIrbdUUtSC1ZK5Q= 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=F8aN39tphVfaQKNGyA/MPz3lIuf8X0+rqiq+uSefmaQ=; b=fZRzwROUjwZPJuppTwMG9cAnmCKPmXbiDdr1dcEIhCGkeikHNfy5tBaV1/xQrz9lNC e8rrn4u3n+8hkKIQ+IvljCr1MDY20d4UsEUi+ZqTOB3yQjmEEM7bFLco0C61OnwhGwxC igqdrq8L80gbkomQ7k5Qo9vcGL7FL63M3B1AGFas/6WhTXN8VdyeFZg/XUVVyXYFoqWg WeqCrd0pZVklFp+rya5QhgjtJnAsJKbs8A2Z0NfNPNdzfsR35HBaCrBpzZ6yEAPxG2G+ 3B4QiOoWLvHKq1hBW3YS1rdTrLBLCE3quGZ2GAgrCKtNRqtJYxGbWS1rgNTSd5zOvHRN C4OQ== X-Gm-Message-State: APt69E08A4wZ+wvUIMhapybqRtJJAZ0KVW9IdQ0Scbyrt4e8f+cKCKWe k14rAmalf6RDQtltWuwfZuq6Qg== X-Google-Smtp-Source: AAOMgpcI9AtyxTLZ4RsE438UIoEWssJ13SQrAu5Ff3ESkoqZyukkSA7Ukbj9SXG+AlFFCzplbpECpw== X-Received: by 2002:a62:2414:: with SMTP id r20-v6mr20447844pfj.108.1530417340943; Sat, 30 Jun 2018 20:55:40 -0700 (PDT) Received: from localhost.localdomain ([45.56.152.146]) by smtp.gmail.com with ESMTPSA id v15-v6sm29541505pfk.12.2018.06.30.20.55.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 30 Jun 2018 20:55:39 -0700 (PDT) From: Shawn Guo To: Lorenzo Pieralisi Cc: Bjorn Helgaas , Pratyush Anand , Stanimir Varbanov , Jianguo Sun , Joao Pinto , Jesper Nilsson , Thomas Petazzoni , Murali Karicheri , Lucas Stach , Jingoo Han , linux-pci@vger.kernel.org, Shawn Guo Subject: [PATCH v3 6/9] PCI: designware-plat: Drop unnecessary root_bus_nr setting Date: Sun, 1 Jul 2018 11:54:48 +0800 Message-Id: <1530417291-30495-7-git-send-email-shawn.guo@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1530417291-30495-1-git-send-email-shawn.guo@linaro.org> References: <1530417291-30495-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 Acked-by: Gustavo Pimentel --- drivers/pci/controller/dwc/pcie-designware-plat.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/pci/controller/dwc/pcie-designware-plat.c b/drivers/pci/controller/dwc/pcie-designware-plat.c index 5937fed4c938..6e048c0b67f2 100644 --- a/drivers/pci/controller/dwc/pcie-designware-plat.c +++ b/drivers/pci/controller/dwc/pcie-designware-plat.c @@ -118,7 +118,6 @@ static int dw_plat_add_pcie_port(struct dw_plat_pcie *dw_plat_pcie, return pp->msi_irq; } - pp->root_bus_nr = -1; pp->ops = &dw_plat_pcie_host_ops; ret = dw_pcie_host_init(pp); From patchwork Sun Jul 1 03:54:49 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shawn Guo X-Patchwork-Id: 937501 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="Z7iMWQhD"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 41JGkr3fb6z9s29 for ; Sun, 1 Jul 2018 13:55:48 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752237AbeGADzr (ORCPT ); Sat, 30 Jun 2018 23:55:47 -0400 Received: from mail-pf0-f196.google.com ([209.85.192.196]:36325 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752224AbeGADzr (ORCPT ); Sat, 30 Jun 2018 23:55:47 -0400 Received: by mail-pf0-f196.google.com with SMTP id u16-v6so5960970pfh.3 for ; Sat, 30 Jun 2018 20:55:47 -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=3uyUewAEdKm3y6fVEpucCsXGlz14rFRdwnt4Vgl4weM=; b=Z7iMWQhDdFMPWuI6sJUlXL/1XqqmuXEjr1DJ+mPPf/98yoWA3bRQ+/F8AtlYjr3b/S W/TCINgXeLaWFDwZGR9OjsCHoxAeESrsGZheDA9qv1bCoIc3GTEnH7w7wBSNRJdbz1e3 ceN5xizwMKdrpuHaJ5XZVK2gvRTJ1/yb92K3I= 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=3uyUewAEdKm3y6fVEpucCsXGlz14rFRdwnt4Vgl4weM=; b=TgsBtE6NA4nyjfnYShbPkco8lcxQJ+dcrnSzSl2w91DaOGxj+fUmDDr4Yv/BkEDfCp pokm8Yr13qJSFY78Qbm7gaL/sBYZfoGHCMuB425D2/NgwovjjtmdZQmGLFGUXmGEYbhP n2kYz+ZVReLv9ysiskn2M5koAfGiF4Opn0DMXstsaeActh9kiCzPqyBtzcLna35lVRHI Q5UJDvt7SmiGLu7Gmp8G1bxhJpXyuCN5CUPY+yMZKCuSiVj3H8ockxNzKkBTxeFPJytZ 4A5EeJ+A6iND7u98rbSCC9xRoJ4JGiY43ZdF4dZ22WS8o4BfOsX+tjKFKhQ1Rh3OevqG cz5g== X-Gm-Message-State: APt69E0QDllltd38mlsKizCKfQOvA0Ql0WEmHz7p4QTRdsCTRCegkBNX vI8gCfyIjHJuD7d1CTHvdjdYCw== X-Google-Smtp-Source: ADUXVKIzaISD8ZpqzWyHGDMbNRWBpmVM2mf4nmwpgLMhcZcaiked4pGWsoAAfoGRF9du8DeL2XVQOQ== X-Received: by 2002:a63:9311:: with SMTP id b17-v6mr17580939pge.261.1530417346869; Sat, 30 Jun 2018 20:55:46 -0700 (PDT) Received: from localhost.localdomain ([45.56.152.146]) by smtp.gmail.com with ESMTPSA id v15-v6sm29541505pfk.12.2018.06.30.20.55.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 30 Jun 2018 20:55:45 -0700 (PDT) From: Shawn Guo To: Lorenzo Pieralisi Cc: Bjorn Helgaas , Pratyush Anand , Stanimir Varbanov , Jianguo Sun , Joao Pinto , Jesper Nilsson , Thomas Petazzoni , Murali Karicheri , Lucas Stach , Jingoo Han , linux-pci@vger.kernel.org, Shawn Guo Subject: [PATCH v3 7/9] PCI: histb: Drop unnecessary root_bus_nr setting Date: Sun, 1 Jul 2018 11:54:49 +0800 Message-Id: <1530417291-30495-8-git-send-email-shawn.guo@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1530417291-30495-1-git-send-email-shawn.guo@linaro.org> References: <1530417291-30495-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/controller/dwc/pcie-histb.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/pci/controller/dwc/pcie-histb.c b/drivers/pci/controller/dwc/pcie-histb.c index 3611d6ce9a92..7b32e619b959 100644 --- a/drivers/pci/controller/dwc/pcie-histb.c +++ b/drivers/pci/controller/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 Sun Jul 1 03:54:50 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shawn Guo X-Patchwork-Id: 937502 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="HWvDC/zH"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 41JGky1qMmz9s29 for ; Sun, 1 Jul 2018 13:55:54 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752250AbeGADzx (ORCPT ); Sat, 30 Jun 2018 23:55:53 -0400 Received: from mail-pg0-f68.google.com ([74.125.83.68]:37319 "EHLO mail-pg0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752236AbeGADzw (ORCPT ); Sat, 30 Jun 2018 23:55:52 -0400 Received: by mail-pg0-f68.google.com with SMTP id n15-v6so2415145pgv.4 for ; Sat, 30 Jun 2018 20:55:52 -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=/vUoD4qFBGNYe4dH79yykIVOc0QsQLTnjVeaaMw35E0=; b=HWvDC/zHlhmX4JvFrDhpZ3CPFwRMR+GjEpcN2rnD+O8V8ka7j+40ETLIbLFobyCe/5 +2DZZkJNomad42HTfscVKWVdpaKWFMbNDrMkeG1UD7VuCmPWgXCi24+RAl4TF63E5raH 76tVevwM4Wrm+Xa/daKhrZuZTRSTMWL5E5ncQ= 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=/vUoD4qFBGNYe4dH79yykIVOc0QsQLTnjVeaaMw35E0=; b=fiNPD+IzhbN3vmpPLlfBdKR+5JkIxMf5c3Sf4VWJ+paDmz9OP5yc70yfDNJhfCYItS 75g+6CSX8Qti6XdIhWyW6jQbRTqDdZB4+b8KK2kbt3WzpfGOq6qakotY1CCfnnzJanlJ 7orUFzFdqyWY1cQsm1eg53537B2bJyIDsYSoqqWZ61ihOsxugK2h6JuaMTBhknJk5M9/ RBg1hdy8zFnibIkba6e2H0zO2xhSc1hrBIOQiy22b5gG1ODCcso0QjWwLx/FFvJO8mxT bkPdBBnJ8Eo3couiLMPkf/CDWnyrFgpAIvTV5kWH/21rOjigm0/wdL2TUP4uIww3CAVx PjPA== X-Gm-Message-State: APt69E0uS5N/F0urWOA+seGh20/KqmZNLQRKuWUDiHn3gaWHiAi4k8MV FLWEk8csk6ZpHTyZjcQw9kSNgQ== X-Google-Smtp-Source: ADUXVKI4kZe70lwj9UDSFtLlBpOoKmmlKik5oZ8C/MeaxLBUEmm/O5NqjKkcj9fV12OMN0eNTW/jbA== X-Received: by 2002:a63:b95c:: with SMTP id v28-v6mr17480594pgo.162.1530417352466; Sat, 30 Jun 2018 20:55:52 -0700 (PDT) Received: from localhost.localdomain ([45.56.152.146]) by smtp.gmail.com with ESMTPSA id v15-v6sm29541505pfk.12.2018.06.30.20.55.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 30 Jun 2018 20:55:51 -0700 (PDT) From: Shawn Guo To: Lorenzo Pieralisi Cc: Bjorn Helgaas , Pratyush Anand , Stanimir Varbanov , Jianguo Sun , Joao Pinto , Jesper Nilsson , Thomas Petazzoni , Murali Karicheri , Lucas Stach , Jingoo Han , linux-pci@vger.kernel.org, Shawn Guo Subject: [PATCH v3 8/9] PCI: qcom: Drop unnecessary root_bus_nr setting Date: Sun, 1 Jul 2018 11:54:50 +0800 Message-Id: <1530417291-30495-9-git-send-email-shawn.guo@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1530417291-30495-1-git-send-email-shawn.guo@linaro.org> References: <1530417291-30495-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/controller/dwc/pcie-qcom.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/pci/controller/dwc/pcie-qcom.c b/drivers/pci/controller/dwc/pcie-qcom.c index a1d0198081a6..4352c1cb926d 100644 --- a/drivers/pci/controller/dwc/pcie-qcom.c +++ b/drivers/pci/controller/dwc/pcie-qcom.c @@ -1251,7 +1251,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 Sun Jul 1 03:54:51 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shawn Guo X-Patchwork-Id: 937503 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="cm4NEYeg"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 41JGl34bB7z9s29 for ; Sun, 1 Jul 2018 13:55:59 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752263AbeGADz6 (ORCPT ); Sat, 30 Jun 2018 23:55:58 -0400 Received: from mail-pf0-f196.google.com ([209.85.192.196]:40362 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752239AbeGADz6 (ORCPT ); Sat, 30 Jun 2018 23:55:58 -0400 Received: by mail-pf0-f196.google.com with SMTP id z24-v6so5955113pfe.7 for ; Sat, 30 Jun 2018 20:55: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=M7J69EaOj8i/RDDI0TBWg2rZUgwzizdv/DmntYcU5qs=; b=cm4NEYegOme/tWOG9/6sVc8EgGeczts3rcasKJd1j1pQLTxH2tpVDegdmyDgCp5I/G 8VHp2wGsht3i9uyjR4SAQzDh5mo6exclnoVVranHw1E24YsvHxnnToHDuRGZrVDyAWRt MqhUdlmhvzXxIQY6W7g8hnRs6e0VZWiSCxY04= 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=M7J69EaOj8i/RDDI0TBWg2rZUgwzizdv/DmntYcU5qs=; b=ZIlTKTqnWLV8crHLjPwz0O/SKQJZ3Y/8k0GjuTiJ7a+LEMJsygG01ip1qhvzcHET7i hFSgo1ceENRpRDDS/Xqm0GXup2Avf0+RrleAZIuf7zqmXQ52fxcN6Bl6ho6BvBF5QvKe E9+n7gb5yA2YZJURZmeymy6npXV0tdpaMZrGFj0YZGxsh+xE1hgiO+Y5DRT9VP9oXMXX 3XqBPIVI8wnoYAHTX6EFQwVyI7h12ViuoeGNQJ49cewXvdv0KOD1f0t76uj0jsPZSu0i +LOf3aAROAoe/A8EY/GyRq8kg9lQskpU/MIY7fyWeM9hCBy+vO5MfN3PUzkpCZ9K55ic TqUg== X-Gm-Message-State: APt69E2og40ilURPAA9n7h2IRNrm8xfBlcxfgf2l7+oEGqYW1u0NvOjJ MNsJd6TZxhjcjm+wr6/5/AyHMg== X-Google-Smtp-Source: AAOMgpdyu8xFPXhZxbn0ByY3x5GuNMniizKzung/FvnME992F031XYNTpktVJ5DrIIzvPv6LmIgOmQ== X-Received: by 2002:a62:2c46:: with SMTP id s67-v6mr20025973pfs.153.1530417357901; Sat, 30 Jun 2018 20:55:57 -0700 (PDT) Received: from localhost.localdomain ([45.56.152.146]) by smtp.gmail.com with ESMTPSA id v15-v6sm29541505pfk.12.2018.06.30.20.55.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 30 Jun 2018 20:55:56 -0700 (PDT) From: Shawn Guo To: Lorenzo Pieralisi Cc: Bjorn Helgaas , Pratyush Anand , Stanimir Varbanov , Jianguo Sun , Joao Pinto , Jesper Nilsson , Thomas Petazzoni , Murali Karicheri , Lucas Stach , Jingoo Han , linux-pci@vger.kernel.org, Shawn Guo Subject: [PATCH v3 9/9] PCI: spear13xx: Drop unnecessary root_bus_nr setting Date: Sun, 1 Jul 2018 11:54:51 +0800 Message-Id: <1530417291-30495-10-git-send-email-shawn.guo@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1530417291-30495-1-git-send-email-shawn.guo@linaro.org> References: <1530417291-30495-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: Pratyush Anand --- drivers/pci/controller/dwc/pcie-spear13xx.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/pci/controller/dwc/pcie-spear13xx.c b/drivers/pci/controller/dwc/pcie-spear13xx.c index ecb58f7b7566..7d0cdfd8138b 100644 --- a/drivers/pci/controller/dwc/pcie-spear13xx.c +++ b/drivers/pci/controller/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);