Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp457074yba; Fri, 12 Apr 2019 07:02:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqwgdkHvw2n+jnUt5ghJ7iRHd49/TZhf40pDQ/G+IbLNlYo99L2NbjwehfvfIKQLO653YVfD X-Received: by 2002:a17:902:b60d:: with SMTP id b13mr58081446pls.100.1555077723809; Fri, 12 Apr 2019 07:02:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555077723; cv=none; d=google.com; s=arc-20160816; b=cqkeVypgzLeU6wspRTWCQOyaGm2l44HXuWeQ42a0Tnd4LvayQn30YCUzIPNxrAcuO5 kTSfrU5BXYLGnUCdZN1naEvuFI+jfnZrZTbhHe7WlPkr3BHJAJottlZrIt1daD0e2s48 tJruITHlIMu1eix7cjE2CBQjpGAXLQK5KSCI6Ilbq/uFdo+Q9nwwgzX5zfhlGCR+mEar HLLppoWOhGEvG3EMSZI0nlXtjaQSsYbM6jINK7yB3i41xeQIYSMbI4alUkhI2T6fIJtK vum1YK1TWBMeixq1cBrUmxYwzSU7B27SZ5e5QpsEnJcZWKjdvKI6MIw401G63hizHsOY VyKQ== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=WGCfuTXpqJnv8vUfBXK1wGKiIeH+bOMo3BT1pirBIV8=; b=eNtxip3LFoWLRBtBGNBj3gmai3NmeP9tWYXtzH/dD/LzF5jzONTKeAvoHiM0EK7O67 AbI3jUWioyI6hH97xBx0iMwX7QnGwPGPet9PcZScFIVOUgi2bSmnZN9Qvg/NZNb+DfjB KEpp3tJRKDIKFrGVVuGvfp31uE0EzHYwGnYXQRceOkrH/ZTiBuqUcjfQeFBe7EMzVNNk Ig77uKMdjZb76QpUQNxEK7aSRQeplUnav7ZqUA39kUl2JPAkWw8NPQPCZgs1rtQX05L0 Y4c0j2RRCLLrKUk2rdnL9J4xq7zmYkkaWzoWGgSoadHJN3iqldEcgv2WWMM5fddlWESj VjBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=UTpFg69I; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r5si37081734pls.46.2019.04.12.07.01.47; Fri, 12 Apr 2019 07:02:03 -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=@kernel.org header.s=default header.b=UTpFg69I; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726898AbfDLOAo (ORCPT + 99 others); Fri, 12 Apr 2019 10:00:44 -0400 Received: from mail.kernel.org ([198.145.29.99]:48552 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726711AbfDLOAo (ORCPT ); Fri, 12 Apr 2019 10:00:44 -0400 Received: from localhost (173-25-63-173.client.mchsi.com [173.25.63.173]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id C3CBE206BA; Fri, 12 Apr 2019 14:00:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1555077643; bh=nijqsap55XUBbZCPEQ18QWXyKoM2eiWnVLRWc9vjpFA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=UTpFg69Irfxx+z7ULeCgkbr6LWenQJGbARB0olr18CwrekCJQTkNbkgrM3/gVXS0O t08W0Tebf8ESHMEbYQx+PXtEKGxRpCaQ0haI4tzur+xvuG8lB3AeuxoPmaN7Q/XSPW 4QLetd+Vax7ZNZUfJ6CNMFEmjYhJnbMYoA8pmZnQ= Date: Fri, 12 Apr 2019 09:00:41 -0500 From: Bjorn Helgaas 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" , "robh+dt@kernel.org" , "mark.rutland@arm.com" , "l.subrahmanya@mobiveil.co.in" , "shawnguo@kernel.org" , Leo Li , "lorenzo.pieralisi@arm.com" , "catalin.marinas@arm.com" , "will.deacon@arm.com" , Mingkai Hu , "M.h. Lian" , Xiaowei Bao Subject: Re: [PATCHv5 4/6] PCI: mobiveil: Add PCIe Gen4 RC driver for NXP Layerscape SoCs Message-ID: <20190412140041.GA141472@google.com> References: <20190412095332.41370-1-Zhiqiang.Hou@nxp.com> <20190412095332.41370-5-Zhiqiang.Hou@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20190412095332.41370-5-Zhiqiang.Hou@nxp.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 12, 2019 at 09:52:50AM +0000, Z.q. Hou wrote: > From: Hou Zhiqiang > > This PCIe controller is based on the Mobiveil GPEX IP, which is > compatible with the PCI Express™ Base Specification, Revision 4.0. > > Signed-off-by: Hou Zhiqiang > Reviewed-by: Minghuan Lian > --- > V5: > - Corrected the subject. > - Corrected 2 typos. > - Updated the Copyright and driver description. > - Changed to use BIT(x) to define verious functions of register's bits. > - Unified the capitalization of error info. > - Changed the IRQ handler name to ls_pcie_g4_isr(). > - Change 'irq' to 'IRQ' in error info. > - Trimmed some functions without functionality change. > > drivers/pci/controller/mobiveil/Kconfig | 10 + > drivers/pci/controller/mobiveil/Makefile | 1 + > .../controller/mobiveil/pci-layerscape-gen4.c | 256 ++++++++++++++++++ I would probably name this "pcie-layerscape-gen4.c" ("pcie" instead of "pci"), since that's more typical and this really is PCIe-specific. > +#define PCIE_PF_DBG 0x7fc > +#define PF_DBG_LTSSM_MASK 0x3f > +#define PF_DBG_WE BIT(31) > +#define PF_DBG_PABR BIT(27) > + > +#define LS_PCIE_G4_LTSSM_L0 0x2d /* L0 state */ Maybe rename this and move it to make it obvious that it's related to PF_DBG_LTSSM_MASK? > + dev_err(dev, "Poll PABRST&PABACT timeout.\n"); No need for punctuation at end of messages.