[irqchip: irq/irqchip-next] irqchip/ls-extirq: Add LS1043A, LS1088A external interrupt support

2020-12-11 Thread irqchip-bot for Hou Zhiqiang
The following commit has been merged into the irq/irqchip-next branch of irqchip: Commit-ID: b16a1caf4686895427c810219d4b2f796e676160 Gitweb: https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms/b16a1caf4686895427c810219d4b2f796e676160 Author:Hou Zhiqiang

[PATCHv7] PCI: mobiveil: Fix the CPU base address setup in inbound window

2019-07-13 Thread Hou Zhiqiang
Fixes: 9af6bcb11e12 ("PCI: mobiveil: Add Mobiveil PCIe Host Bridge IP driver") Signed-off-by: Hou Zhiqiang Reviewed-by: Minghuan Lian Reviewed-by: Subrahmanya Lingappa --- V7: - This patch is #25 of V6 patches, rewrote the changelog. drivers/pci/controller/pcie-mobiveil.c | 10 ++

[PATCHv6 02/28] PCI: mobiveil: Remove the flag MSI_FLAG_MULTI_PCI_MSI

2019-07-05 Thread Hou Zhiqiang
), so the multi MSI feature is clearly not supported by the host controller driver. Remove the flag MSI_FLAG_MULTI_PCI_MSI and with it multi MSI support, fixing the misconfiguration. Fixes: 1e913e58335f ("PCI: mobiveil: Add MSI support") Signed-off-by: Hou Zhiqiang [lorenzo.pieral...@arm.c

[PATCHv6 12/28] dt-bindings: PCI: mobiveil: Change gpio_slave and apb_csr to optional

2019-07-05 Thread 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 Reviewed-by: Minghuan Lian R

[PATCHv6 14/28] PCI: mobiveil: Make the register updating more readable

2019-07-05 Thread Hou Zhiqiang
To make the register updating more readable, outstand the fields to update by changing the register updating sequence to: a. Read out the original value from the target register. b. Update the value in one sentence. c. Program the updated value back to the register. Signed-off-by: Hou Zhiqiang

[PATCHv6 06/28] PCI: mobiveil: Use the 1st inbound window for MEM inbound transactions

2019-07-05 Thread Hou Zhiqiang
are completely separate there is no real need to use different window indexes in the inbound/outbound windows initialization routines to prevent clashing. To fix this inconsistency, change the MEM inbound window index to 0, mirroring the outbound window set-up. Signed-off-by: Hou Zhiqiang [lorenzo.pieral

[PATCHv6 07/28] PCI: mobiveil: Fix the Class Code field

2019-07-05 Thread Hou Zhiqiang
Fix up the Class Code field in PCI configuration space and set it to PCI_CLASS_BRIDGE_PCI. Move the Class Code fixup to function mobiveil_host_init() where it belongs. Fixes: 9af6bcb11e12 ("PCI: mobiveil: Add Mobiveil PCIe Host Bridge IP driver") Signed-off-by: Hou Zhiqiang

[PATCHv6 13/28] PCI: mobiveil: Reformat the code for readability

2019-07-05 Thread Hou Zhiqiang
Reformat the code to make it more readable. No functional change intended. Signed-off-by: Hou Zhiqiang Signed-off-by: Lorenzo Pieralisi Reviewed-by: Minghuan Lian --- V6: - Splited from #2 of v5 patches, no functional change. drivers/pci/controller/pcie-mobiveil.c | 208

[PATCHv6 23/28] PCI: mobiveil: Add upper 32-bit CPU base address setup in outbound window

2019-07-05 Thread Hou Zhiqiang
The current code only setup the lower 32-bit CPU base address in outbound window, it will result in outbound transactions drop on 64-bit platforms. Fixes: 9af6bcb11e12 ("PCI: mobiveil: Add Mobiveil PCIe Host Bridge IP driver") Signed-off-by: Hou Zhiqiang Reviewed-by: Minghuan Lian

[PATCHv6 24/28] PCI: mobiveil: Add upper 32-bit PCI base address setup in inbound window

2019-07-05 Thread Hou Zhiqiang
The current code only setup the lower 32-bit PCI base address in inbound window, it can result in inbound transactions drop on 64-bit platforms. Fixes: 9af6bcb11e12 ("PCI: mobiveil: Add Mobiveil PCIe Host Bridge IP driver") Signed-off-by: Hou Zhiqiang Reviewed-by: Minghuan Lian

[PATCHv6 22/28] PCI: mobiveil: Mask out the lower 10-bit hardcode window size

2019-07-05 Thread Hou Zhiqiang
The lower 10-bit of window size field is hardcode to zero, and then the lower 10-bit of PAB_AXI_AMAP_CTRL register are used to control fields, so mask out the lower 10-bit of window size in case override the control bits. Signed-off-by: Hou Zhiqiang Reviewed-by: Minghuan Lian Reviewed

[PATCHv6 18/28] PCI: mobiveil: Remove redundant var definitions and register read operations

2019-07-05 Thread Hou Zhiqiang
nction program_ib_windows(), remove the definitions of 'pio_ctrl_val' and 'amap_ctrl_dw' and reduce to only one var 'value' to keep the temporary value read from registers. Signed-off-by: Hou Zhiqiang Reviewed-by: Minghuan Lian Reviewed-by: Subrahmanya Lingappa --- V6: - Splited from #9 of v5 p

[PATCHv6 15/28] PCI: mobiveil: Revise the MEM/IO outbound window initialization

2019-07-05 Thread Hou Zhiqiang
Move the resource type check into a if..else block, and only set up outbound window for MEM and IO resource. No functional change. Signed-off-by: Hou Zhiqiang Reviewed-by: Minghuan Lian --- V6: - Splited from #2 of v5 patches, no functional change. drivers/pci/controller/pcie-mobiveil.c

[PATCHv6 20/28] PCI: mobiveil: Add the statistic of initialized inbound windows

2019-07-05 Thread Hou Zhiqiang
The current code has only statistic for outbound windows initialized, but lack of inbound windows statistic. This patch is to add the statistic for inbound windows initialized. Signed-off-by: Hou Zhiqiang Reviewed-by: Minghuan Lian Reviewed-by: Subrahmanya Lingappa --- V6: - Splited from #9

[PATCHv6 25/28] PCI: mobiveil: Fix the CPU base address setup in inbound window

2019-07-05 Thread Hou Zhiqiang
' for the CPU base address setup and adds upper 32-bit CPU base address initialization. Fixes: 9af6bcb11e12 ("PCI: mobiveil: Add Mobiveil PCIe Host Bridge IP driver") Signed-off-by: Hou Zhiqiang Reviewed-by: Minghuan Lian Reviewed-by: Subrahmanya Lingappa --- V6: - Splited from #9 of

[PATCHv6 11/28] PCI: mobiveil: Fix devfn check in mobiveil_pcie_valid_device()

2019-07-05 Thread Hou Zhiqiang
the issue. Fixes: 9af6bcb11e12 ("PCI: mobiveil: Add Mobiveil PCIe Host Bridge IP driver") Signed-off-by: Hou Zhiqiang Signed-off-by: Lorenzo Pieralisi Reviewed-by: Minghuan Lian --- V6: - Rebased the patch, no functional change. drivers/pci/controller/pcie-mobiveil.c |2 +- 1 files

[PATCHv6 10/28] PCI: mobiveil: Initialize Primary/Secondary/Subordinate bus numbers

2019-07-05 Thread Hou Zhiqiang
The reset value of Primary, Secondary and Subordinate bus numbers is zero which is a broken setup. Program a sensible default value for Primary/Secondary/Subordinate bus numbers. Signed-off-by: Hou Zhiqiang Signed-off-by: Lorenzo Pieralisi Reviewed-by: Minghuan Lian Reviewed-by: Subrahmanya

[PATCHv6 19/28] PCI: mobiveil: Fix the valid check for inbound and outbound window

2019-07-05 Thread Hou Zhiqiang
Check window index from the parameter instead of the total number of initialized windows to determine if the specified window is valid. Fixes: 9af6bcb11e12 ("PCI: mobiveil: Add Mobiveil PCIe Host Bridge IP driver") Signed-off-by: Hou Zhiqiang Reviewed-by: Minghuan Lian Reviewed-by: S

[PATCHv6 27/28] PCI: mobiveil: Fix infinite-loop in the INTx process

2019-07-05 Thread Hou Zhiqiang
In the loop block, there is not code to update the loop key, this patch updates the loop key by re-read the INTx status register. Note: Need MV to test this fix. Fixes: 9af6bcb11e12 ("PCI: mobiveil: Add Mobiveil PCIe Host Bridge IP driver") Signed-off-by: Hou Zhiqiang Reviewed-by: Min

[PATCHv6 28/28] PCI: mobiveil: Fix the potential INTx missing problem

2019-07-05 Thread Hou Zhiqiang
Signed-off-by: Hou Zhiqiang Reviewed-by: Minghuan Lian Reviewed-by: Subrahmanya Lingappa Acked-by: Karthikeyan Mitran Tested-by: Karthikeyan Mitran --- V6: - Splited from #10 of v5 patches, no functional change. drivers/pci/controller/pcie-mobiveil.c |5 ++--- 1 files changed, 2 insert

[PATCHv6 21/28] PCI: mobiveil: Clear the target fields before updating the register

2019-07-05 Thread Hou Zhiqiang
Clear the target fields in the register before programming with an new value. Signed-off-by: Hou Zhiqiang Reviewed-by: Minghuan Lian Reviewed-by: Subrahmanya Lingappa --- V6: - Splited from #9 of v5 patches, no functional change. drivers/pci/controller/pcie-mobiveil.c | 17

[PATCHv6 26/28] PCI: mobiveil: Move PCIe PIO enablement out of inbound window routine

2019-07-05 Thread Hou Zhiqiang
Move the PCIe PIO master enablement to function mobiveil_host_init(). Signed-off-by: Hou Zhiqiang Reviewed-by: Minghuan Lian Reviewed-by: Subrahmanya Lingappa --- V6: - Splited from #9 of v5 patches, no functional change. drivers/pci/controller/pcie-mobiveil.c |9 + 1 files

[PATCHv6 00/28] PCI: mobiveil: fixes for Mobiveil PCIe Host Bridge IP driver

2019-07-05 Thread Hou Zhiqiang
This patch set is to add fixes for Mobiveil PCIe Host driver. Splited #2, #3, #9 and #10 of v5 patches. Hou Zhiqiang (28): PCI: mobiveil: Unify register accessors PCI: mobiveil: Remove the flag MSI_FLAG_MULTI_PCI_MSI PCI: mobiveil: Fix PCI base address in MEM/IO outbound windows PCI

[PATCHv6 05/28] PCI: mobiveil: Use WIN_NUM_0 explicitly for CFG outbound window

2019-07-05 Thread Hou Zhiqiang
As the .map_bus() use the WIN_NUM_0 for CFG transactions, it is appropriate to pass WIN_NUM_0 explicitly when initializing the CFG outbound window rather than implicitly relying on the ob_wins_configure counter. Signed-off-by: Hou Zhiqiang Signed-off-by: Lorenzo Pieralisi Reviewed-by: Minghuan

[PATCHv6 17/28] PCI: mobiveil: Remove an unnecessary return value check

2019-07-05 Thread Hou Zhiqiang
The memory of private structure has been allocated together with the pci_host_bridge structure in function devm_pci_alloc_host_bridge(). So it is unnecessary to check the return value when get the private structure pointer. Signed-off-by: Hou Zhiqiang Reviewed-by: Minghuan Lian Reviewed

[PATCHv6 09/28] PCI: mobiveil: Move IRQ chained handler setup out of DT parse

2019-07-05 Thread Hou Zhiqiang
The irq_set_chained_handler_and_data() call is not dependent on device tree firmware so it should be moved out of the DT parsing function for clarity. Signed-off-by: Hou Zhiqiang [lorenzo.pieral...@arm.com: rewritten commit log] Signed-off-by: Lorenzo Pieralisi Reviewed-by: Minghuan Lian

[PATCHv6 08/28] PCI: mobiveil: Move the link up waiting out of mobiveil_host_init()

2019-07-05 Thread Hou Zhiqiang
The host initializing sequence does not depend on PCIe link up, so move it to the plac just before the enumeration. Signed-off-by: Hou Zhiqiang Reviewed-by: Minghuan Lian Reviewed-by: Subrahmanya Lingappa --- V6: - Rebased the patch, no functional change. drivers/pci/controller/pcie

[PATCHv6 03/28] PCI: mobiveil: Fix PCI base address in MEM/IO outbound windows

2019-07-05 Thread Hou Zhiqiang
address decoders Fixes: 9af6bcb11e12 ("PCI: mobiveil: Add Mobiveil PCIe Host Bridge IP driver") Signed-off-by: Hou Zhiqiang Signed-off-by: Lorenzo Pieralisi Reviewed-by: Minghuan Lian Reviewed-by: Subrahmanya Lingappa --- V6: - Rebased the patch, no functional change. drivers/pci/

[PATCHv6 04/28] PCI: mobiveil: Update the resource list traversal function

2019-07-05 Thread Hou Zhiqiang
Code that executes the resource list traversal does not need to delete any node therefore using the *_safe() API version is useless. Replace function resource_list_for_each_entry_safe() with the resource_list_for_each_entry() counterpart. Signed-off-by: Hou Zhiqiang Signed-off-by: Lorenzo

[PATCHv6 01/28] PCI: mobiveil: Unify register accessors

2019-07-05 Thread Hou Zhiqiang
paging mechanism. Unify the register accessors in csr_readl() and csr_writel() by comparing the register offset with page access boundary 3KB in the accessor internal so that the paging mechanism is hidden behind the csr_read()/write() common function calls. Signed-off-by: Hou Zhiqiang Signed-off

[PATCHv6 16/28] PCI: mobiveil: Fix the returned error number

2019-07-05 Thread Hou Zhiqiang
This patch modified the returned error number by convention. Signed-off-by: Hou Zhiqiang Reviewed-by: Minghuan Lian Reviewed-by: Subrahmanya Lingappa --- V6: - Splited from #3 of v5 patches, no functional change. drivers/pci/controller/pcie-mobiveil.c |6 +++--- 1 files changed, 3

RE: [PATCH v4 7/7] mtd: spi-nor: add read loop

2015-11-04 Thread Hou Zhiqiang
Hi Michal, Does this have any updates? Thanks, Zhiqiang > -Original Message- > From: Michal Suchanek [mailto:hramr...@gmail.com] > Sent: 2015年8月14日 18:08 > To: Andrew Murray > Cc: Hou Zhiqiang-B48286; Huang Shijie; David Woodhouse; Brian Norris; Xu > Han-B45815; Ra

RE: [PATCH v4 7/7] mtd: spi-nor: add read loop

2015-11-04 Thread Hou Zhiqiang
Hi Michal, Does this have any updates? Thanks, Zhiqiang > -Original Message- > From: Michal Suchanek [mailto:hramr...@gmail.com] > Sent: 2015年8月14日 18:08 > To: Andrew Murray > Cc: Hou Zhiqiang-B48286; Huang Shijie; David Woodhouse; Brian Norris; Xu > Han-B45815; Ra

RE: [PATCH 3/3] mtd: spi-nor: sf: Add clear flag status register support

2015-08-24 Thread Hou Zhiqiang
Hi Jagan, > -Original Message- > From: Jagan Teki [mailto:jt...@openedev.com] > Sent: 2015年8月21日 15:12 > To: Hou Zhiqiang-B48286 > Cc: linux-...@lists.infradead.org; Hu Mingkai-B21284; Brian Norris; David > Woodhouse; linux-kernel@vger.kernel.org > Subject: Re: [PA

RE: [PATCH 3/3] mtd: spi-nor: sf: Add clear flag status register support

2015-08-24 Thread Hou Zhiqiang
Hi Jagan, -Original Message- From: Jagan Teki [mailto:jt...@openedev.com] Sent: 2015年8月21日 15:12 To: Hou Zhiqiang-B48286 Cc: linux-...@lists.infradead.org; Hu Mingkai-B21284; Brian Norris; David Woodhouse; linux-kernel@vger.kernel.org Subject: Re: [PATCH 3/3] mtd: spi-nor: sf: Add

RE: [PATCH 3/3] mtd: spi-nor: sf: Add clear flag status register support

2015-08-19 Thread Hou Zhiqiang
Hello Jagan, > -Original Message- > From: Jagan Teki [mailto:jt...@openedev.com] > Sent: 2015年8月20日 1:49 > To: Hou Zhiqiang-B48286 > Cc: linux-...@lists.infradead.org; Hu Mingkai-B21284; Brian Norris; David > Woodhouse; linux-kernel@vger.kernel.org > Subject: Re: [PA

RE: [PATCH 3/3] mtd: spi-nor: sf: Add clear flag status register support

2015-08-19 Thread Hou Zhiqiang
Hi Jagan, > -Original Message- > From: Jagan Teki [mailto:jt...@openedev.com] > Sent: 2015年8月19日 17:57 > To: linux-...@lists.infradead.org > Cc: linux-kernel@vger.kernel.org; Jagan Teki; Hou Zhiqiang-B48286; Hu > Mingkai-B21284; David Woodhouse; Brian Norris > Sub

RE: [PATCH 3/3] mtd: spi-nor: sf: Add clear flag status register support

2015-08-19 Thread Hou Zhiqiang
Hi Jagan, -Original Message- From: Jagan Teki [mailto:jt...@openedev.com] Sent: 2015年8月19日 17:57 To: linux-...@lists.infradead.org Cc: linux-kernel@vger.kernel.org; Jagan Teki; Hou Zhiqiang-B48286; Hu Mingkai-B21284; David Woodhouse; Brian Norris Subject: [PATCH 3/3] mtd: spi-nor

RE: [PATCH 3/3] mtd: spi-nor: sf: Add clear flag status register support

2015-08-19 Thread Hou Zhiqiang
Hello Jagan, -Original Message- From: Jagan Teki [mailto:jt...@openedev.com] Sent: 2015年8月20日 1:49 To: Hou Zhiqiang-B48286 Cc: linux-...@lists.infradead.org; Hu Mingkai-B21284; Brian Norris; David Woodhouse; linux-kernel@vger.kernel.org Subject: Re: [PATCH 3/3] mtd: spi-nor: sf