Received: by 2002:ac0:8c9a:0:0:0:0:0 with SMTP id r26csp4651679ima; Mon, 4 Feb 2019 22:05:12 -0800 (PST) X-Google-Smtp-Source: AHgI3IaSnZfEtROZua7bZU67J/77//bqJLoV1qJSdl/kmDJR0j7W34O2bnNFk0CvhUNIRjYdmH39 X-Received: by 2002:a17:902:1486:: with SMTP id k6mr2457046pla.49.1549346712141; Mon, 04 Feb 2019 22:05:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549346712; cv=none; d=google.com; s=arc-20160816; b=BHeBouW0p9dGrlU9Wzgi1Q6Usrv8JcnsXl/ofsxaTcsCHiIrgk1WCZx+ZmitTFYF0C 5iX8n+DJwRrPMWXpFpXIPGHWW+A28QK0MLzHanrFdr5Imo+FjWm9xwGcmhCfCjURd1Ps BGzg/dK1RrGVGbBwkv5b5OWqzGa1zHgSKfs9Rin2ynEvb2X/AwEOCP4xLS9cyXHtVbuN ZvGoJOwtgtEumITeqw7V6DK0r7LOyVc3EkoXQiNoALthvPfVNxLqFojcJ4grfEArW1BA qO7VdQD7dSbtJGj/QF/HIIlFC0LHjAYjtyXvzof3Btkquh+EMj0qV+sqckMV54KpIfKF HSNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=E8Nz/JOD+e1xoqAI4YK+0goMEU7txF8Kn0+PiGymNa8=; b=OMslPInnjsvTKVL0E7mQSdq7RFCakzLBVYIFPb/C3VYwmcXB+m42zfEF5gkdU1qRat 5l1+VpamveVLvVvpX68NE/mVL+gV3/6wki20WIxN7d1+MDdw7glUXdS44xcyEMUgrrqW mjWwC3QVHHaSiVHjPgj8rqbhGzzE8wrffMQoT+DEGAlvDrDJ79ScGiihO7eAXj/RRolR MhlgR2LXbuQMuL4PkKFxMJG6cXLJmHa00mrkcMcH2iVU73pN7cLEaIEcad+lzFMSwpdz cTPGBqjPhCfGVHQMrRjWweTZtN9ztVPstJ8ORYIlRYkldhd01LAziic87O4MnpdnblO7 xRRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mobiveil.co.in header.s=google header.b=a0lt9vja; 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 az11si2201853plb.386.2019.02.04.22.04.55; Mon, 04 Feb 2019 22:05:12 -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; dkim=pass header.i=@mobiveil.co.in header.s=google header.b=a0lt9vja; 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 S1727078AbfBEGEY (ORCPT + 99 others); Tue, 5 Feb 2019 01:04:24 -0500 Received: from mail-wr1-f66.google.com ([209.85.221.66]:44728 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725934AbfBEGEX (ORCPT ); Tue, 5 Feb 2019 01:04:23 -0500 Received: by mail-wr1-f66.google.com with SMTP id v16so410451wrn.11 for ; Mon, 04 Feb 2019 22:04:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mobiveil.co.in; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=E8Nz/JOD+e1xoqAI4YK+0goMEU7txF8Kn0+PiGymNa8=; b=a0lt9vjaYGvo5ZjCMKI4qBCmuxJB3MEqbdXjeKZbh+T2f2nZ72O8/RHqWxV7l6HJYZ UCE2tm6/FROvTqIC+Nj4Xtk13boNIRpa4eHoE2/95EH9a+MyYFmfR2YIAwrsfxbWN3ol k0v2t9jjDyZw3M4IrxpaQEeGGibrzRh/SKAfI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=E8Nz/JOD+e1xoqAI4YK+0goMEU7txF8Kn0+PiGymNa8=; b=Pn1cUPnI5jpqEA1hVgc/CJIgfVfc+BuBxgU1t9+AfgSDnfnQgMjbRIzrDcvtl9k5k5 lkHJzJ2Q4duwLKwPLxh/IajuQzQzgqVtyH8LSuRbfau9XosV9kEIRZmhVPGqKW6gAc8I TTZRuzgcvoe3piOajl1NOPa3QSMxKE4XzoRmkVYrJm06MP9saOcM3F3pfpGLCeB+lBt8 d8bxL3aKSNM+DUQLCnv7aL0KgTfk0DMWkUze4jTjBNHvTgTBp5hYRGsjFynpxK2XfnZ/ IS0MIlBCmEhFYp7LxN89TyZc8RVItLxT3hx1owm5LMSfYYRYYwMgzgtrfqodh8Dh0s+o hRgg== X-Gm-Message-State: AHQUAuYQ1KVWlnUBWkE+cwFkcd1hKdMyAOq3mqLy5LJBM77UpOKo6ERU u2ygQJGI4KEJBuFdlBy4kZSYUg2cHiF7EBmTcJxDxg== X-Received: by 2002:adf:fd81:: with SMTP id d1mr2123021wrr.105.1549346662212; Mon, 04 Feb 2019 22:04:22 -0800 (PST) MIME-Version: 1.0 References: <20190129080926.36773-1-Zhiqiang.Hou@nxp.com> <20190129080926.36773-6-Zhiqiang.Hou@nxp.com> In-Reply-To: <20190129080926.36773-6-Zhiqiang.Hou@nxp.com> From: Subrahmanya Lingappa Date: Tue, 5 Feb 2019 11:36:56 +0530 Message-ID: Subject: Re: [PATCHv3 05/27] PCI: mobiveil: correct PCI base address in MEM/IO outbound windows To: "Z.q. Hou" Cc: "linux-pci@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "bhelgaas@google.com" , "robh+dt@kernel.org" , "mark.rutland@arm.com" , "shawnguo@kernel.org" , Leo Li , "lorenzo.pieralisi@arm.com" , "catalin.marinas@arm.com" , "will.deacon@arm.com" , Mingkai Hu , "M.h. Lian" , Xiaowei Bao Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Reviewed-by: Subrahmanya Lingappa On Tue, Jan 29, 2019 at 1:39 PM Z.q. Hou wrote: > > From: Hou Zhiqiang > > It should get PCI base address from the DT node property 'ranges' > to setup MEM/IO outbound windows instead of always zero. > > Fixes: 9af6bcb11e12 ("PCI: mobiveil: Add Mobiveil PCIe Host Bridge > IP driver") > Signed-off-by: Hou Zhiqiang > Reviewed-by: Minghuan Lian > --- > V3: > - No change > > drivers/pci/controller/pcie-mobiveil.c | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > > diff --git a/drivers/pci/controller/pcie-mobiveil.c b/drivers/pci/controller/pcie-mobiveil.c > index a0dd337c6214..8ff873023b5f 100644 > --- a/drivers/pci/controller/pcie-mobiveil.c > +++ b/drivers/pci/controller/pcie-mobiveil.c > @@ -630,8 +630,9 @@ static int mobiveil_host_init(struct mobiveil_pcie *pcie) > > /* configure outbound translation window */ > program_ob_windows(pcie, pcie->ob_wins_configured, > - win->res->start, 0, type, > - resource_size(win->res)); > + win->res->start, > + win->res->start - win->offset, > + type, resource_size(win->res)); > } > > /* setup MSI hardware registers */ > -- > 2.17.1 >