Received: by 2002:ac0:8c9a:0:0:0:0:0 with SMTP id r26csp4655411ima; Mon, 4 Feb 2019 22:10:03 -0800 (PST) X-Google-Smtp-Source: AHgI3IaLdjIvfxpBRGNzo8m6dHjEA/ulCMk2Y5aMtDzuE33NVFClQqp71O92gq55SJudnB7z/tsz X-Received: by 2002:a62:6f49:: with SMTP id k70mr3284388pfc.7.1549347003710; Mon, 04 Feb 2019 22:10:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549347003; cv=none; d=google.com; s=arc-20160816; b=kkegOGQl0mt8EbBADev9BV2Y80x3bLq0WzvTwKyshOb5G2n9ZjwrcXlO48IKeSm9se jJQCJL94HiLxtJ124QRdRKQrXWnPHAhR1G99FzdITGRtvpMn1OtHvzZnorh8dlq6HVIB g7AWOT6JNv6jbWawDRgMlrUH8UBCCZv7kb770LmLBANoci2/25npL1Xd8IOgLqP0Psl3 R5F5caHqSB931v7xX1Y+65FPDJ2EdrRF4vyfklorH0mN60O49p0mcbcX77/UBcw9EgTK YSuCelRS76hdA5XFvGn7U+e8WvnAZ3oFuql5ur4RWzCSWtIo+HhSKoqDGflFRqrxiXpY Nwpg== 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=lcuTAIKDk5Jru1SXfKsJlExjF4BZoU+yuw8KbMKy3Xg=; b=Ua7O1+cxeG/0fIbNmXLdOVup2A+7gw+gUgRuP4GChSHQStmPcwXGas6/6IBHUgzwnZ 6yhWUC5YQa/Wg86GVCFYCBmcYAvcL4/9pqefSkCvoeAa6uGHZbRS2kV3pXUpUa3gjmjQ MXLryiaZhGvOKu5EXmJ5PBc121TnjSVqZ/p6bIKzzVjNuzBz5P+jW5AVcy/OAT2Au/2U NAr/GqnT8zDe40njoA5BQDVghDgb3yxxhyhc27ZbahX/3O80cTRFAKYE2UF7IgiJerQF nt2yTEaVhDQTsaMdVpBlP+xe9KkFNIHIlKVw+AGtxceG/D8YDNXcANbJSRycClVc1dgZ eMaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mobiveil.co.in header.s=google header.b=aHKYf56s; 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 g3si2335875pgo.595.2019.02.04.22.09.47; Mon, 04 Feb 2019 22:10:03 -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=aHKYf56s; 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 S1727673AbfBEGJP (ORCPT + 99 others); Tue, 5 Feb 2019 01:09:15 -0500 Received: from mail-wm1-f66.google.com ([209.85.128.66]:51596 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727478AbfBEGJP (ORCPT ); Tue, 5 Feb 2019 01:09:15 -0500 Received: by mail-wm1-f66.google.com with SMTP id b11so2252467wmj.1 for ; Mon, 04 Feb 2019 22:09:13 -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=lcuTAIKDk5Jru1SXfKsJlExjF4BZoU+yuw8KbMKy3Xg=; b=aHKYf56soptJIGbTxy7Ay36ZHzUZt9ByQKrEbQ7YWyTZVa+yiJZOJHfEKe98OTeMoS Ljq2AWY7gjINK4jUO3Z9Z7PD/iKhdYAFp/MgKTrbZdzECgYkGrc91tdIBO29k8lt0mRX FBKJTN6RWQS6W35+KhHDJ1ni4pNvaHl/6QKSo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=lcuTAIKDk5Jru1SXfKsJlExjF4BZoU+yuw8KbMKy3Xg=; b=eyi+c+iDpUwZq/MHk16Trnq5nv1MWHlbhzjK88tdAZJdzubNzFrnlZdRDvn59CsAVC xZJjPH/1fD51V5mkolwfmLYdww2I37LydEEPI39EKB7BUUMq9CLfPX5nGn5JMTd/0HSu TdM+UMaxMOvjuD7xwyNADXl4FqBTq8KGQYudU3Vbye5vAqY9ASACpJ4DxsbQ/kM9mbft 5025t6C+ZcWaS6E98q+sie8mVOCAOHNyQokjFDr/V4/Q50038gukSNrM4pbzu5p5efkO gT2opvv8wiCf3SbzE7DqVWyXibnURvzVFZJN3wyviyYM06CJxRcfye867WPHHd7AN+/2 2GSw== X-Gm-Message-State: AHQUAuZy9k/K+cSfMlFDle8F9qHsCFpzKWxZZrvINUN5D9PBfd4vYEuz /l1mUX6Li0GezaYhVL3hYQ60xfPO/SA668UdZNqJPg== X-Received: by 2002:a1c:2d44:: with SMTP id t65mr1986937wmt.0.1549346952749; Mon, 04 Feb 2019 22:09:12 -0800 (PST) MIME-Version: 1.0 References: <20190129080926.36773-1-Zhiqiang.Hou@nxp.com> <20190129080926.36773-12-Zhiqiang.Hou@nxp.com> In-Reply-To: <20190129080926.36773-12-Zhiqiang.Hou@nxp.com> From: Subrahmanya Lingappa Date: Tue, 5 Feb 2019 11:41:46 +0530 Message-ID: Subject: Re: [PATCHv3 11/27] PCI: mobiveil: only fix up the Class Code field 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 > > Fix up the Class Code to PCI bridge, do not change the Revision ID. > And move the fixup to mobiveil_host_init function. > > 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 | 9 ++++++--- > 1 file changed, 6 insertions(+), 3 deletions(-) > > diff --git a/drivers/pci/controller/pcie-mobiveil.c b/drivers/pci/controller/pcie-mobiveil.c > index 78e575e71f4d..8eee1ab7ee24 100644 > --- a/drivers/pci/controller/pcie-mobiveil.c > +++ b/drivers/pci/controller/pcie-mobiveil.c > @@ -653,6 +653,12 @@ static int mobiveil_host_init(struct mobiveil_pcie *pcie) > type, resource_size(win->res)); > } > > + /* fixup for PCIe class register */ > + value = csr_readl(pcie, PAB_INTP_AXI_PIO_CLASS); > + value &= 0xff; > + value |= (PCI_CLASS_BRIDGE_PCI << 16); > + csr_writel(pcie, value, PAB_INTP_AXI_PIO_CLASS); > + > /* setup MSI hardware registers */ > mobiveil_pcie_enable_msi(pcie); > > @@ -896,9 +902,6 @@ static int mobiveil_pcie_probe(struct platform_device *pdev) > goto error; > } > > - /* fixup for PCIe class register */ > - csr_writel(pcie, 0x060402ab, PAB_INTP_AXI_PIO_CLASS); > - > /* initialize the IRQ domains */ > ret = mobiveil_pcie_init_irq_domain(pcie); > if (ret) { > -- > 2.17.1 >