Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp1101640imc; Mon, 11 Mar 2019 06:33:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqzhxzsy/43cof2NQT0f0ORW9DL2D0KbsayXx778b6DyVgAUXt8yGAZ7lRvUjYleGAvsQHI+ X-Received: by 2002:a17:902:8643:: with SMTP id y3mr33530698plt.195.1552311227874; Mon, 11 Mar 2019 06:33:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552311227; cv=none; d=google.com; s=arc-20160816; b=gP6xfSGuUcNopC2REUt0iTntUgd9EzJ/yRBqW72331eVpUKegc1iGYtdRdLQGx6yLG WvHbssNjNrxbNbdYL4iTSyRnhKxoju9DruF7pQgTePgy2qZVm0yPm29Pz4XfvtFzjIV4 Ae+6VJ6zO9SMqP4zFQE0ajftWJdPIIW+bAHf8/dznF6RYOJ9kiixuK9eqrTRmjLATUZS GlEfm08qlPOwKsbWW9oNne6LmE+vGu/Bge96t/+TEIkFU4jWMq/Q4COXAMNcSZDdV6Lc WBVXi3/bAEDce+QOHTbmRSHrwazIcZ17lvpj1og7cai8PE1KtDRSzARu8YQSJ7cBNnyL tgiw== 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:dkim-signature; bh=1wiLvt7+61CTovnxPiD5a6L78NpJ6T30e4bkYSjBvWc=; b=E6rHpAs2iASprnul9LWMC7p1ZfiM+559RLgC/gRqT1LiQ28neWA0e10F4NuGVGaFFr gx181/TbLEQYEDWxtrC02WpDvd1HFSJ0/rODL47JJp6V/wByuho3H4DVpEzUp5SzngEY n212lnFO0+6SGTVdNkYocU8jaKEbbTRz8xwwAoiEhNRGj02KmoF1uZnvyNFQvLlV09db lFQzZMHVZ9gpZ8xUYb3eO6EGwNPmVc9rF+H4G4CnUPNyzyaUkDa3GzL02MX89Unh6gfU aPjDqvtIiVuK5iwow9qwuyXb0cSm5g7ju/a3PHDfATi/mMkN3hPBdp8ed5vf6Wo7SopB g1aQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ReQmeHrk; 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 p19si5412087plq.29.2019.03.11.06.33.32; Mon, 11 Mar 2019 06:33:47 -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=ReQmeHrk; 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 S1727517AbfCKNdO (ORCPT + 99 others); Mon, 11 Mar 2019 09:33:14 -0400 Received: from mail.kernel.org ([198.145.29.99]:38270 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727426AbfCKNdN (ORCPT ); Mon, 11 Mar 2019 09:33:13 -0400 Received: from localhost (50-82-46-41.client.mchsi.com [50.82.46.41]) (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 BF0B72147A; Mon, 11 Mar 2019 13:33:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1552311192; bh=FzmBTOYv3DlKkw61iNl06+QFZGEZ/z0t+KzY4FZ4t9o=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ReQmeHrkseghdTjlSkOu1EECP2CkfqlBDPPSFpSrpilimTMMH9sILYbsS+MyU633o 1xW4v1S5TCO/7Ce863cZKH2YvO1EZY1RLgTjjOG1wOW5DdcuVFPrwsu2ZqgYVpsVgL JwhQwyDlrHMPoVYjxFx2x251z39eWTJ+U56NSCbE= Date: Mon, 11 Mar 2019 08:33:10 -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" , "M.h. Lian" , Xiaowei Bao , Mingkai Hu Subject: Re: [PATCHv4 00/28] PCI: refactor Mobiveil driver and add PCIe Gen4 driver for NXP Layerscape SoCs Message-ID: <20190311133310.GE214730@google.com> References: <20190311093130.7209-1-Zhiqiang.Hou@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190311093130.7209-1-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 Hi, On Mon, Mar 11, 2019 at 09:29:54AM +0000, Z.q. Hou wrote: > From: Hou Zhiqiang > > This patch set is aim to refactor the Mobiveil driver and add > PCIe support for NXP Layerscape series SoCs integrated Mobiveil's > PCIe Gen4 controller. > > Hou Zhiqiang (28): > PCI: mobiveil: uniform the register accessors "uniform" is not a verb. Maybe "Unify register accessors"? > PCI: mobiveil: format the code without function change > PCI: mobiveil: correct the returned error number > PCI: mobiveil: remove flag MSI_FLAG_MULTI_PCI_MSI > PCI: mobiveil: correct PCI base address in MEM/IO outbound windows > PCI: mobiveil: replace the resource list iteration function > PCI: mobiveil: use WIN_NUM_0 explicitly for CFG outbound window > PCI: mobiveil: use the 1st inbound window for MEM inbound transactions > PCI: mobiveil: correct inbound/outbound window setup routines > PCI: mobiveil: fix the INTx process error > PCI: mobiveil: only fix up the Class Code field > PCI: mobiveil: move out the link up waiting from mobiveil_host_init Add parens for function names, e.g., "mobiveil_host_init()". This occurs several more times, including both subject lines and changelogs. > PCI: mobiveil: move irq chained handler setup out of DT parse Capitalize acronyms in English text (subject lines, changelogs, comments), e.g., s/irq/IRQ/ > PCI: mobiveil: initialize Primary/Secondary/Subordinate bus number > dt-bindings: pci: mobiveil: change gpio_slave and apb_csr to optional > PCI: mobiveil: refactor Mobiveil PCIe Host Bridge IP driver This should give a hint about the purpose of refactoring. Sounds like it's to make it easier to support both host and endpoint mode? > PCI: mobiveil: fix the checking of valid device > PCI: mobiveil: add link up condition check > PCI: mobiveil: continue to initialize the host upon no PCIe link > PCI: mobiveil: disabled IB and OB windows set by bootloader > PCI: mobiveil: add Byte and Half-Word width register accessors "Byte" and "Half-Word" do not need to be capitalized. Also, the changelog has a typo: "Half-Work" for "half-word". > PCI: mobiveil: make mobiveil_host_init can be used to re-init host Here's another of the places that need parens after the function name. > dt-bindings: pci: Add NXP Layerscape SoCs PCIe Gen4 controller > PCI: mobiveil: add PCIe Gen4 RC driver for NXP Layerscape SoCs > PCI: mobiveil: ls_pcie_g4: add Workaround for A-011577 > PCI: mobiveil: ls_pcie_g4: add Workaround for A-011451 The reader of these changelogs likely doesn't know what internal identifiers like "A-011577" mean, but *does* want a hint about what problem is being fixed and what platforms are affected. So instead of the "ls_pcie_g4:" prefix, use something like: PCI: mobiveil: Work around LX2160A r1.0 config access erratum PCI: mobiveil: Work around LX2160A r1.0 split completion erratum and mention the erratum ID (A-011577) in the changelog. If you can include the actual erratum text in the changelog, that would be even better. s/ERRATA/errata/ in the changelogs. > arm64: dts: freescale: lx2160a: add pcie DT nodes "PCIe" > arm64: defconfig: Enable CONFIG_PCI_LAYERSCAPE_GEN4 I already asked you once [1] to: please pay attention to the changelog conventions, e.g., capitalize the first word of the sentence ("Remove flag ...", "Correct PCI base address ...", etc), capitalize acronyms like "PCI" and "IRQ", use parentheses after function names, etc. You can see the conventions by running "git log --oneline drivers/pci/controller". For example, instead of this: PCI: mobiveil: add link up condition check it should be this: PCI: mobiveil: Add link up condition check Please wait at least a few days before posting a v5 in case there are other comments. Bjorn [1] https://lore.kernel.org/linux-pci/20190130153447.GB229773@google.com