Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp4504643img; Tue, 26 Mar 2019 10:38:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqwFHeJuHPJ/63J3ly3+Xy+nj2ZSF5VSaG51HFurY3xK/wx89ea3ApO0nI1dG/uGMnjuFPJk X-Received: by 2002:a62:7049:: with SMTP id l70mr31059140pfc.78.1553621919667; Tue, 26 Mar 2019 10:38:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553621919; cv=none; d=google.com; s=arc-20160816; b=igZTSz5ADj7//0trdTsxP0Elf3BGoYsird8cA8AanS+TQa5m3fTZ0Q0Tkz6Pd4WP3B Ft7X23suDNzwiqT+1w0zvdcWXkxo3HcdqY/FL1sAz8zpSn8WaNmz5BObknMUD4OMbj8Q s5lwlgPFAeabfGZD+9wIvsH4f29MvoU5H+02P0IzdrGYAv5FAZT4bDLnBGujel/sD7hu d0UIXENfNwJuWqMWNJXslGoPV9TtD10rS3zUFEVw4U4ceXe9i+0o0JrPcJ36ctjR8oGf Vyb0BnefnY84trnYU8wrX5qJ6EZy/R0dUSQt0wG820FMF/pcl14xo5Iihcw5JO7R1MAI Mf8A== 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; bh=TT8iV5ytyU6f0N3axK89W/FRzVF462buiPuvaFFZK4g=; b=CVvKEhOyrOPJoEkKD4Qk8RoRCnQoDyanGyin9YNLq/bw5icFH32tTNfn3rTr23Nisa MElOOUHmVw5HS7SzOv0ApFCmezpLlJBQfRsUverqy21mezhzZljVl0gxEezVGp7y+u1P nFYA3NwvRJBbJMQ1gbblJfBI9sD7viR2yj6wvin0qvWsbUy9BnyQjsoiS4ec5S3kWdZW KHN6G9SMYdEIoKfLf8DAStONcHnSkOt1xQr7aIBy1F3NifSBDfqwVcf7VqwCPrEUFvPU hBH+h2gHYu2w5ZOxNYcVEP3Ytwh1OxKQn8xHjcTVZA1jy+Eop2CPdoRUTdI1wgtsUDR9 VbwQ== ARC-Authentication-Results: i=1; mx.google.com; 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 y11si16827525plk.323.2019.03.26.10.38.24; Tue, 26 Mar 2019 10:38:39 -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; 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 S1731940AbfCZRhg (ORCPT + 99 others); Tue, 26 Mar 2019 13:37:36 -0400 Received: from foss.arm.com ([217.140.101.70]:41384 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726258AbfCZRhg (ORCPT ); Tue, 26 Mar 2019 13:37:36 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id A0474374; Tue, 26 Mar 2019 10:37:35 -0700 (PDT) Received: from e107981-ln.cambridge.arm.com (e107981-ln.cambridge.arm.com [10.1.197.40]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id F2CB43F614; Tue, 26 Mar 2019 10:37:32 -0700 (PDT) Date: Tue, 26 Mar 2019 17:37:30 +0000 From: Lorenzo Pieralisi 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" , "l.subrahmanya@mobiveil.co.in" , "shawnguo@kernel.org" , Leo Li , "catalin.marinas@arm.com" , "will.deacon@arm.com" , Mingkai Hu , "M.h. Lian" , Xiaowei Bao Subject: Re: [PATCHv4 00/28] PCI: refactor Mobiveil driver and add PCIe Gen4 driver for NXP Layerscape SoCs Message-ID: <20190326173730.GC10666@e107981-ln.cambridge.arm.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.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 > 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 > PCI: mobiveil: move irq chained handler setup out of DT parse > 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 > 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 > PCI: mobiveil: make mobiveil_host_init can be used to re-init host > 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 > arm64: dts: freescale: lx2160a: add pcie DT nodes > arm64: defconfig: Enable CONFIG_PCI_LAYERSCAPE_GEN4 > > .../bindings/pci/layerscape-pci-gen4.txt | 52 ++ > .../devicetree/bindings/pci/mobiveil-pcie.txt | 2 + > MAINTAINERS | 10 +- > .../arm64/boot/dts/freescale/fsl-lx2160a.dtsi | 163 ++++ > arch/arm64/configs/defconfig | 1 + > drivers/pci/controller/Kconfig | 11 +- > drivers/pci/controller/Makefile | 2 +- > drivers/pci/controller/mobiveil/Kconfig | 34 + > drivers/pci/controller/mobiveil/Makefile | 5 + > .../controller/mobiveil/pci-layerscape-gen4.c | 306 +++++++ > .../controller/mobiveil/pcie-mobiveil-host.c | 640 +++++++++++++ > .../controller/mobiveil/pcie-mobiveil-plat.c | 54 ++ > .../pci/controller/mobiveil/pcie-mobiveil.c | 246 +++++ > .../pci/controller/mobiveil/pcie-mobiveil.h | 229 +++++ > drivers/pci/controller/pcie-mobiveil.c | 861 ------------------ > 15 files changed, 1743 insertions(+), 873 deletions(-) > create mode 100644 Documentation/devicetree/bindings/pci/layerscape-pci-gen4.txt > create mode 100644 drivers/pci/controller/mobiveil/Kconfig > create mode 100644 drivers/pci/controller/mobiveil/Makefile > create mode 100644 drivers/pci/controller/mobiveil/pci-layerscape-gen4.c > create mode 100644 drivers/pci/controller/mobiveil/pcie-mobiveil-host.c > create mode 100644 drivers/pci/controller/mobiveil/pcie-mobiveil-plat.c > create mode 100644 drivers/pci/controller/mobiveil/pcie-mobiveil.c > create mode 100644 drivers/pci/controller/mobiveil/pcie-mobiveil.h > delete mode 100644 drivers/pci/controller/pcie-mobiveil.c This patch series is a mixture of fixes, refactoring and development and to be frank it is a bit hard to review. Keeping in mind all the review comments already received and that I expect you to integrate, do you mind splitting it in logical series each one serving a specific purpose (eg fixes, Layerscape support, etc.) ? Let's start with posting and merging the fixes first. Thank you very much. Lorenzo