Received: by 2002:ac0:8c9a:0:0:0:0:0 with SMTP id r26csp4652464ima; Mon, 4 Feb 2019 22:06:14 -0800 (PST) X-Google-Smtp-Source: AHgI3IarFJa8ErI3i+BEUsyWdsAnFRYDSKhJtTEouSeAdJ+mMQjcPqpwr0nikRWRNUwUy0fePItA X-Received: by 2002:a17:902:346:: with SMTP id 64mr3436716pld.337.1549346774075; Mon, 04 Feb 2019 22:06:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549346774; cv=none; d=google.com; s=arc-20160816; b=ZFFGUYT9rAKEla9Siv0/d44GTLy3vw0U1J+Hw9mDO9xOB9WfBhrktwETz+OqgDSm/p vs49zCqcVgeX7GXYie1pFzTz5gdu2Azkpil4FBn7bmzWByFXtqv94hhAVYe3mNk7M0Cs FjpawiW6Y3o8MaAmalXC9NvCOUyxFA4fN7E9Ry5LRhtrWVIX36Kbv5TWy+jA713+6v4X wSZmuX7onyuRLdRjR+5An6CopHmTvkatCp3e8nNBZqbQoJhs7hQ7gUSizNXJ/Ys47Gpr ymAbAQUhzvon4ycP9WntVCMKu1OpB3XtDRO0LLokSazkstr3lU5q5JiKb14OqBFziptf Gp1g== 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=R58VXnmcQsUtQ66r5EJzM8NXDWdDZjbuPCSxVpk2C04=; b=sI3Ez0dBTbwLLd16Hdo/yBytpO0cOm60cj+x9mFFSUr8XVyu0GxDDtCT/CO8lC/fqA 1Kle4wqRl+aIBrCvIDPAilSa6Elv6oMCwGOen9PoItxEiu/wE0qexH+XVgYtwzOSeGkZ sikd0xQgiXYfJXr47uZUH81PHeiOqOBAoPThCiccW3QwNeVZnEJJUhkwSO0ogoTzC8y1 qx04feYiCWCuU4Z3qncM+cJ3DcraWZFXbHpnplBpz9UhJONaIyaiW68zk/fDTsklpki7 b6hLJk2qJj3ilhr4CkwkayrwW7tT1ssQT1WRGNJSmI48fqBI8kxUu6rhRlnkrETflN8u pv4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mobiveil.co.in header.s=google header.b=SRE815C4; 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 u11si2220022pgo.474.2019.02.04.22.05.58; Mon, 04 Feb 2019 22:06:14 -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=SRE815C4; 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 S1727337AbfBEGFc (ORCPT + 99 others); Tue, 5 Feb 2019 01:05:32 -0500 Received: from mail-wm1-f66.google.com ([209.85.128.66]:39548 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725934AbfBEGFb (ORCPT ); Tue, 5 Feb 2019 01:05:31 -0500 Received: by mail-wm1-f66.google.com with SMTP id y8so2281220wmi.4 for ; Mon, 04 Feb 2019 22:05:30 -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=R58VXnmcQsUtQ66r5EJzM8NXDWdDZjbuPCSxVpk2C04=; b=SRE815C4N3sktm3vi9fx669wnGcjRJT9I7x1DlNmRwortUl/zUl0f6xdrnjuamG0lJ V+w/NRC2xDQ838y/irmlvhp1kG+5Fpiy2d2IKKMNXjoxY37/f2f1gwm+JAc4dDGdSKBo K1p5gkLFxZ73jk7SP0Mv349nWkqfkRcDOdamk= 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=R58VXnmcQsUtQ66r5EJzM8NXDWdDZjbuPCSxVpk2C04=; b=qoApHiFePQP8FhNMIn5B8wxSaUW+dRSwE8yCIn/KpOTDRNzO+15YH9RVgME6ccE2bq aOgN7v+DAkSviELSCP9ghSuxXJ7zqfgKeGo8ITzW9LPeRQNExdZu1D5wI1/f7Qv8djXo guw+Guri7jNrPVp2rDMA/H9EwVmRpFOGBsdyhz8iPcrbNI94FBouWVF3XODkFusif9Z2 JQkU8xLNW/PgWfF1MxEZGA7d2j4VmJF4ZVzeYlgAkFx/4DxmYzqBF3Z1JLlQFenaUKHh h4LszPmw+slsE8IZrdVy0Hj5rcqamRHtZcEY7HtvU0I7bXUHx9XsomsH22LrvvNkl2rO JqeQ== X-Gm-Message-State: AHQUAuY1EetNGvqkZfaDk42g+/x7FaFgTx91mdlHVdyUBC1fIjxaNkM3 EAYPtcdljTSmKTaBKRTttl1cagrqvYhH2suLgdR64yG6p3DnuA== X-Received: by 2002:a1c:9d57:: with SMTP id g84mr2253821wme.143.1549346729826; Mon, 04 Feb 2019 22:05:29 -0800 (PST) MIME-Version: 1.0 References: <20190129080926.36773-1-Zhiqiang.Hou@nxp.com> <20190129080926.36773-8-Zhiqiang.Hou@nxp.com> In-Reply-To: <20190129080926.36773-8-Zhiqiang.Hou@nxp.com> From: Subrahmanya Lingappa Date: Tue, 5 Feb 2019 11:38:03 +0530 Message-ID: Subject: Re: [PATCHv3 07/27] PCI: mobiveil: use WIN_NUM_0 explicitly for CFG outbound window 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 > > As the .map_bus() use the WIN_NUM_0 for CFG transactions, > it's better passing WIN_NUM_0 explicitly when initialize > the CFG outbound window. > > Signed-off-by: Hou Zhiqiang > Reviewed-by: Minghuan Lian > --- > V3: > - No change > > drivers/pci/controller/pcie-mobiveil.c | 5 ++--- > 1 file changed, 2 insertions(+), 3 deletions(-) > > diff --git a/drivers/pci/controller/pcie-mobiveil.c b/drivers/pci/controller/pcie-mobiveil.c > index b2cc9c097fc9..df71c11b4810 100644 > --- a/drivers/pci/controller/pcie-mobiveil.c > +++ b/drivers/pci/controller/pcie-mobiveil.c > @@ -612,9 +612,8 @@ static int mobiveil_host_init(struct mobiveil_pcie *pcie) > */ > > /* config outbound translation window */ > - program_ob_windows(pcie, pcie->ob_wins_configured, > - pcie->ob_io_res->start, 0, CFG_WINDOW_TYPE, > - resource_size(pcie->ob_io_res)); > + program_ob_windows(pcie, WIN_NUM_0, pcie->ob_io_res->start, 0, > + CFG_WINDOW_TYPE, resource_size(pcie->ob_io_res)); > > /* memory inbound translation window */ > program_ib_windows(pcie, WIN_NUM_1, 0, MEM_WINDOW_TYPE, IB_WIN_SIZE); > -- > 2.17.1 >