Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2075771imu; Fri, 23 Nov 2018 04:22:01 -0800 (PST) X-Google-Smtp-Source: AJdET5eQ4Heb0HmWI05HxpK4sv8AgqnLCwarsDjj/slo2sHcmKfIw6ChHbSBqzUthrwLysjyOCOt X-Received: by 2002:a62:dbc2:: with SMTP id f185mr15603289pfg.235.1542975721882; Fri, 23 Nov 2018 04:22:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542975721; cv=none; d=google.com; s=arc-20160816; b=MsFlDxaGSL3cEQkgMGskUFJ2ddX3NZPrJ2wloWtM/T92zXrFBDZec7OMDzN9GC3KeK MkMnAPSKkb3PRJjJb3HOAo2o9SgYEuSs6tzq0rMmOvp1aR6wXKr0UPlqAp4ilcWEUQ7I OZlWMquWap6E1qzMtpWD+f2LPHKvKpA8TK4Qii8DFMCShkGjC6iDDh3Nk4UQbGL3g77R 4S3kHSQzpbEJVc19ckZAuRviQInfnI1GWqP6lobl7ZiNXbobSnLuyEdVdZ3tvYoe0tOk vqyhub6OawtaelG9quS7S9rFse+XSA8dv90U2UJKq8mGKO8tdTg2Drx27djjLLJx4WEw 4zPA== 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; bh=KXcC76RZyI2GayCKcg/cK9IfDyidQ2e1KLB41F0vCIY=; b=iDsQG3QWKqkqzJXh7SWMN0frHh0M2kVc3PFkI96UdB4uOB0fUXVp8nZYy5tvbSxygQ lzdnHhPEpBgmN62gkgO2ZP9fkABzZ6kVESkbVvLn6XNyInNkhfuRhCVr5kUGPIvRbxKa YFmEi56ZCRFh9f3LshyZSgxHvAp8Ypem9q29gzVmD547nn/CEYp8NN6y0buUIyglyuyj HZf95l5NLduAdIVH9ESck4dBfLjw63tIFPXi4BeP9mMd1y/XKjGLrsAiRX1QENSbCTnz vbNVQ7j9k8tCjX6u6ibJ2MhrnmGnoDjGuGXNxFmDAX9ziQ1Vid1TFt4It8uQZUsCBy7A eU5Q== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x1si16790283plb.366.2018.11.23.04.21.47; Fri, 23 Nov 2018 04:22:01 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2394658AbeKVVzs (ORCPT + 99 others); Thu, 22 Nov 2018 16:55:48 -0500 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:45810 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388022AbeKVVzr (ORCPT ); Thu, 22 Nov 2018 16:55:47 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 01F973617; Thu, 22 Nov 2018 03:16:52 -0800 (PST) Received: from e107981-ln.cambridge.arm.com (e107981-ln.cambridge.arm.com [10.1.197.40]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 5935E3F5A0; Thu, 22 Nov 2018 03:16:50 -0800 (PST) Date: Thu, 22 Nov 2018 11:16:45 +0000 From: Lorenzo Pieralisi To: "Z.q. Hou" Cc: "linux-pci@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "bhelgaas@google.com" , "jingoohan1@gmail.com" , "gustavo.pimentel@synopsys.com" , Roy Zang , Mingkai Hu , "M.h. Lian" Subject: Re: [PATCHv2 3/4] PCI: layerscape: initialize the number of viewport Message-ID: <20181122111645.GA11447@e107981-ln.cambridge.arm.com> References: <20181107100854.28389-1-Zhiqiang.Hou@nxp.com> <20181107100854.28389-4-Zhiqiang.Hou@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181107100854.28389-4-Zhiqiang.Hou@nxp.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 07, 2018 at 10:09:16AM +0000, Z.q. Hou wrote: > From: Hou Zhiqiang > > FSL implements 6 viewports on Layerscape series SoCs PCIe > controllers. > > Signed-off-by: Hou Zhiqiang > --- > V2: > - Reworded the subject and commit description. > > drivers/pci/controller/dwc/pci-layerscape.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/drivers/pci/controller/dwc/pci-layerscape.c b/drivers/pci/controller/dwc/pci-layerscape.c > index 3724d3ef7008..69f3f1a5a782 100644 > --- a/drivers/pci/controller/dwc/pci-layerscape.c > +++ b/drivers/pci/controller/dwc/pci-layerscape.c > @@ -280,6 +280,9 @@ static int __init ls_add_pcie_port(struct ls_pcie *pcie) > > pp->ops = pcie->drvdata->ops; > > + /* FSL implements 6 windows */ > + pci->num_viewport = 6; There is a DT property to configure this value, I am not sure it was the right thing to do to add it but since it is there use it. I will not consider this patch for merging. Lorenzo > ret = dw_pcie_host_init(pp); > if (ret) { > dev_err(dev, "failed to initialize host\n"); > -- > 2.17.1 >