RE: [PATCHv2 0/3] arm64: dts: ls1012a: add the DTS node for DSPI support

2017-09-20 Thread Z.q. Hou
Hi Shawn, > -Original Message- > From: Shawn Guo [mailto:shawn...@kernel.org] > Sent: 2017年9月20日 22:11 > To: Z.q. Hou <zhiqiang@nxp.com> > Cc: linux-arm-ker...@lists.infradead.org; devicet...@vger.kernel.org; > linux-kernel@vger.kernel.org; dw...@infradead

RE: [PATCHv4 1/9] irqchip/ls-scfg-msi: fix typo of MSI compatible strings

2017-08-29 Thread Z.q. Hou
t; To: linux-arm-ker...@lists.infradead.org; devicet...@vger.kernel.org; > linux-kernel@vger.kernel.org; t...@linutronix.de; ja...@lakedaemon.net; > marc.zyng...@arm.com; robh...@kernel.org; mark.rutl...@arm.com; > li...@armlinux.org.uk; shawn...@kernel.org; M.h. Lian > <minghuan.l

RE: [PATCHv4 1/9] irqchip/ls-scfg-msi: fix typo of MSI compatible strings

2017-08-31 Thread Z.q. Hou
Hi Marc, > -Original Message- > From: Marc Zyngier [mailto:marc.zyng...@arm.com] > Sent: 2017年8月31日 23:16 > To: Z.q. Hou <zhiqiang@nxp.com>; linux-arm-ker...@lists.infradead.org; > devicet...@vger.kernel.org; linux-kernel@vger.kernel.org; t...@linutronix.de; &

RE: [PATCH 1/2] PCI: Disable MSI for Freescale PCIe RC mode

2017-10-11 Thread Z.q. Hou
Hi Bjorn, Thanks a lot for your comments! > -Original Message- > From: Bjorn Helgaas [mailto:helg...@kernel.org] > Sent: 2017年10月12日 3:38 > To: Z.q. Hou <zhiqiang@nxp.com> > Cc: linux-kernel@vger.kernel.org; linux-arm-ker...@lists.infradead.org; > linux-..

RE: [PATCH 2/2] pci/layerscape: change the default error response behavior

2017-10-11 Thread Z.q. Hou
Hi Bjorn, Thanks a lot for your review! > -Original Message- > From: Bjorn Helgaas [mailto:helg...@kernel.org] > Sent: 2017年10月12日 3:41 > To: Z.q. Hou <zhiqiang@nxp.com> > Cc: linux-kernel@vger.kernel.org; linux-arm-ker...@lists.infradead.org; > linux-..

RE: [PATCH 1/2] mtd: spi-nor: add a API to restore the addressing mode

2017-12-01 Thread Z.q. Hou
Hi Cyrille, Thanks a lot for your comments! > -Original Message- > From: Cyrille Pitchen [mailto:cyrille.pitc...@wedev4u.fr] > Sent: 2017年12月1日 16:53 > To: Z.q. Hou <zhiqiang@nxp.com>; linux-...@lists.infradead.org; > linux-kernel@vger.kernel.org; computersfor

RE: [PATCH 2/2] mtd: m25p80: restore the addressing mode when stop using the flash

2017-12-01 Thread Z.q. Hou
Hi Cyrille, Thanks for your comments! > -Original Message- > From: Cyrille Pitchen [mailto:cyrille.pitc...@wedev4u.fr] > Sent: 2017年12月1日 16:58 > To: Z.q. Hou <zhiqiang@nxp.com>; linux-...@lists.infradead.org; > linux-kernel@vger.kernel.org; computersfor

RE: [PATCH 2/2] Documentation: fsl: dspi: Add a compatible string for ls1088a DSPI

2017-11-01 Thread Z.q. Hou
Hi Rob, Thanks a lot for the ack! > -Original Message- > From: Rob Herring [mailto:r...@kernel.org] > Sent: 2017年11月2日 8:14 > To: Z.q. Hou <zhiqiang@nxp.com> > Cc: linux-arm-ker...@lists.infradead.org; linux-kernel@vger.kernel.org; > devicet..

RE: [PATCHv2 0/2] mtd: m25p80: restore the addressing mode when stop using the flash

2017-12-05 Thread Z.q. Hou
Hi Cyrille, Thanks a lot for your comments! > -Original Message- > From: Cyrille Pitchen [mailto:cyrille.pitc...@wedev4u.fr] > Sent: 2017年12月6日 4:41 > To: Z.q. Hou <zhiqiang@nxp.com>; linux-...@lists.infradead.org; > linux-kernel@vger.kernel.org; computersfor

RE: linux-next: manual merge of the spi-nor tree with the imx-mxs tree

2017-10-30 Thread Z.q. Hou
Hi Cyrille, > -Original Message- > From: Cyrille Pitchen [mailto:cyrille.pitc...@wedev4u.fr] > Sent: 2017年10月31日 8:43 > To: Mark Brown <broo...@kernel.org>; Yuan Yao <yao.y...@nxp.com>; Z.q. > Hou <zhiqiang@nxp.com>; Rob Herring <r...@kernel.or

RE: [PATCH] PCI/Layerscape: fix wrongly invoking of outbound window disable accessor

2018-10-25 Thread Z.q. Hou
Hi Bjorn, Thanks a lot for your comments! > -Original Message- > From: Bjorn Helgaas > Sent: 2018年10月25日 21:45 > To: Z.q. Hou > Cc: linux-...@vger.kernel.org; linux-kernel@vger.kernel.org; > bhelg...@google.com; lorenzo.pieral...@arm.com; Roy Zang > ; M.h. Lian

RE: [PATCH 1/4] doc/layerscape-pci: update the PCIe compatible strings

2018-10-25 Thread Z.q. Hou
Hi Rob, Thanks a lot for your comments! > -Original Message- > From: Rob Herring > Sent: 2018年10月17日 21:52 > To: Z.q. Hou > Cc: linux-arm-ker...@lists.infradead.org; linux-kernel@vger.kernel.org; > linux-...@vger.kernel.org; devicet...@vger.kernel.org; Leo Li >

RE: [PATCH 2/4] doc/layerscape-pci: removed unsuitable compatible string

2018-10-25 Thread Z.q. Hou
Thanks Rob! > -Original Message- > From: Rob Herring > Sent: 2018年10月17日 21:53 > To: Z.q. Hou > Cc: linux-arm-ker...@lists.infradead.org; linux-kernel@vger.kernel.org; > linux-...@vger.kernel.org; devicet...@vger.kernel.org; Leo Li > ; shawn...@kernel.org; mark.rut

[PATCH v2 3/4] dts/arm/ls1021a: Clean PCIe controller compatible strings

2018-10-25 Thread Z.q. Hou
From: Hou Zhiqiang Removed the wrong compatible string "snps,dw-pcie", in case match incorrect driver. Signed-off-by: Hou Zhiqiang --- V2: - no change arch/arm/boot/dts/ls1021a.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/ls1021a.dtsi

[PATCH v2 4/4] dts/arm64/layerscape: Clean PCIe controller compatible strings

2018-10-25 Thread Z.q. Hou
From: Hou Zhiqiang Removed the wrong compatible string "snps,dw-pcie", in case match incorrect driver. Signed-off-by: Hou Zhiqiang --- V2: - no change arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi | 2 +- arch/arm64/boot/dts/freescale/fsl-ls1043a.dtsi | 6 +++---

[PATCH v2 0/4] dts/layerscape-pci: removed unsuitable compatible string

2018-10-25 Thread Z.q. Hou
From: Hou Zhiqiang Removed the compatible string "snps,dw-pcie" from FSL layerscape-pci compatible string list. Hou Zhiqiang (4): dt-bindings: pci: layerscape-pci: add compatible strings "fsl,ls1043a-pcie" dt-bindings: pci: layerscape-pci: removed compatible string "snps,dw-pcie"

[PATCH v2 1/4] dt-bindings: pci: layerscape-pci: add compatible strings "fsl,ls1043a-pcie"

2018-10-25 Thread Z.q. Hou
From: Hou Zhiqiang The PCIe compatible string for LS1043A was lost, so add it. Signed-off-by: Hou Zhiqiang --- V2: - Improved the subject and corrected 'PCIe' casing. Documentation/devicetree/bindings/pci/layerscape-pci.txt | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH v2 2/4] dt-bindings: pci: layerscape-pci: removed compatible string "snps,dw-pcie"

2018-10-25 Thread Z.q. Hou
From: Hou Zhiqiang Removed the compatible string "snps,dw-pcie", it is for the reference platform driver for PCI RC IP Protoyping Kits based on the ARC SDP, so it is not suitable for all platform with designware PCIe controller, and platform vendors have themselves' drivers. The compatible

[PATCH 1/4] PCI/dwc: fix potential memory leak

2018-10-25 Thread Z.q. Hou
From: Hou Zhiqiang Free the allocated pci_host_bridge struct when failed to get host bridge resources, and free the resource windows before free the bridge. Signed-off-by: Hou Zhiqiang --- drivers/pci/controller/dwc/pcie-designware-host.c | 3 ++- 1 file changed, 2 insertions(+), 1

[PATCH 2/4] PCI/dwc: Fix the 4GiB outbound window size truncated to zero issue

2018-10-25 Thread Z.q. Hou
From: Hou Zhiqiang The current type of mem_size is 'u32', so when resource_size() return 4G it will be truncated to zero. This patch fix it by changing its type to 'u64'. Signed-off-by: Hou Zhiqiang --- drivers/pci/controller/dwc/pcie-designware.c | 4 ++--

[PATCH 4/4] PCI/dwc: Add more than 4GiB range support

2018-10-25 Thread Z.q. Hou
From: Hou Zhiqiang As each viewport support upto 4GiB, to support greater than 4GiB range we need multiple viewport for MEM windows. And this patch explicitly assigned the last (if there are only 2 viewports) or last 2 viewports for CFG and IO windows and the rests for MEM windows.

[PATCH] PCI/Layerscape: fix wrongly invoking of outbound window disable accessor

2018-10-25 Thread Z.q. Hou
From: Hou Zhiqiang This issue is introduced by commit 4a2745d760fac ("PCI: layerscape: Disable outbound windows configured by bootloader"). Signed-off-by: Hou Zhiqiang --- drivers/pci/controller/dwc/pci-layerscape.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH 0/4] PCI/dwc: Add more than 4GiB range support

2018-10-25 Thread Z.q. Hou
From: Hou Zhiqiang This patch set is to add greater than 4GiB range support, patch 4/4. Patch 3/4 is to initialize the number of viewport. BTW, fix 2 bugs, see patch 1/4 and 2/4. Hou Zhiqiang (4): PCI/dwc: fix potential memory leak PCI/dwc: Fix the 4GiB outbound window size truncated to

[PATCH 3/4] PCI/layerscape: initialize the number of viewport

2018-10-25 Thread Z.q. Hou
From: Hou Zhiqiang FSL implements 6 viewports on Layerscape series SoCs. Signed-off-by: Hou Zhiqiang --- drivers/pci/controller/dwc/pci-layerscape.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/pci/controller/dwc/pci-layerscape.c

RE: [PATCH 15/23] dt-bindings: pci: mobiveil: change gpio_slave and apb_csr to optional

2018-11-12 Thread Z.q. Hou
Hi Rob, Thanks a lot for your ACK! > -Original Message- > From: Rob Herring > Sent: 2018年11月13日 2:13 > To: Z.q. Hou > Cc: linux-...@vger.kernel.org; linux-arm-ker...@lists.infradead.org; > devicet...@vger.kernel.org; linux-kernel@vger.kernel.org; > bhelg...@

RE: [PATCH 21/23] dt-bindings: pci: Add NXP LX SoCs PCIe controller

2018-11-11 Thread Z.q. Hou
Hi Leo, Thanks a lot for your comments! > -Original Message- > From: Leo Li > Sent: 2018年11月9日 5:29 > To: Z.q. Hou ; linux-...@vger.kernel.org; > linux-arm-ker...@lists.infradead.org; devicet...@vger.kernel.org; > linux-kernel@vger.kernel.org; bhelg...@google.com;

[PATCHv2 0/4] PCI: dwc: add prefetchable memory range support

2018-11-07 Thread Z.q. Hou
From: Hou Zhiqiang This patch set is to add prefetchable memory range support, patch 4/4. Patch 3/4 is to initialize the number of viewport for layerscape PCIe. BTW, fix 2 bugs, see patch 1/4 and 2/4. Hou Zhiqiang (4): PCI: dwc: fix potential memory leak PCI: dwc: fix 4GiB outbound window

[PATCHv2 1/4] PCI: dwc: fix potential memory leak

2018-11-07 Thread Z.q. Hou
From: Hou Zhiqiang Free the allocated pci_host_bridge struct when failed to get host bridge resources, and free the resource windows before free the bridge. Signed-off-by: Hou Zhiqiang Acked-by: Gustavo Pimentel --- V2: - Reworded the subject.

[PATCHv2 3/4] PCI: layerscape: initialize the number of viewport

2018-11-07 Thread Z.q. Hou
From: Hou Zhiqiang FSL implements 6 viewports on Layerscape series SoCs PCIe controllers. Signed-off-by: Hou Zhiqiang --- V2: - Reworded the subject and commit description. drivers/pci/controller/dwc/pci-layerscape.c | 3 +++ 1 file changed, 3 insertions(+) diff --git

[PATCHv2 4/4] PCI: dwc: add prefetchable memory range support

2018-11-07 Thread Z.q. Hou
From: Hou Zhiqiang The current code only support non-prefetchable memory range, as the non-prefetchable memory range must not be greater than 4GiB, one viewport can cover it, which supports upto 4GiB. To support prefetchable memory range, which is upto 64-bit memory space and can be greater

[PATCHv2 2/4] PCI: dwc: fix 4GiB outbound window size truncated to zero issue

2018-11-07 Thread Z.q. Hou
From: Hou Zhiqiang The current type of mem_size is 'u32', so when resource_size() return 4G it will be truncated to zero. This patch fix it by changing its type to 'u64'. Signed-off-by: Hou Zhiqiang Acked-by: Gustavo Pimentel --- V2: - Reworded the subject.

RE: [PATCH v2 3/4] dts/arm/ls1021a: Clean PCIe controller compatible strings

2018-11-06 Thread Z.q. Hou
Hi Leo, Thanks a lot for your comments! > -Original Message- > From: Li Yang > Sent: 2018年10月27日 4:58 > To: Z.q. Hou > Cc: moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE > ; lkml ; > linux-...@vger.kernel.org; open list:OPEN FIRMWARE AND FLATTENED > DE

[PATCHv3 2/4] dt-bindings: pci: layerscape-pci: removed compatible string "snps,dw-pcie"

2018-11-06 Thread Z.q. Hou
From: Hou Zhiqiang Removed the compatible string "snps,dw-pcie", it is for the reference platform driver for PCI RC IP Protoyping Kits based on the ARC SDP, so it is not suitable for all platform with designware PCIe controller, and platform vendors have themselves' drivers. The compatible

[PATCHv3 3/4] ARM: dts: ls1021a: removed compatible string "snps,dw-pcie"

2018-11-06 Thread Z.q. Hou
From: Hou Zhiqiang Removed the wrong compatible string "snps,dw-pcie", in case match incorrect driver. Signed-off-by: Hou Zhiqiang --- V3: - Reworded the subject. arch/arm/boot/dts/ls1021a.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[PATCHv3 0/4] dts/layerscape-pci: removed unsuitable compatible string

2018-11-06 Thread Z.q. Hou
From: Hou Zhiqiang Removed the compatible string "snps,dw-pcie" from FSL layerscape-pci compatible string list. Hou Zhiqiang (4): dt-bindings: pci: layerscape-pci: add compatible strings "fsl,ls1043a-pcie" dt-bindings: pci: layerscape-pci: removed compatible string "snps,dw-pcie"

[PATCHv3 1/4] dt-bindings: pci: layerscape-pci: add compatible strings "fsl,ls1043a-pcie"

2018-11-06 Thread Z.q. Hou
From: Hou Zhiqiang The PCIe compatible string for LS1043A was lost, so add it. Signed-off-by: Hou Zhiqiang Reviewed-by: Rob Herring --- V3: - no change Documentation/devicetree/bindings/pci/layerscape-pci.txt | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCHv3 4/4] arm64: dts: layerscape: removed compatible string "snps,dw-pcie"

2018-11-06 Thread Z.q. Hou
From: Hou Zhiqiang Removed the wrong compatible string "snps,dw-pcie", in case match incorrect driver. Signed-off-by: Hou Zhiqiang --- V3: - Reworded the subject. arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi | 2 +- arch/arm64/boot/dts/freescale/fsl-ls1043a.dtsi | 6 +++---

RE: [PATCH v2 4/4] dts/arm64/layerscape: Clean PCIe controller compatible strings

2018-11-06 Thread Z.q. Hou
Hi Leo, Thanks a lot for your comments! > -Original Message- > From: Li Yang > Sent: 2018年10月27日 5:01 > To: Z.q. Hou > Cc: moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE > ; lkml ; > linux-...@vger.kernel.org; open list:OPEN FIRMWARE AND FLATTENED > DE

RE: [PATCH] PCI/Layerscape: fix wrongly invoking of outbound window disable accessor

2018-11-06 Thread Z.q. Hou
Hi Bjorn, Thanks a lot for your guide! I'll tag it for stable in v2. Thanks, Zhiqiang > -Original Message- > From: Bjorn Helgaas > Sent: 2018年10月30日 0:31 > To: Z.q. Hou > Cc: linux-...@vger.kernel.org; linux-kernel@vger.kernel.org; > bhelg...@google.com; lorenzo.pier

[PATCHv2] PCI/Layerscape: fix wrongly invoking of outbound window disable accessor

2018-11-06 Thread Z.q. Hou
From: Hou Zhiqiang The order of parameters is not correct when invoking the outbound window disable routine. Fixes: commit 4a2745d760fac ("PCI: layerscape: Disable outbound windows configured by bootloader"). Cc: sta...@vger.kernel.org Signed-off-by: Hou Zhiqiang --- V2: - Tagged this patch

[PATCH 00/23] PCI: refactor the Mobiveil driver and add PCIe support for NXP LX SoCs

2018-11-06 Thread Z.q. Hou
From: Hou Zhiqiang This patch set is aim to refactor the Mobiveil driver and add PCIe support for NXP LX series SoCs. Hou Zhiqiang (23): PCI: mobiveil: uniform the register accessors PCI: mobiveil: format the code without function change PCI: mobiveil: correct the returned error number

[PATCH 02/23] PCI: mobiveil: format the code without function change

2018-11-06 Thread Z.q. Hou
From: Hou Zhiqiang Just format the code without functionality change. Signed-off-by: Hou Zhiqiang --- drivers/pci/controller/pcie-mobiveil.c | 261 + 1 file changed, 137 insertions(+), 124 deletions(-) diff --git a/drivers/pci/controller/pcie-mobiveil.c

[PATCH 04/23] PCI: mobiveil: remove flag MSI_FLAG_MULTI_PCI_MSI

2018-11-06 Thread Z.q. Hou
From: Hou Zhiqiang The current code does not support multiple MSIs, so remove the corresponding flag from the msi_domain_info structure. Signed-off-by: Hou Zhiqiang --- drivers/pci/controller/pcie-mobiveil.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH 05/23] PCI: mobiveil: correct PCI base address in MEM/IO outbound windows

2018-11-06 Thread Z.q. Hou
From: Hou Zhiqiang It should get PCI base address from the DT node property 'ranges' to setup MEM/IO outbound windows instead of always zero. Signed-off-by: Hou Zhiqiang --- drivers/pci/controller/pcie-mobiveil.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git

[PATCH 03/23] PCI: mobiveil: correct the returned error number

2018-11-06 Thread Z.q. Hou
From: Hou Zhiqiang This patch corrected the returned error number by convention, and removed a unnecessary error check. Signed-off-by: Hou Zhiqiang --- drivers/pci/controller/pcie-mobiveil.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git

[PATCH 01/23] PCI: mobiveil: uniform the register accessors

2018-11-06 Thread Z.q. Hou
From: Hou Zhiqiang It's confused that R/W some registers by csr_readl()/csr_writel(), while others by read_paged_register()/write_paged_register(). Actually the low 3KB of 4KB PCIe configure space can be accessed directly and high 1KB is paging area. So this patch uniformed the register

[PATCH 19/23] PCI: mobiveil: add Byte and Half-Word width register accessors

2018-11-06 Thread Z.q. Hou
From: Hou Zhiqiang As there are some Byte and Half-Work width registers in PCIe configuration space, add Byte and Half-Word width register accessors. Signed-off-by: Hou Zhiqiang --- .../pci/controller/mobiveil/pcie-mobiveil.h | 20 +++ 1 file changed, 20 insertions(+) diff

[PATCH 23/23] arm64: dts: freescale: lx2160a: add pcie DT nodes

2018-11-06 Thread Z.q. Hou
From: Hou Zhiqiang Signed-off-by: Hou Zhiqiang --- .../arm64/boot/dts/freescale/fsl-lx2160a.dtsi | 157 ++ 1 file changed, 157 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi b/arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi index

[PATCH 22/23] PCI: mobiveil: add PCIe RC driver for NXP LX series SoCs

2018-11-06 Thread Z.q. Hou
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 --- drivers/pci/controller/mobiveil/Kconfig | 10 + drivers/pci/controller/mobiveil/Makefile | 1 +

[PATCH 21/23] dt-bindings: pci: Add NXP LX SoCs PCIe controller

2018-11-06 Thread Z.q. Hou
From: Hou Zhiqiang Add PCIe controller DT bindings of NXP LX series SoCs. Signed-off-by: Hou Zhiqiang --- .../devicetree/bindings/pci/lx-pci.txt| 52 +++ MAINTAINERS | 8 +++ 2 files changed, 60 insertions(+) create mode 100644

[PATCH 20/23] PCI: mobiveil: change prototype of function mobiveil_host_init

2018-11-06 Thread Z.q. Hou
From: Hou Zhiqiang Add a parameter 'bool reinit' to identify re-initializing the host controller, and export it. Signed-off-by: Hou Zhiqiang --- .../pci/controller/mobiveil/pcie-mobiveil-host.c | 16 +--- drivers/pci/controller/mobiveil/pcie-mobiveil.h | 1 + 2 files changed, 10

[PATCH 18/23] PCI: mobiveil: disabled IB and OB windows set by bootloader

2018-11-06 Thread Z.q. Hou
From: Hou Zhiqiang Disabled all inbound and outbound windows before set up the windows in kernel, in case transactions match the window set by bootloader. Signed-off-by: Hou Zhiqiang --- .../controller/mobiveil/pcie-mobiveil-host.c | 7 +++ .../pci/controller/mobiveil/pcie-mobiveil.c

[PATCH 17/23] PCI: mobiveil: continue to initialize the host upon no PCIe link

2018-11-06 Thread Z.q. Hou
From: Hou Zhiqiang Sometimes there is not a PCIe Endpoint in the PCIe slot, so do not exit when the PCIe link is not up. And degrade the print level of link up info. Signed-off-by: Hou Zhiqiang --- drivers/pci/controller/mobiveil/pcie-mobiveil-host.c | 1 -

[PATCH 16/23] PCI: mobiveil: refactor the Mobiveil driver

2018-11-06 Thread Z.q. Hou
From: Hou Zhiqiang As the Mobiveil PCIe controller support RC DAUL mode, and to make Platforms which integrated the Mobiveil PCIe IP more easy to add their drivers, this patch moved the Mobiveil driver to a new directory 'drivers/pci/controller/mobiveil' and refactored it to different file

[PATCH 10/23] PCI: mobiveil: fix the INTx process error

2018-11-06 Thread Z.q. Hou
From: Hou Zhiqiang In the loop block, there is not code change the loop key, this patch updated the loop key by re-read the INTx status register. This patch also change to clear the handled INTx status. Note: Need MV to test this change. Signed-off-by: Hou Zhiqiang ---

[PATCH 11/23] PCI: mobiveil: only fixup the Class Code field

2018-11-06 Thread Z.q. Hou
From: Hou Zhiqiang Fixup the Class Code to PCI bridge, do not change the Revision ID. And move the fixup to *_host_init function. Signed-off-by: Hou Zhiqiang --- drivers/pci/controller/pcie-mobiveil.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git

[PATCH 08/23] PCI: mobiveil: use the 1st inbound window for MEM inbound transactions

2018-11-06 Thread Z.q. Hou
From: Hou Zhiqiang The inbound windows have different register set with outbound windows. This patch change the MEM inbound window to the first one. Signed-off-by: Hou Zhiqiang --- drivers/pci/controller/pcie-mobiveil.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH 15/23] dt-bindings: pci: mobiveil: change gpio_slave and apb_csr to optional

2018-11-06 Thread Z.q. Hou
From: Hou Zhiqiang Change the "gpio_slave" and "apb_csr" to optional, the "gpio_slave" is not used in current code, and "apb_csr" is not used by some platorms. Signed-off-by: Hou Zhiqiang --- Documentation/devicetree/bindings/pci/mobiveil-pcie.txt | 2 ++ 1 file changed, 2 insertions(+) diff

[PATCH 09/23] PCI: mobiveil: correct the inbound/outbound window setup routine

2018-11-06 Thread Z.q. Hou
From: Hou Zhiqiang Outbound window routine: - Removed unused var definition and register read operations. - Added the upper 32-bit cpu address setup of the window. - Instead of blindly write, only change the fields specified. - Masked the lower bits of window size in case override the

[PATCH 13/23] PCI: mobiveil: move irq chained handler setup out of DT parse

2018-11-06 Thread Z.q. Hou
From: Hou Zhiqiang Move irq_set_chained_handler_and_data() out of DT parse function. Signed-off-by: Hou Zhiqiang --- drivers/pci/controller/pcie-mobiveil.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/pci/controller/pcie-mobiveil.c

[PATCH 14/23] PCI: mobiveil: initialize Primary/Secondary/Subordinate bus number

2018-11-06 Thread Z.q. Hou
From: Hou Zhiqiang The reset value is all zero, so set a workable value for Primary, Secondary and Subordinate bus numbers. Signed-off-by: Hou Zhiqiang --- drivers/pci/controller/pcie-mobiveil.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/pci/controller/pcie-mobiveil.c

[PATCH 12/23] PCI: mobiveil: move out the link up waiting from mobiveil_host_init

2018-11-06 Thread Z.q. Hou
From: Hou Zhiqiang Host initial sequence does not depend on PCIe link up, so move it to the place just before the enumeration. Signed-off-by: Hou Zhiqiang --- drivers/pci/controller/pcie-mobiveil.c | 15 +++ 1 file changed, 7 insertions(+), 8 deletions(-) diff --git

[PATCH 06/23] PCI: mobiveil: replace the resource list iteration function

2018-11-06 Thread Z.q. Hou
From: Hou Zhiqiang As it won't delete any node in this iteration, replaced the function resource_list_for_each_entry_safe() with the resource_list_for_each_entry(). Signed-off-by: Hou Zhiqiang --- drivers/pci/controller/pcie-mobiveil.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)

[PATCH 07/23] PCI: mobiveil: use WIN_NUM_0 explicitly for CFG outbound window

2018-11-06 Thread Z.q. Hou
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 --- drivers/pci/controller/pcie-mobiveil.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)

RE: [PATCH 15/23] dt-bindings: pci: mobiveil: change gpio_slave and apb_csr to optional

2018-11-14 Thread Z.q. Hou
Hi Subrahmanya, Thanks a lot for your ACK! Regards, Zhiqiang > -Original Message- > From: Subrahmanya Lingappa > Sent: 2018年11月14日 17:33 > To: Z.q. Hou > Cc: linux-...@vger.kernel.org; linux-arm-ker...@lists.infradead.org; > devicet...@vger.kernel.org; linux-kern

RE: [PATCH 21/23] dt-bindings: pci: Add NXP LX SoCs PCIe controller

2018-11-14 Thread Z.q. Hou
Hi Leo, > -Original Message- > From: Leo Li > Sent: 2018年11月15日 2:52 > To: Z.q. Hou ; linux-...@vger.kernel.org; > linux-arm-ker...@lists.infradead.org; devicet...@vger.kernel.org; > linux-kernel@vger.kernel.org; bhelg...@google.com; robh...@kernel.org; > mark.rutl..

RE: [PATCH 10/23] PCI: mobiveil: fix the INTx process error

2018-11-14 Thread Z.q. Hou
Hi Subrahmanya, As NXP does not integrate Mobiveil's INTx and MSI interrupt controller, I am unable to test this fix. Can you help to test this fix? Thanks, Zhiqiang > -Original Message- > From: Z.q. Hou > Sent: 2018年11月6日 21:20 > To: linux-...@vger.kernel.org; l

[PATCH 2/2] PCI: mobiveil: ls_pcie_g4: add Workaround for A-011451

2018-12-02 Thread Z.q. Hou
From: Hou Zhiqiang When LX2 PCIe controller is sending multiple split completions and ACK latency expires indicating that ACK should be send at priority. But because of large number of split completions and FC update DLLP, the controller does not give priority to ACK transmission. This results

[PATCH 0/2] PCI: ls_pcie_g4: add 2 workarounds

2018-12-02 Thread Z.q. Hou
From: Hou Zhiqiang This patchset adds 2 workarounds for NXP Layerscape Gen4 PCIe controller driver. Hou Zhiqiang (2): PCI: mobiveil: ls_pcie_g4: add Workaround for A-011577 PCI: mobiveil: ls_pcie_g4: add Workaround for A-011451 depends on patchset:

[PATCH 1/2] PCI: mobiveil: ls_pcie_g4: add Workaround for A-011577

2018-12-02 Thread Z.q. Hou
From: Hou Zhiqiang PCIe configuration access to non-existent function triggered SERROR interrupt exception. Workaround: Disable error reporting on AXI bus during the Vendor ID read transactions in enumeration. This ERRATA is only for LX2160A Rev1.0, and it will be fixed in Rev2.0.

[PATCHv2 0/2] PCI: ls_pcie_g4: add 2 workarounds

2018-12-03 Thread Z.q. Hou
From: Hou Zhiqiang This patchset adds 2 workarounds for NXP Layerscape Gen4 PCIe controller driver. Hou Zhiqiang (2): PCI: mobiveil: ls_pcie_g4: add Workaround for A-011577 PCI: mobiveil: ls_pcie_g4: add Workaround for A-011451 depends on patchset:

[PATCHv2 1/2] PCI: mobiveil: ls_pcie_g4: add Workaround for A-011577

2018-12-03 Thread Z.q. Hou
From: Hou Zhiqiang PCIe configuration access to non-existent function triggered SERROR interrupt exception. Workaround: Disable error reporting on AXI bus during the Vendor ID read transactions in enumeration. This ERRATA is only for LX2160A Rev1.0, and it will be fixed in Rev2.0.

[PATCHv2 2/2] PCI: mobiveil: ls_pcie_g4: add Workaround for A-011451

2018-12-03 Thread Z.q. Hou
From: Hou Zhiqiang When LX2 PCIe controller is sending multiple split completions and ACK latency expires indicating that ACK should be send at priority. But because of large number of split completions and FC update DLLP, the controller does not give priority to ACK transmission. This results

RE: [PATCHv2 2/4] PCI: dwc: fix 4GiB outbound window size truncated to zero issue

2018-12-05 Thread Z.q. Hou
Hi Lorenzo, Thanks a lot for your comments! > -Original Message- > From: Lorenzo Pieralisi > Sent: 2018年12月6日 0:02 > To: Z.q. Hou > Cc: linux-...@vger.kernel.org; linux-kernel@vger.kernel.org; > bhelg...@google.com; jingooh...@gmail.com; > gustavo.pimen...@s

RE: [PATCHv2 1/4] PCI: dwc: fix potential memory leak

2018-12-05 Thread Z.q. Hou
Hi Lorenzo, > -Original Message- > From: Lorenzo Pieralisi > Sent: 2018年12月5日 23:40 > To: Z.q. Hou > Cc: linux-...@vger.kernel.org; linux-kernel@vger.kernel.org; > bhelg...@google.com; jingooh...@gmail.com; > gustavo.pimen...@synopsys.com; Roy Zang ; Mingkai Hu >

RE: [PATCHv2 4/4] PCI: dwc: add prefetchable memory range support

2018-11-21 Thread Z.q. Hou
Hi Gustavo, Thanks a lot for your testing and ACK! Regards, Zhiqiang > -Original Message- > From: Gustavo Pimentel > Sent: 2018年11月22日 1:37 > To: Z.q. Hou ; linux-...@vger.kernel.org; > linux-kernel@vger.kernel.org; bhelg...@google.com; > lorenzo.pieral...@arm.com; ji

RE: [PATCHv2 3/4] PCI: layerscape: initialize the number of viewport

2018-11-22 Thread Z.q. Hou
Hi Lorenzo, Thanks a lot for your comments! > -Original Message- > From: Lorenzo Pieralisi [mailto:lorenzo.pieral...@arm.com] > Sent: 2018年11月22日 19:17 > To: Z.q. Hou > Cc: linux-...@vger.kernel.org; linux-kernel@vger.kernel.org; > bhelg...@google.com; ji

RE: [PATCH 2/4] doc/layerscape-pci: removed unsuitable compatible string

2018-11-22 Thread Z.q. Hou
Hi Lorenzo, Thanks a lot for your comments! > -Original Message- > From: Lorenzo Pieralisi [mailto:lorenzo.pieral...@arm.com] > Sent: 2018年11月22日 19:28 > To: Z.q. Hou > Cc: linux-arm-ker...@lists.infradead.org; linux-kernel@vger.kernel.org; > linux-...@vger.k

[PATCHv2 09/25] PCI: mobiveil: correct inbound/outbound window setup routines

2018-11-20 Thread Z.q. Hou
From: Hou Zhiqiang Outbound window routine: - Removed unused var definition and register read operations. - Added the upper 32-bit cpu address setup of the window. - Instead of blindly write, only change the fields specified. - Masked the lower bits of window size in case override the

[PATCHv2 08/25] PCI: mobiveil: use the 1st inbound window for MEM inbound transactions

2018-11-20 Thread Z.q. Hou
From: Hou Zhiqiang The inbound windows have different register set with outbound windows. This patch change the MEM inbound window to the first one. Signed-off-by: Hou Zhiqiang --- V2: - no change drivers/pci/controller/pcie-mobiveil.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[PATCHv2 11/25] PCI: mobiveil: only fix up the Class Code field

2018-11-20 Thread Z.q. Hou
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 --- V2: - Added fixes entry.

[PATCHv2 06/25] PCI: mobiveil: replace the resource list iteration function

2018-11-20 Thread Z.q. Hou
From: Hou Zhiqiang As it won't delete any node in this iteration, replaced the function resource_list_for_each_entry_safe() with the resource_list_for_each_entry(). Signed-off-by: Hou Zhiqiang --- V2: - no change drivers/pci/controller/pcie-mobiveil.c | 4 ++-- 1 file changed, 2

[PATCHv2 05/25] PCI: mobiveil: correct PCI base address in MEM/IO outbound windows

2018-11-20 Thread Z.q. Hou
From: Hou Zhiqiang It should get PCI base address from the DT node property 'ranges' to setup MEM/IO outbound windows instead of always zero. Fixes: 9af6bcb11e12 ("PCI: mobiveil: Add Mobiveil PCIe Host Bridge IP driver") Signed-off-by: Hou Zhiqiang --- V2: - Added fixes entry.

[PATCHv2 02/25] PCI: mobiveil: format the code without function change

2018-11-20 Thread Z.q. Hou
From: Hou Zhiqiang Just format the code without functionality change. Signed-off-by: Hou Zhiqiang --- V2: - no change drivers/pci/controller/pcie-mobiveil.c | 261 + 1 file changed, 137 insertions(+), 124 deletions(-) diff --git

[PATCHv2 10/25] PCI: mobiveil: fix the INTx process error

2018-11-20 Thread Z.q. Hou
From: Hou Zhiqiang In the loop block, there is not code change the loop key, this patch updated the loop key by re-read the INTx status register. This patch also change to clear the handled INTx status. Note: Need MV to test this fix. Fixes: 9af6bcb11e12 ("PCI: mobiveil: Add Mobiveil PCIe

[PATCHv2 18/25] PCI: mobiveil: continue to initialize the host upon no PCIe link

2018-11-20 Thread Z.q. Hou
From: Hou Zhiqiang Sometimes there is not a PCIe Endpoint in the PCIe slot, so do not exit when the PCIe link is not up. And degrade the print level of link up info. Signed-off-by: Hou Zhiqiang --- V2: - no change drivers/pci/controller/mobiveil/pcie-mobiveil-host.c | 1 -

[PATCHv2 16/25] PCI: mobiveil: refactor Mobiveil PCIe Host Bridge IP driver

2018-11-20 Thread Z.q. Hou
From: Hou Zhiqiang As the Mobiveil PCIe controller support RC DAUL mode, and to make platforms which integrated the Mobiveil PCIe IP more easy to add their drivers, this patch moved the Mobiveil driver to a new directory 'drivers/pci/controller/mobiveil' and refactored it according to the

[PATCHv2 07/25] PCI: mobiveil: use WIN_NUM_0 explicitly for CFG outbound window

2018-11-20 Thread Z.q. Hou
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 --- V2: - no change drivers/pci/controller/pcie-mobiveil.c | 5 ++--- 1 file changed, 2 insertions(+), 3

[PATCHv2 12/25] PCI: mobiveil: move out the link up waiting from mobiveil_host_init

2018-11-20 Thread Z.q. Hou
From: Hou Zhiqiang Host initial sequence does not depend on PCIe link up, so move it to the place just before the enumeration. Signed-off-by: Hou Zhiqiang --- V2: - no change drivers/pci/controller/pcie-mobiveil.c | 15 +++ 1 file changed, 7 insertions(+), 8 deletions(-) diff

[PATCHv2 04/25] PCI: mobiveil: remove flag MSI_FLAG_MULTI_PCI_MSI

2018-11-20 Thread Z.q. Hou
From: Hou Zhiqiang The current code does not support multiple MSIs, so remove the corresponding flag from the msi_domain_info structure. Fixes: 1e913e58335f ("PCI: mobiveil: Add MSI support") Signed-off-by: Hou Zhiqiang --- V2: - Added fixes entry. drivers/pci/controller/pcie-mobiveil.c | 2

[PATCHv2 03/25] PCI: mobiveil: correct the returned error number

2018-11-20 Thread Z.q. Hou
From: Hou Zhiqiang This patch corrected the returned error number by convention, and removed a unnecessary error check. Signed-off-by: Hou Zhiqiang --- V2: - no change drivers/pci/controller/pcie-mobiveil.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git

[PATCHv2 15/25] dt-bindings: pci: mobiveil: change gpio_slave and apb_csr to optional

2018-11-20 Thread Z.q. Hou
From: Hou Zhiqiang Change the "gpio_slave" and "apb_csr" to optional, the "gpio_slave" is not used in current code, and "apb_csr" is not used by some platforms. Signed-off-by: Hou Zhiqiang Acked-by: Subrahmanya Lingappa Acked-by: Rob Herring --- V2: - no change

[PATCHv2 20/25] PCI: mobiveil: add Byte and Half-Word width register accessors

2018-11-20 Thread Z.q. Hou
From: Hou Zhiqiang As there are some Byte and Half-Work width registers in PCIe configuration space, add Byte and Half-Word width register accessors. Signed-off-by: Hou Zhiqiang --- V2: - no change .../pci/controller/mobiveil/pcie-mobiveil.h | 20 +++ 1 file changed, 20

[PATCHv2 19/25] PCI: mobiveil: disabled IB and OB windows set by bootloader

2018-11-20 Thread Z.q. Hou
From: Hou Zhiqiang Disabled all inbound and outbound windows before set up the windows in kernel, in case transactions match the window set by bootloader. Signed-off-by: Hou Zhiqiang --- V2: - no change .../controller/mobiveil/pcie-mobiveil-host.c | 7 +++

[PATCHv2 21/25] PCI: mobiveil: make mobiveil_host_init can be used to re-init host

2018-11-20 Thread Z.q. Hou
From: Hou Zhiqiang Make the mobiveil_host_init function can be used to re-init host controller's PAB and GPEX CSR register block, as NXP integrated Mobiveil IP has to reset and then re-init the PAB and GPEX CSR registers upon Hot-reset. Signed-off-by: Hou Zhiqiang --- V2: - Reset the

[PATCHv2 13/25] PCI: mobiveil: move irq chained handler setup out of DT parse

2018-11-20 Thread Z.q. Hou
From: Hou Zhiqiang Move irq_set_chained_handler_and_data() out of DT parse function. Signed-off-by: Hou Zhiqiang --- V2: - no change drivers/pci/controller/pcie-mobiveil.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/pci/controller/pcie-mobiveil.c

[PATCHv2 17/25] PCI: mobiveil: fix the checking of valid device

2018-11-20 Thread Z.q. Hou
From: Hou Zhiqiang Avoid to issue CFG transactions to link partner when the PCIe link is not up. And allow CFG transactions to all functions of Endpoint implemented multiple functions. Fixes: 9af6bcb11e12 ("PCI: mobiveil: Add Mobiveil PCIe Host Bridge IP driver") Signed-off-by: Hou Zhiqiang

[PATCHv2 00/25] PCI: refactor Mobiveil driver and add PCIe Gen4 driver for NXP Layerscape SoCs

2018-11-20 Thread Z.q. Hou
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 (25): PCI: mobiveil: uniform the register accessors PCI: mobiveil: format the code without function change

[PATCHv2 01/25] PCI: mobiveil: uniform the register accessors

2018-11-20 Thread Z.q. Hou
From: Hou Zhiqiang It's confused that R/W some registers by csr_readl()/csr_writel(), while others by read_paged_register()/write_paged_register(). Actually the low 3KB of 4KB PCIe configure space can be accessed directly and high 1KB is paging area. So this patch uniformed the register

[PATCHv2 22/25] dt-bindings: pci: Add NXP Layerscape SoCs PCIe Gen4 controller

2018-11-20 Thread Z.q. Hou
From: Hou Zhiqiang Add PCIe Gen4 controller DT bindings of NXP Layerscape SoCs. Signed-off-by: Hou Zhiqiang --- V2: - Change to use the layerscape-pci.txt for PCIe Gen4 controller dt-bindings .../bindings/pci/layerscape-pci.txt | 57 +++ MAINTAINERS

  1   2   3   4   5   >