Received: by 10.192.165.148 with SMTP id m20csp1156828imm; Thu, 10 May 2018 06:34:22 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrIBXpHsdtDWScWrCR005WbwzxSB93VgE1RMK3ngrSlXRDTuL4qXFoomSnWjN57Sldkkaez X-Received: by 2002:a17:902:b681:: with SMTP id c1-v6mr1428064pls.286.1525959262173; Thu, 10 May 2018 06:34:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525959262; cv=none; d=google.com; s=arc-20160816; b=hYrv+Rcdcow8lPnMCa13KxtuPmV2bsIAK/HaFyRigw3cvCxcw+R7LWdwBk0p9zwlaZ IvYfPwnqGWcRnraLBsigfdCAZnGHNgabzPB0NgDeVTdbwlqm6v6G9gNHPh/lAQngCQS9 5Cyb6m4RrHIpQi8j1Y3GQ3Vfj4Ecewpy9hpDm0bZGrvYQdd/Oy3CoWPOFwtKz9o8uCuB Je/76WVF7iBakJkXMiCUT9IUGuHM0mHM35zbRarNynz4WCVRIsYKsAwLO19hf/XfOZFw k6fZnCgvTdeyfMhhgROMNY8GgYTHiceL8Ydjf4mFADdyRxfk0NUhJF1OQxYFzb0ztCeq vPnw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=odGnoyAqSRlAlV0mxLhfjXwSlHA7wzamvpNqBMInShY=; b=qe7kgxRrq1QdUVYpwJhNMb6nalhaQEureGag1xjLZI6AYWfyIrDZOoQNNe6Y+vArEI EOrj2AgbKJJHp4ptY7HDVxdAiETJfWWe/cyhgsTanPqLiWgzXxS/ZCv7s4ZSmgNKCcRj dTqHnjVcalKjLOGmVl+ZVyxWLkn2AZEMBSJJ5k+igP/gX/x6eKufVEi4/obInMLiQeyN arGH2iDICJYAAGDWpRatgliC/3Pf28r/Z/gIUk/TY0a8Gs9+jCOsuvveOJ2VPPhpdBBN mIeWS/mVrvnUZnF/GUYpjgBpRfqxJhFK+TYxpyD35e5l1lMES3l+qNSvfv+hcZ+VsRs7 2HzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=uaxHlbO3; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f7-v6si830046pfa.78.2018.05.10.06.34.07; Thu, 10 May 2018 06:34:22 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=uaxHlbO3; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964848AbeEJNdx (ORCPT + 99 others); Thu, 10 May 2018 09:33:53 -0400 Received: from mail.kernel.org ([198.145.29.99]:54320 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934693AbeEJNdv (ORCPT ); Thu, 10 May 2018 09:33:51 -0400 Received: from localhost (50-81-62-164.client.mchsi.com [50.81.62.164]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 2B2B22173C; Thu, 10 May 2018 13:33:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1525959231; bh=aO2sxUxsdHr/91pLe5Ok/JHeOHI0jJE1d7bhy03kqoE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=uaxHlbO3uHCtNxr9Zv8B8E/JeY4EnZWY/aFUsevyfTfzOoa8CkRLHTPv5tJ4hOXeW Y4fCuw3Xu7zcM2Kn4GKmFVDRn6gAfEPfbe/CXqjmlFe6+e12PgX0GJZjYjOaneaT42 zqPHADc8hec5oVbwIn/F/GPhhVhq4FfsRaewnaqM= Date: Thu, 10 May 2018 08:33:50 -0500 From: Bjorn Helgaas To: Shawn Guo Cc: Yao Chen , songxiaowei@hisilicon.com, wangbinghui@hisilicon.com, lorenzo.pieralisi@arm.com, bhelgaas@google.com, xuwei5@hisilicon.com, robh+dt@kernel.org, mark.rutland@arm.com, catalin.marinas@arm.com, will.deacon@arm.com, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, dimitrysh@google.com, guodong.xu@linaro.org, Stanimir Varbanov , Jianguo Sun Subject: Re: [PATCH] Kirin-PCIe: Add kirin pcie msi feature. Message-ID: <20180510133350.GH173327@bhelgaas-glaptop.roam.corp.google.com> References: <1525763028-107417-1-git-send-email-chenyao11@huawei.com> <20180508125658.GK161390@bhelgaas-glaptop.roam.corp.google.com> <20180509045151.GA24899@dragon> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180509045151.GA24899@dragon> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 09, 2018 at 12:51:53PM +0800, Shawn Guo wrote: > Hi Bjorn, > > On Tue, May 08, 2018 at 07:56:58AM -0500, Bjorn Helgaas wrote: > ... > > > + return ret; > > > + } > > > + } > > > + > > > + pci->pp.root_bus_nr = -1; > > > > Setting root_bus_nr looks like an unrelated change that should be in a > > separate patch. > > > > But I'm not sure why you need to set root_bus_nr at all, since > > dw_pcie_host_init() always sets it. > > > > Some other callers of dw_pcie_host_init() do set it: > > > > exynos_add_pcie_port() > > imx6_add_pcie_port() > > armada8k_add_pcie_port() > > artpec6_add_pcie_port() > > dw_plat_add_pcie_port() > > histb_pcie_probe() > > qcom_pcie_probe() > > spear13xx_add_pcie_port() > > > > But I don't see *why* any of these need to set it. If they don't need to > > set it, they shouldn't. > > Mostly it's a blind copy of unnecessary code. I tested histb driver > by dropping the line, and did not see anything broken. I will cook up > a series to remove the code from all above drivers, and copy > corresponding driver owner to comment. Thanks, Shawn, I really appreciate that! > > And it would be nice if histb and qcom followed the structure and naming > > conventions of the other drivers, i.e., they should have > > histb_add_pcie_port() and qcom_add_pcie_port(). > > I can create a patch for histb driver, but will leave qcom one to > Stanimir to decide. Sounds good, thanks again!