Received: by 10.192.165.148 with SMTP id m20csp5081950imm; Tue, 8 May 2018 21:52:52 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrgbLo2lqobJm5sz4p+xDHKcgGzCxnRVm959TfbRzXccKgRyPOvNRbYZ+ni19cjbbJb7Bry X-Received: by 10.98.245.91 with SMTP id n88mr35110884pfh.208.1525841572381; Tue, 08 May 2018 21:52:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525841572; cv=none; d=google.com; s=arc-20160816; b=c9utJY+9qR5Ukp5kuLcmV2zSTiAZrxfIxVzkz+Euz/Mels3dAWsXjB32Ia+qv7oU1y j/ytAFQ3Hi6KIeS9AxqgD5f4Vk4UnTvLPyJghfHmxyFtkw51ZZm5AZu6maf75c/tne2d a2HRUulLDrYVlp/Yavv3yh+tcZxtS3Rt76SGOwxNzI3FwilgiZILpz5NsKIyOgba80He xZjqWdF8e28xdzlLXjbicP6ET5eEkaTgQ6wEjb+1r/5sfbKGBCiM55U/clJohv9cJ0Az okk+nGhguxK/yVn0VSDtTQjH3nlspsVfPIo/ymmEE+FqUdEq16opv87kYyVbI4XrNp2m opDg== 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=75xUL0Yc3WHVo57opue7gjFO8XCwR5aLd6enLYcCuXY=; b=qQzkPPg93WxnQST5bS+RkXqZTnTlzuz444xDrn0pwo0DH/N7Rv0KwNy0V0Clym9u4y H7JK+hQcWtWVlGuQ4Bnz4m4bXKac8MmO6boNjnyWf4Azk3dOhEeNHiSdIR0lfrqFH8Q8 /CC2EMsp4x3qxoEmf6iHVGoWgRQ8qZ3ZoaLpRA6IG36hPH2q6sl0vT+sSeLCGAbqmcho WDw6vRsHB2nlcV84OKQoDPJ7NVsY9PeZq3gDcWrvQJr27fbYlydgX3CLe2xvLRxtoaPF bMcuyT5vd0yEdK6D3JJ9rg46nwwBKhDP5pAFTiOtHgpS5Rq4t597AvaZJXfknLb4jH/r x7dg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fGCuK6db; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g1-v6si16831184pld.11.2018.05.08.21.52.37; Tue, 08 May 2018 21:52:52 -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=@linaro.org header.s=google header.b=fGCuK6db; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752931AbeEIEw1 (ORCPT + 99 others); Wed, 9 May 2018 00:52:27 -0400 Received: from mail-pg0-f51.google.com ([74.125.83.51]:36879 "EHLO mail-pg0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750931AbeEIEwZ (ORCPT ); Wed, 9 May 2018 00:52:25 -0400 Received: by mail-pg0-f51.google.com with SMTP id a13-v6so22121326pgu.4 for ; Tue, 08 May 2018 21:52:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=75xUL0Yc3WHVo57opue7gjFO8XCwR5aLd6enLYcCuXY=; b=fGCuK6dbkOrtkLcZc3tZZ2bVmrnJex1eXTXqo4FHxoLPztqINrRbMYCXG2/GXrUZra B0MlGP4ezd/J4lQJc8cet4wFNtCTgzNO7JAZopXxgdvisiG6eEgjj+jEfg4gYq989lVd 0zGX0/78pwzSViAuB8r0uJJ+Rm51xBDNRzMMY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=75xUL0Yc3WHVo57opue7gjFO8XCwR5aLd6enLYcCuXY=; b=bIlcLRKs2QrPdlrjifhKPyMeiGi0LVZxxMVOPnPRfgfWB1WTCZhaGjY81M/QomGaJ/ oK3pU41FttXgROXeiOJEsnPPf4akcyvJhKZceukw+vICGsYlQjCZPWBLHsxixfgmUQ2z EGeXV2wN1P3BTE3zuz0qhtH2tq1jvLBArw54aFXa2Kpz1M4ePlt2ueaE3bnqtFiXfH9B 4IOB01cI1xGAabi9dRaK6OEPXP9kcDwru/KmRcWeLw5Cu2t2+UY3PNmFEtgluykX4j0e aqITo87qnLzCG6Ym5V9PTf8d5iiAhaA0MEWlTwU9nKQC9OuNtj6YVE5qS8mXqYg6ij2U b7qw== X-Gm-Message-State: ALQs6tCoZ4esL09sTzGrJzRnwGnpjLkrXYqo7zelA/M2FNVV146l522A bwinTv2OYjErUXKkfbSAsOdrGA== X-Received: by 2002:a65:62d9:: with SMTP id m25-v6mr17781762pgv.407.1525841544852; Tue, 08 May 2018 21:52:24 -0700 (PDT) Received: from dragon ([45.56.152.77]) by smtp.gmail.com with ESMTPSA id i72sm32650389pfe.22.2018.05.08.21.52.18 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Tue, 08 May 2018 21:52:23 -0700 (PDT) Date: Wed, 9 May 2018 12:51:53 +0800 From: Shawn Guo To: Bjorn Helgaas 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: <20180509045151.GA24899@dragon> References: <1525763028-107417-1-git-send-email-chenyao11@huawei.com> <20180508125658.GK161390@bhelgaas-glaptop.roam.corp.google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180508125658.GK161390@bhelgaas-glaptop.roam.corp.google.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. > 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. Shawn > > > pci->pp.ops = &kirin_pcie_host_ops; > > > > return dw_pcie_host_init(&pci->pp); > > -- > > 1.9.1 > > > > > > _______________________________________________ > > linux-arm-kernel mailing list > > linux-arm-kernel@lists.infradead.org > > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel