[PATCH v2] arm64: dts: ls1012a: add USB host controller nodes

2017-07-14 Thread Ran Wang
LS1012A has one USB 3.0(DWC3) controller and one USB 2.0 controller. Signed-off-by: Ran Wang <ran.wan...@nxp.com> --- Change in v2: Move node usb2@860 to the back of sata@320 to keep nodes sorted in unit-address. arch/arm64/boot/dts/freesca

RE: [PATCH] arm64: dts: ls1012a: add USB host controller nodes

2017-07-13 Thread Ran Wang
> -Original Message- > From: Shawn Guo [mailto:shawn...@kernel.org] > Sent: Thursday, July 13, 2017 4:07 PM > To: Ran Wang <ran.wan...@nxp.com> > Cc: Rob Herring <robh...@kernel.org>; Mark Rutland > <mark.rutl...@arm.com>; Catalin Marinas <catalin.ma

RE: [PATCH] arm64: dts: ls1046a: Add dis_rxdet_inp3_quirk property to USB3 node

2017-07-04 Thread Ran Wang
Hello Sir, How is the review result of this patch. I am waiting for it be merged, thanks. BR Ran -Original Message- From: Ran Wang [mailto:ran.wan...@nxp.com] Sent: Friday, June 02, 2017 10:30 AM To: Rob Herring <robh...@kernel.org>; Mark Rutland <mark.rutl...@arm.com&g

[PATCH] arm64: dts: ls1012a: add USB host controller nodes

2017-07-04 Thread Ran Wang
LS1012A has one USB 3.0(DWC3) controller and one USB 2.0 controller. Signed-off-by: Ran Wang <ran.wan...@nxp.com> --- arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi | 17 + 1 file changed, 17 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi b/arch

[PATCH] arm64: dts: ls1046a: Add dis_rxdet_inp3_quirk property to USB3 node

2017-06-01 Thread Ran Wang
Add "dis_rxdet_inp3_quirk" boolean property to USB3 node. This property is used to disable rx detection in P3 PHY mode. Signed-off-by: Ran Wang <ran.wan...@nxp.com> --- arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arc

[PATCH] usb: dwc3: workaround: disable device-initiated U1/U2

2017-09-28 Thread Ran Wang
requests from the host/hub and enter low power. Signed-off-by: Ran Wang <ran.wan...@nxp.com> --- Documentation/devicetree/bindings/usb/dwc3.txt | 2 ++ drivers/usb/dwc3/core.c| 2 ++ drivers/usb/dwc3/core.h| 2 ++ drivers/usb/dwc3

RE: [PATCH] drivers/net/usb: add device id for TP-LINK UE300 USB 3.0 Ethernet

2017-10-23 Thread Ran Wang
Hi Oliver > -Original Message- > From: Oliver Neukum [mailto:oneu...@suse.com] > Sent: Monday, October 23, 2017 6:56 PM > To: Ran Wang <ran.wan...@nxp.com> > Cc: David S . Miller <da...@davemloft.net>; hayeswang > <hayesw...@realtek.com>; linu

[PATCH] drivers/net/usb: add device id for TP-LINK UE300 USB 3.0 Ethernet

2017-10-23 Thread Ran Wang
This product is named 'TP-LINK USB 3.0 Gigabit Ethernet Network Adapter (Model No.is UE300)'. It uses chip RTL8153 and works with driver drivers/net/usb/r8152.c Signed-off-by: Ran Wang <ran.wan...@nxp.com> --- drivers/net/usb/cdc_ether.c | 8 drivers/net/usb/r8152.c | 2 ++ 2

RE: [PATCH 1/2] mm: drop migrate type checks from has_unmovable_pages

2017-11-12 Thread Ran Wang
Hello Michal, > Date: Fri, 13 Oct 2017 14:00:12 +0200 > > From: Michal Hocko > > Michael has noticed that the memory offline tries to migrate kernel code > pages when doing echo 0 > /sys/devices/system/memory/memory0/online > > The current implementation will fail the

RE: [PATCH] usb: dwc3: Enable the USB snooping

2017-11-15 Thread Ran Wang
Hi Balbi, > -Original Message- > From: Felipe Balbi [mailto:ba...@kernel.org] > Sent: Wednesday, November 15, 2017 4:52 PM > To: Ran Wang <ran.wan...@nxp.com> > Cc: Greg Kroah-Hartman <gre...@linuxfoundation.org>; open > list:DESIGNWARE USB3 DRD IP DRIVER <

[PATCH] usb: dwc3: Enable the USB snooping

2017-11-14 Thread Ran Wang
Add support for USB3 snooping by asserting bits in register DWC3_GSBUSCFG0 for data and descriptor. Signed-off-by: Changming Huang <jerry.hu...@nxp.com> Signed-off-by: Rajesh Bhagat <rajesh.bha...@nxp.com> Signed-off-by: Ran Wang <ran.wan...@nxp.com> --- drivers/us

RE: [PATCH 1/2] mm: drop migrate type checks from has_unmovable_pages

2017-11-13 Thread Ran Wang
Hi Michal, > -Original Message- > From: Michal Hocko [mailto:mho...@kernel.org] > Sent: Monday, November 13, 2017 7:03 PM > To: Ran Wang <ran.wan...@nxp.com> > Cc: linux...@kvack.org; Michael Ellerman <m...@ellerman.id.au>; Vlastimil > Babka <vba...@su

RE: [PATCH 1/2] mm: drop migrate type checks from has_unmovable_pages

2017-11-13 Thread Ran Wang
Hi Michal, > -Original Message- > From: Michal Hocko [mailto:mho...@kernel.org] > Sent: Tuesday, November 14, 2017 3:07 PM > To: Ran Wang <ran.wan...@nxp.com> > Cc: linux...@kvack.org; Michael Ellerman <m...@ellerman.id.au>; Vlastimil > Babka <vba...@su

[PATCH v2 2/3] arm64: dts: ls1043a: Enable USB 3.0 phy driver

2017-11-06 Thread Ran Wang
This patch adds entries in dts to enable USB 3.0 PHY driver. Signed-off-by: Sriram Dash <sriram.d...@nxp.com> Signed-off-by: Ran Wang <ran.wan...@nxp.com> --- Change in v2: - Rename node name from 'usb3-phy' to 'usb-phy' - Adjust phy node position arch/arm64/boot/d

[PATCH v2 1/3] drivers: usb: phy: Add qoriq usb 3.0 phy driver support

2017-11-06 Thread Ran Wang
Adds qoriq usb 3.0 phy driver to implement erratum related workaround for qoriq SoC. Signed-off-by: Sriram Dash <sriram.d...@nxp.com> Signed-off-by: Ran Wang <ran.wan...@nxp.com> --- Change in v2: - Replace funciont __raw_writel() by iowrite32be() - Remove qoriq_u

[PATCH v2 3/3] usb: dwc3: Enable USB 3.0 phy driver

2017-11-06 Thread Ran Wang
Adds entry point at dwc3 core init function to enable USB 3.0 PHY driver. Signed-off-by: Ran Wang <ran.wan...@nxp.com> --- Change in v2: - New file drivers/usb/dwc3/core.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/drivers/usb/dwc3/core.c b/drivers/us

[PATCH 3/4] arm64: dts: ls1046a: Enable usb3-lpm-capable for usb3 node

2018-01-05 Thread Ran Wang
Enable USB3 HW LPM feature for ls1046a and active patch for snps erratum A-010131. It will disable U1/U2 temperary when initiate U3 request. Signed-off-by: Ran Wang <ran.wan...@nxp.com> --- arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi |6 ++ 1 files changed, 6 insertions

[PATCH 4/4] xHCI: Handle dwc3 erratum on USB3 HW LPM feature.

2018-01-05 Thread Ran Wang
. 3. After U3 entry, re-enable the U2 timer by programming PORTPMSC with the value saved in Step 1. Signed-off-by: Ran Wang <ran.wan...@nxp.com> --- drivers/usb/host/xhci-hub.c | 22 ++ drivers/usb/host/xhci-plat.c |6 +- drivers/usb/host/xhci.h |1 +

[PATCH 2/4] arm64: dts: ls1043a: Enable usb3-lpm-capable for usb3 node

2018-01-05 Thread Ran Wang
Enable USB3 HW LPM feature for ls1043a and active patch for snps erratum A-010131. It will disable U1/U2 temperary when initiate U3 request. Signed-off-by: Ran Wang <ran.wan...@nxp.com> --- arch/arm64/boot/dts/freescale/fsl-ls1043a.dtsi |6 ++ 1 files changed, 6 insertions

[PATCH 1/4] arm: dts: ls1021a: Enable usb3-lpm-capable for usb3 node

2018-01-05 Thread Ran Wang
Enable USB3 HW LPM feature for ls1021a and active patch for snps erratum A-010131. It will disable U1/U2 temperary when initiate U3 request. Signed-off-by: Ran Wang <ran.wan...@nxp.com> --- arch/arm/boot/dts/ls1021a.dtsi |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff

[PATCH 2/3] arm64: dts: ls1043a: add cpu idle support

2018-02-08 Thread Ran Wang
From: Yuantian Tang Signed-off-by: Tang Yuantian --- arch/arm64/boot/dts/freescale/fsl-ls1043a.dtsi | 21 + 1 files changed, 21 insertions(+), 0 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1043a.dtsi

[PATCH 3/3] arm64: dts: update the cpu idle node

2018-02-08 Thread Ran Wang
From: Yuantian Tang According to PSCI standard v0.2, for CPU_SUSPEND call, which is used by cpu idle framework, bit[16] of state parameter must be 0. So update bit[16] of property 'arm,psci-suspend-param', which is used as state parameter, to 0. Signed-off-by: Tang Yuantian

[PATCH 1/3] arm64: dts: ls1012a: add cpu idle support

2018-02-08 Thread Ran Wang
From: Yuantian Tang Signed-off-by: Tang Yuantian --- arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi | 18 ++ 1 files changed, 18 insertions(+), 0 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi

RE: [PATCH 1/3] arm64: dts: ls1012a: add cpu idle support

2018-02-25 Thread Ran Wang
Hi Shawn, > -Original Message- > From: Shawn Guo [mailto:shawn...@kernel.org] > Sent: Saturday, February 24, 2018 3:13 PM > To: Ran Wang <ran.wan...@nxp.com> > Cc: Mark Rutland <mark.rutl...@arm.com>; devicet...@vger.kernel.org; Andy > Tang <an

[PATCH v2 2/6] drivers/soc/fsl: add EPU FSM configuration for deep sleep

2018-04-11 Thread Ran Wang
. This patch configure the EPU FSM preparing for deep sleep. Signed-off-by: Hongbo Zhang <hongbo.zh...@freescale.com> Signed-off-by: Chenhui Zhao <chenhui.z...@freescale.com> Signed-off-by: Ran Wang <ran.wan...@nxp.com> --- Changes in v2: - Resolve warnning of scripts/checkpatc

[PATCH v2 1/6] powerpc/pm: Fix suspend=n in menuconfig for e500mc platforms.

2018-04-11 Thread Ran Wang
Also, unselect FSL_PMC which is for older platfroms instead. Signed-off-by: Ran Wang <ran.wan...@nxp.com> --- Changes in v2: - no change arch/powerpc/Kconfig |4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig index 7

[PATCH v2 4/6] powerpc/pm: add sleep and deep sleep on QorIQ SoCs

2018-04-11 Thread Ran Wang
uantian <yuantian.t...@freescale.com> Signed-off-by: Xie Xiaobo <x@freescale.com> Signed-off-by: Zhao Qiang <b45...@freescale.com> Signed-off-by: Shengzhou Liu <shengzhou@freescale.com> Signed-off-by: Ran Wang <ran.wan...@nxp.com> --- Changes in v2: - Res

[PATCH v2 5/6] powerpc:dts:pm: add power management node

2018-04-11 Thread Ran Wang
Enable Power Management feature on device tree, including MPC8536, MPC8544, MPC8548, MPC8572, P1010, P1020, P1021, P1022, P2020, P2041, P3041, T104X, T1024. Signed-off-by: Zhao Chenhui <chenhui.z...@freescale.com> Signed-off-by: Ran Wang <ran.wan...@nxp.com> --- Changes in v2:

[PATCH v2 3/6] powerpc/cache: add cache flush operation for various e500

2018-04-11 Thread Ran Wang
caches in the current cpu. Signed-off-by: Chenhui Zhao <chenhui.z...@freescale.com> Reviewed-by: Yang Li <le...@freescale.com> Reviewed-by: Jose Rivera <german.riv...@freescale.com> Signed-off-by: Ran Wang <ran.wan...@nxp.com> --- Changes in v2: - no change arch/powerp

[PATCH v2 6/6] fsl_pmc: update device bindings

2018-04-11 Thread Ran Wang
From: Li Yang <le...@freescale.com> Signed-off-by: Li Yang <leoyang...@nxp.com> Signed-off-by: Zhao Chenhui <chenhui.z...@nxp.com> Signed-off-by: Ran Wang <ran.wan...@nxp.com> --- Changes in v2: - new file .../devicetree/bindings/powerpc/fsl/pmc.txt| 59

[PATCH 4/5] powerpc/pm: add sleep and deep sleep on QorIQ SoCs

2018-03-28 Thread Ran Wang
uantian <yuantian.t...@freescale.com> Signed-off-by: Xie Xiaobo <x@freescale.com> Signed-off-by: Zhao Qiang <b45...@freescale.com> Signed-off-by: Shengzhou Liu <shengzhou@freescale.com> Signed-off-by: Ran Wang <ran.wan...@nxp.com> --- arch/powerp

[PATCH 3/5] powerpc/cache: add cache flush operation for various e500

2018-03-28 Thread Ran Wang
caches in the current cpu. Signed-off-by: Chenhui Zhao <chenhui.z...@freescale.com> Reviewed-by: Yang Li <le...@freescale.com> Reviewed-by: Jose Rivera <german.riv...@freescale.com> Signed-off-by: Ran Wang <ran.wan...@nxp.com> --- arch/powerpc/include/asm/cputable.h |

[PATCH 5/5] powerpc:dts:pm: add power management node

2018-03-28 Thread Ran Wang
Enable Power Management feature on device tree, including MPC8536, MPC8544, MPC8548, MPC8572, P1010, P1020, P1021, P1022, P2020, P2041, P3041, T104X, T1024. Signed-off-by: Zhao Chenhui <chenhui.z...@freescale.com> Signed-off-by: Ran Wang <ran.wan...@nxp.com> --- arch/powerpc/

[PATCH 2/5] drivers/soc/fsl: add EPU FSM configuration for deep sleep

2018-03-28 Thread Ran Wang
. This patch configure the EPU FSM preparing for deep sleep. Signed-off-by: Hongbo Zhang <hongbo.zh...@freescale.com> Signed-off-by: Chenhui Zhao <chenhui.z...@freescale.com> Signed-off-by: Ran Wang <ran.wan...@nxp.com> --- drivers/soc/fsl/Kconfig |7 + drivers/soc/fsl/

[PATCH 1/5] powerpc/pm: Fix suspend=n in menuconfig for e500mc platforms.

2018-03-28 Thread Ran Wang
Also, unselect FSL_PMC which is for older platfroms instead. Signed-off-by: Ran Wang <ran.wan...@nxp.com> --- arch/powerpc/Kconfig |4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig index 73ce5dd..ed60c83 100644 ---

[PATCH v5 3/3] USB3/DWC3: Enable undefined length INCR burst type

2018-03-06 Thread Ran Wang
ed-off-by: Rajesh Bhagat <rajesh.bha...@nxp.com> Signed-off-by: Ran Wang <ran.wan...@nxp.com> --- Changes in v5: - no change Changes in v4: - Modify the codes according to the definition of this property. Changes in v3: - add new property for INCR burst in usb node to reset GSBUSC

[PATCH v5 2/3] USB3/DWC3: Add property "snps,incr-burst-type-adjustment" for INCR burst type

2018-03-06 Thread Ran Wang
e enabling undefined length INCR burst type and INCR16 burst type, get better write performance on NXP Layerscape platforms: around 3% improvement (from 364MB/s to 375MB/s). Signed-off-by: Changming Huang <jerry.hu...@nxp.com> Signed-off-by: Ran Wang <ran.wan...@nxp.com> --- Changes

[PATCH v5 1/3] USB3/DWC3: Add definition for global soc bus configuration register

2018-03-06 Thread Ran Wang
From: Changming Huang <jerry.hu...@nxp.com> Add the macro definition for global soc bus configuration register 0/1 Signed-off-by: Changming Huang <jerry.hu...@nxp.com> Signed-off-by: Ran Wang <ran.wan...@nxp.com> --- Changes in v5: - no change Changes in v4: - no ch

[PATCH 2/5] drivers/soc/fsl: add EPU FSM configuration for deep sleep

2018-03-28 Thread Ran Wang
. This patch configure the EPU FSM preparing for deep sleep. Signed-off-by: Hongbo Zhang Signed-off-by: Chenhui Zhao Signed-off-by: Ran Wang --- drivers/soc/fsl/Kconfig |7 + drivers/soc/fsl/Makefile|1 + drivers/soc/fsl/sleep_fsm.c | 279

[PATCH 5/5] powerpc:dts:pm: add power management node

2018-03-28 Thread Ran Wang
Enable Power Management feature on device tree, including MPC8536, MPC8544, MPC8548, MPC8572, P1010, P1020, P1021, P1022, P2020, P2041, P3041, T104X, T1024. Signed-off-by: Zhao Chenhui Signed-off-by: Ran Wang --- arch/powerpc/boot/dts/fsl/mpc8536si-post.dtsi | 14 ++- arch/powerpc/boot

[PATCH 4/5] powerpc/pm: add sleep and deep sleep on QorIQ SoCs

2018-03-28 Thread Ran Wang
ed-off-by: Zhao Chenhui Signed-off-by: Wang Dongsheng Signed-off-by: Tang Yuantian Signed-off-by: Xie Xiaobo Signed-off-by: Zhao Qiang Signed-off-by: Shengzhou Liu Signed-off-by: Ran Wang --- arch/powerpc/include/asm/cacheflush.h |7 + arch/powerpc/include/asm/fsl_pm.h

[PATCH 3/5] powerpc/cache: add cache flush operation for various e500

2018-03-28 Thread Ran Wang
caches in the current cpu. Signed-off-by: Chenhui Zhao Reviewed-by: Yang Li Reviewed-by: Jose Rivera Signed-off-by: Ran Wang --- arch/powerpc/include/asm/cputable.h | 12 arch/powerpc/kernel/asm-offsets.c |3 + arch/powerpc/kernel/cpu_setup_fsl_booke.S | 81

[PATCH 1/5] powerpc/pm: Fix suspend=n in menuconfig for e500mc platforms.

2018-03-28 Thread Ran Wang
Also, unselect FSL_PMC which is for older platfroms instead. Signed-off-by: Ran Wang --- arch/powerpc/Kconfig |4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig index 73ce5dd..ed60c83 100644 --- a/arch/powerpc/Kconfig +++ b

[PATCH] usb: dwc3: workaround: disable device-initiated U1/U2

2017-09-28 Thread Ran Wang
requests from the host/hub and enter low power. Signed-off-by: Ran Wang --- Documentation/devicetree/bindings/usb/dwc3.txt | 2 ++ drivers/usb/dwc3/core.c| 2 ++ drivers/usb/dwc3/core.h| 2 ++ drivers/usb/dwc3/ep0.c | 4

[PATCH 1/4] arm: dts: ls1021a: Enable usb3-lpm-capable for usb3 node

2018-01-05 Thread Ran Wang
Enable USB3 HW LPM feature for ls1021a and active patch for snps erratum A-010131. It will disable U1/U2 temperary when initiate U3 request. Signed-off-by: Ran Wang --- arch/arm/boot/dts/ls1021a.dtsi |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/arch/arm/boot/dts

[PATCH 2/4] arm64: dts: ls1043a: Enable usb3-lpm-capable for usb3 node

2018-01-05 Thread Ran Wang
Enable USB3 HW LPM feature for ls1043a and active patch for snps erratum A-010131. It will disable U1/U2 temperary when initiate U3 request. Signed-off-by: Ran Wang --- arch/arm64/boot/dts/freescale/fsl-ls1043a.dtsi |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git

[PATCH 4/4] xHCI: Handle dwc3 erratum on USB3 HW LPM feature.

2018-01-05 Thread Ran Wang
. 3. After U3 entry, re-enable the U2 timer by programming PORTPMSC with the value saved in Step 1. Signed-off-by: Ran Wang --- drivers/usb/host/xhci-hub.c | 22 ++ drivers/usb/host/xhci-plat.c |6 +- drivers/usb/host/xhci.h |1 + 3 files changed, 28 inserti

[PATCH 3/4] arm64: dts: ls1046a: Enable usb3-lpm-capable for usb3 node

2018-01-05 Thread Ran Wang
Enable USB3 HW LPM feature for ls1046a and active patch for snps erratum A-010131. It will disable U1/U2 temperary when initiate U3 request. Signed-off-by: Ran Wang --- arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git

RE: [PATCH 1/2] mm: drop migrate type checks from has_unmovable_pages

2017-11-12 Thread Ran Wang
Hello Michal, > Date: Fri, 13 Oct 2017 14:00:12 +0200 > > From: Michal Hocko > > Michael has noticed that the memory offline tries to migrate kernel code > pages when doing echo 0 > /sys/devices/system/memory/memory0/online > > The current implementation will fail the operation after

RE: [PATCH 1/2] mm: drop migrate type checks from has_unmovable_pages

2017-11-13 Thread Ran Wang
Hi Michal, > -Original Message- > From: Michal Hocko [mailto:mho...@kernel.org] > Sent: Monday, November 13, 2017 7:03 PM > To: Ran Wang > Cc: linux...@kvack.org; Michael Ellerman ; Vlastimil > Babka ; Andrew Morton ; > KAMEZAWA Hiroyuki ; Reza Arbab > ; Yas

RE: [PATCH 1/2] mm: drop migrate type checks from has_unmovable_pages

2017-11-13 Thread Ran Wang
Hi Michal, > -Original Message- > From: Michal Hocko [mailto:mho...@kernel.org] > Sent: Tuesday, November 14, 2017 3:07 PM > To: Ran Wang > Cc: linux...@kvack.org; Michael Ellerman ; Vlastimil > Babka ; Andrew Morton ; > KAMEZAWA Hiroyuki ; Reza Arbab > ; Yas

[PATCH v2 1/6] powerpc/pm: Fix suspend=n in menuconfig for e500mc platforms.

2018-04-11 Thread Ran Wang
Also, unselect FSL_PMC which is for older platfroms instead. Signed-off-by: Ran Wang --- Changes in v2: - no change arch/powerpc/Kconfig |4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig index 73ce5dd..ed60c83 100644

[PATCH v2 2/6] drivers/soc/fsl: add EPU FSM configuration for deep sleep

2018-04-11 Thread Ran Wang
. This patch configure the EPU FSM preparing for deep sleep. Signed-off-by: Hongbo Zhang Signed-off-by: Chenhui Zhao Signed-off-by: Ran Wang --- Changes in v2: - Resolve warnning of scripts/checkpatch.pl drivers/soc/fsl/Kconfig |7 + drivers/soc/fsl/Makefile|1 + drivers/soc

[PATCH v2 3/6] powerpc/cache: add cache flush operation for various e500

2018-04-11 Thread Ran Wang
caches in the current cpu. Signed-off-by: Chenhui Zhao Reviewed-by: Yang Li Reviewed-by: Jose Rivera Signed-off-by: Ran Wang --- Changes in v2: - no change arch/powerpc/include/asm/cputable.h | 12 arch/powerpc/kernel/asm-offsets.c |3 + arch/powerpc/kernel

[PATCH v2 6/6] fsl_pmc: update device bindings

2018-04-11 Thread Ran Wang
From: Li Yang Signed-off-by: Li Yang Signed-off-by: Zhao Chenhui Signed-off-by: Ran Wang --- Changes in v2: - new file .../devicetree/bindings/powerpc/fsl/pmc.txt| 59 +++ 1 files changed, 34 insertions(+), 25 deletions(-) diff --git a/Documentation/devicetree

[PATCH v2 5/6] powerpc:dts:pm: add power management node

2018-04-11 Thread Ran Wang
Enable Power Management feature on device tree, including MPC8536, MPC8544, MPC8548, MPC8572, P1010, P1020, P1021, P1022, P2020, P2041, P3041, T104X, T1024. Signed-off-by: Zhao Chenhui Signed-off-by: Ran Wang --- Changes in v2: - no change arch/powerpc/boot/dts/fsl/mpc8536si-post.dtsi

[PATCH v2 4/6] powerpc/pm: add sleep and deep sleep on QorIQ SoCs

2018-04-11 Thread Ran Wang
ed-off-by: Zhao Chenhui Signed-off-by: Wang Dongsheng Signed-off-by: Tang Yuantian Signed-off-by: Xie Xiaobo Signed-off-by: Zhao Qiang Signed-off-by: Shengzhou Liu Signed-off-by: Ran Wang --- Changes in v2: - Resolve warnning of scripts/checkpatch.pl arch/powerpc/include/asm/cacheflush.h

[PATCH v5 2/3] USB3/DWC3: Add property "snps,incr-burst-type-adjustment" for INCR burst type

2018-03-06 Thread Ran Wang
e enabling undefined length INCR burst type and INCR16 burst type, get better write performance on NXP Layerscape platforms: around 3% improvement (from 364MB/s to 375MB/s). Signed-off-by: Changming Huang Signed-off-by: Ran Wang --- Changes in v5: - add support for ls1021a, ls1012a, ls1046a, ls1088

[PATCH v5 1/3] USB3/DWC3: Add definition for global soc bus configuration register

2018-03-06 Thread Ran Wang
From: Changming Huang Add the macro definition for global soc bus configuration register 0/1 Signed-off-by: Changming Huang Signed-off-by: Ran Wang --- Changes in v5: - no change Changes in v4: - no change Changes in v3: - no change Changes in v2: - split the patch - add more macro

[PATCH v5 3/3] USB3/DWC3: Enable undefined length INCR burst type

2018-03-06 Thread Ran Wang
Signed-off-by: Ran Wang --- Changes in v5: - no change Changes in v4: - Modify the codes according to the definition of this property. Changes in v3: - add new property for INCR burst in usb node to reset GSBUSCFG0. Changes in v2: - split patch - create one new function to handle soc bus

RE: [PATCH 1/3] arm64: dts: ls1012a: add cpu idle support

2018-02-25 Thread Ran Wang
Hi Shawn, > -Original Message- > From: Shawn Guo [mailto:shawn...@kernel.org] > Sent: Saturday, February 24, 2018 3:13 PM > To: Ran Wang > Cc: Mark Rutland ; devicet...@vger.kernel.org; Andy > Tang ; Catalin Marinas ; Will > Deacon ; linux-kernel@vger.kernel.org; L

RE: [PATCH] arm64: dts: ls1012a: add USB host controller nodes

2017-07-13 Thread Ran Wang
> -Original Message- > From: Shawn Guo [mailto:shawn...@kernel.org] > Sent: Thursday, July 13, 2017 4:07 PM > To: Ran Wang > Cc: Rob Herring ; Mark Rutland > ; Catalin Marinas ; Will > Deacon ; Andy Tang ; Harninder > Rai ; Horia Geantă ; open > list:OPEN FI

[PATCH v2] arm64: dts: ls1012a: add USB host controller nodes

2017-07-14 Thread Ran Wang
LS1012A has one USB 3.0(DWC3) controller and one USB 2.0 controller. Signed-off-by: Ran Wang --- Change in v2: Move node usb2@860 to the back of sata@320 to keep nodes sorted in unit-address. arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi | 17

[PATCH] arm64: dts: ls1012a: add USB host controller nodes

2017-07-04 Thread Ran Wang
LS1012A has one USB 3.0(DWC3) controller and one USB 2.0 controller. Signed-off-by: Ran Wang --- arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi | 17 + 1 file changed, 17 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi b/arch/arm64/boot/dts/freescale

RE: [PATCH] arm64: dts: ls1046a: Add dis_rxdet_inp3_quirk property to USB3 node

2017-07-04 Thread Ran Wang
Hello Sir, How is the review result of this patch. I am waiting for it be merged, thanks. BR Ran -Original Message- From: Ran Wang [mailto:ran.wan...@nxp.com] Sent: Friday, June 02, 2017 10:30 AM To: Rob Herring ; Mark Rutland ; Catalin Marinas ; Will Deacon Cc: Shawn Guo ; Andy

[PATCH] arm64: dts: ls1046a: Add dis_rxdet_inp3_quirk property to USB3 node

2017-06-01 Thread Ran Wang
Add "dis_rxdet_inp3_quirk" boolean property to USB3 node. This property is used to disable rx detection in P3 PHY mode. Signed-off-by: Ran Wang --- arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm64/boot/dts/fre

[PATCH v2 2/3] arm64: dts: ls1043a: Enable USB 3.0 phy driver

2017-11-06 Thread Ran Wang
This patch adds entries in dts to enable USB 3.0 PHY driver. Signed-off-by: Sriram Dash Signed-off-by: Ran Wang --- Change in v2: - Rename node name from 'usb3-phy' to 'usb-phy' - Adjust phy node position arch/arm64/boot/dts/freescale/fsl-ls1043a.dtsi | 33

[PATCH v2 1/3] drivers: usb: phy: Add qoriq usb 3.0 phy driver support

2017-11-06 Thread Ran Wang
Adds qoriq usb 3.0 phy driver to implement erratum related workaround for qoriq SoC. Signed-off-by: Sriram Dash Signed-off-by: Ran Wang --- Change in v2: - Replace funciont __raw_writel() by iowrite32be() - Remove qoriq_usb3_phy_read() and qoriq_usb3_phy_write() - Remove

[PATCH v2 3/3] usb: dwc3: Enable USB 3.0 phy driver

2017-11-06 Thread Ran Wang
Adds entry point at dwc3 core init function to enable USB 3.0 PHY driver. Signed-off-by: Ran Wang --- Change in v2: - New file drivers/usb/dwc3/core.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/drivers/usb/dwc3/core.c b/drivers/usb/dwc3/core.c index

[PATCH] [RFC] rt: kernel/sched/core: fix kthread_park() pending too long when CPU un-plugged

2021-01-07 Thread Ran Wang
, this would cause a pending issue since schedule_hrtimerout() depend on thread ksoftirqd to complete related work if it using HRTIMER_MODE_SOFT. So force using HRTIMER_MODE_HARD in such case. Suggested-by: Jiafei Pan Signed-off-by: Ran Wang --- kernel/sched/core.c | 9 +++-- 1 file changed, 7

RE: [PATCH] [RFC] rt: kernel/sched/core: fix kthread_park() pending too long when CPU un-plugged

2021-01-07 Thread Ran Wang
Hi, On Thursday, January 7, 2021 5:19 PM, Ran Wang wrote: > > When doing CPU un-plug stress test, function smpboot_park_threads() would get > call to park kernel threads (which including ksoftirqd) on > that CPU core, and function wait_task_inactive() would yield for those que

[PATCH] usb: gadget: fsl: fix null pointer checking

2020-10-15 Thread Ran Wang
fsl_ep_fifo_status() should return error if _ep->desc is null. Fixes: 75eaa498c99e (“usb: gadget: Correct NULL pointer checking in fsl gadget”) Signed-off-by: Ran Wang --- drivers/usb/gadget/udc/fsl_udc_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/

RE: [PATCH v3 1/5] Documentation: dt: binding: fsl: Add 'fsl,ippdexpcr1-alt-reg' property

2020-10-09 Thread Ran Wang
Hi Rob, On Tuesday, September 29, 2020 4:23 PM, Ran Wang wrote: > > From: Biwen Li > > The 'fsl,ippdexpcr1-alt-reg' property is used to handle an errata A-008646 on > LS1021A. > > Signed-off-by: Biwen Li > Signed-off-by: Ran Wang > --- > Change in v3:

[PATCH] usb: host: fsl-mph-dr-of: check return of dma_set_mask()

2020-10-10 Thread Ran Wang
fsl_usb2_device_register() should stop init if dma_set_mask() return error. Fixes: cae058610465 ("drivers/usb/host: fsl: Set DMA_MASK of usb platform device") Signed-off-by: Ran Wang --- drivers/usb/host/fsl-mph-dr-of.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-)

RE: [PATCH 1/5] Documentation: dt: binding: fsl: Add 'fsl,ippdexpcr1-alt-addr' property

2020-09-21 Thread Ran Wang
Hi Leo, Rob, On Tuesday, September 22, 2020 6:20 AM, Leo Li wrote: > > > -Original Message- > > From: Ran Wang > > Sent: Wednesday, September 16, 2020 3:18 AM > > To: Leo Li ; Rob Herring ; > > Shawn Guo > > Cc: linuxppc-...@lists.ozlabs.org; &

RE: [PATCH 2/5] soc: fsl: handle RCPM errata A-008646 on SoC LS1021A

2020-09-21 Thread Ran Wang
Hi Leo Tuesday, September 22, 2020 6:43 AM, Leo Li wrote: > > > > -Original Message- > > From: Ran Wang > > Sent: Wednesday, September 16, 2020 3:18 AM > > To: Leo Li ; Rob Herring ; > > Shawn Guo > > Cc: linuxppc-...@lists.ozlabs.org

RE: [PATCH 3/5] arm: dts: ls1021a: fix that FlexTimer cannot wakeup system in deep sleep

2020-09-21 Thread Ran Wang
Hi Leo, On Tuesday, September 22, 2020 6:59 AM, Leo Li wrote: > > > -Original Message- > > From: Ran Wang > > Sent: Wednesday, September 16, 2020 3:18 AM > > To: Leo Li ; Rob Herring ; > > Shawn Guo > > Cc: linuxppc-...@lists.ozlabs.org; &

RE: [PATCH v1] soc: fsl: rcpm: Add ACPI support

2020-09-15 Thread Ran Wang
..e75a436fb159 100644 > --- a/drivers/soc/fsl/rcpm.c > +++ b/drivers/soc/fsl/rcpm.c > @@ -2,10 +2,12 @@ > // > // rcpm.c - Freescale QorIQ RCPM driver // -// Copyright 2019 NXP > +// Copyright 2019-2020 NXP > +// Copyright 2020 Puresoftware Ltd. > // > // Author: Ra

RE: [PATCH v1] soc: fsl: rcpm: Add ACPI support

2020-09-15 Thread Ran Wang
s/soc/fsl/rcpm.c b/drivers/soc/fsl/rcpm.c index > > a093dbe6d2cb..e75a436fb159 100644 > > --- a/drivers/soc/fsl/rcpm.c > > +++ b/drivers/soc/fsl/rcpm.c > > @@ -2,10 +2,12 @@ > > // > > // rcpm.c - Freescale QorIQ RCPM driver > > // > > -// Co

RE: [PATCH v1] soc: fsl: rcpm: Add ACPI support

2020-09-16 Thread Ran Wang
Hi Ard, On Wednesday, September 16, 2020 2:11 PM, Ard Biesheuvel wrote: > Subject: Re: [PATCH v1] soc: fsl: rcpm: Add ACPI support > > On 9/16/20 3:32 AM, Ran Wang wrote: > > Hi Ard, > > > > On Tuesday, September 15, 2020 7:10 PM, Ard Biesheuvel wrote: > >> Su

[PATCH 5/5] arm: dts: ls1021a: fix rcpm failed to claim resource

2020-09-16 Thread Ran Wang
The range of dcfg reg is wrong, which overlap with other device, such as rcpm. This issue causing rcpm driver failed to claim reg resource when calling devm_ioremap_resource(). Signed-off-by: Ran Wang --- arch/arm/boot/dts/ls1021a.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH 3/5] arm: dts: ls1021a: fix that FlexTimer cannot wakeup system in deep sleep

2020-09-16 Thread Ran Wang
From: Biwen Li The patch fixes a bug that FlexTimer cannot wakeup system in deep sleep. Signed-off-by: Biwen Li Signed-off-by: Ran Wang --- arch/arm/boot/dts/ls1021a.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/ls1021a.dtsi b/arch/arm/boot/dts/ls1021a.dtsi index

[PATCH 4/5] arm: dts: ls1021a: fix flextimer failed to wake system

2020-09-16 Thread Ran Wang
The data of property 'fsl,rcpm-wakeup' is not corrcet, which causing RCPM driver incorrectly program register IPPDEXPCR1, then flextimer is wrongly clock gated during system suspend, can't send interrupt to wake. Signed-off-by: Ran Wang --- arch/arm/boot/dts/ls1021a.dtsi | 2 +- 1 file changed

[PATCH 1/5] Documentation: dt: binding: fsl: Add 'fsl,ippdexpcr1-alt-addr' property

2020-09-16 Thread Ran Wang
From: Biwen Li The 'fsl,ippdexpcr1-alt-addr' property is used to handle an errata A-008646 on LS1021A Signed-off-by: Biwen Li Signed-off-by: Ran Wang --- Documentation/devicetree/bindings/soc/fsl/rcpm.txt | 19 +++ 1 file changed, 19 insertions(+) diff --git a/Documentation

[PATCH 2/5] soc: fsl: handle RCPM errata A-008646 on SoC LS1021A

2020-09-16 Thread Ran Wang
to set register RCPM_IPPDEXPCR1) Impact: - FlexTimer module will cannot wakeup system in deep sleep on SoC LS1021A Signed-off-by: Biwen Li Signed-off-by: Ran Wang --- drivers/soc/fsl/rcpm.c | 42 +- 1 file changed, 41 insertions

[PATCH] spi: spi-nxp-fspi: fix fspi panic by unexpected interrupts

2020-11-22 Thread Ran Wang
rrupts). Suggested-by: Han Xu Signed-off-by: Ran Wang --- drivers/spi/spi-nxp-fspi.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/spi/spi-nxp-fspi.c b/drivers/spi/spi-nxp-fspi.c index 0d41406..ab90356 100644 --- a/drivers/spi/spi-nxp-fspi.c +++ b/drivers/spi/spi-nxp-fspi.c @@ -

[PATCH v6 2/3] Documentation: dt: binding: fsl: Add 'little-endian' and update Chassis define

2019-08-20 Thread Ran Wang
. Signed-off-by: Ran Wang Reviewed-by: Rob Herring --- Change in v6: - None. Change in v5: - Add 'Reviewed-by: Rob Herring ' to commit message. - Rename property 'fsl,#rcpm-wakeup-cells' to '#fsl,rcpm-wakeup-cells'. please see https://lore.kernel.org/patchwork

[PATCH v6 3/3] soc: fsl: add RCPM driver

2019-08-20 Thread Ran Wang
-by: Ran Wang --- Change in v6: - Adjust related API usage to meet wakeup.c's update in patch 1/3. Change in v5: - Fix v4 regression of the return value of wakeup_source_get_next() didn't pass to ws in while loop. - Rename wakeup_source member 'attached_dev' to 'dev

[PATCH v6 1/3] PM: wakeup: Add routine to help fetch wakeup source object.

2019-08-20 Thread Ran Wang
on that list and return them one by one. Signed-off-by: Ran Wang --- Change in v6: - Add wakeup_source_get_star() and wakeup_source_get_stop() to aligned with wakeup_sources_stats_seq_start/nex/stop. Change in v5: - Update commit message, add decription of walk through

RE: [PATCH v6 3/3] soc: fsl: add RCPM driver

2019-08-20 Thread Ran Wang
Hi Pavel, On Wednesday, August 21, 2019 11:16, Ran Wang wrote: > > The NXP's QorIQ Processors based on ARM Core have RCPM module (Run > Control and Power Management), which performs system level tasks associated > with power management such as wakeup source control. > > T

RE: [PATCH] usb: dwc3: Enable the USB snooping

2019-07-09 Thread Ran Wang
Hi Felipe, On Monday, June 24, 2019 13:58, Felipe Balbi wrote: > > Hi, > > Ran Wang writes: > >> >> > >> >> > /* Global Debug Queue/FIFO Space Available Register */ > >> >> > >> >> > #define DWC3_GDBGFIFOSPA

RE: [PATCH v5 1/3] PM: wakeup: Add routine to help fetch wakeup source object.

2019-08-19 Thread Ran Wang
Hi Rafael, On Monday, August 05, 2019 17:59, Rafael J. Wysocki wrote: > > On Wednesday, July 24, 2019 9:47:20 AM CEST Ran Wang wrote: > > Some user might want to go through all registered wakeup sources and > > doing things accordingly. For example, SoC PM driver might

RE: [PATCH v5 1/3] PM: wakeup: Add routine to help fetch wakeup source object.

2019-08-19 Thread Ran Wang
Hi Rafael, On Monday, August 19, 2019 16:20, Rafael J. Wysocki wrote: > > On Mon, Aug 19, 2019 at 10:15 AM Ran Wang wrote: > > > > Hi Rafael, > > > > On Monday, August 05, 2019 17:59, Rafael J. Wysocki wrote: > > > > > > On Wednesday, July 24, 2

RE: [PATCH] usb: dwc3: Enable the USB snooping

2019-06-02 Thread Ran Wang
Hi Felipe, On Thursday, May 30, 2019 17:09, Ran Wang wrote: > > > > >> >> > /* Global Debug Queue/FIFO Space Available Register */ > > >> >> > #define DWC3_GDBGFIFOSPACE_NUM(n) ((n) & 0x1f) > > >> >> > #define DWC

[PATCH v5 1/3] PM: wakeup: Add routine to help fetch wakeup source object.

2019-07-24 Thread Ran Wang
on that list and return them one by one. Signed-off-by: Ran Wang --- Change in v5: - Update commit message, add decription of walk through all wakeup source objects. - Add SCU protection in function wakeup_source_get_next(). - Rename wakeup_source member

[PATCH v5 3/3] soc: fsl: add RCPM driver

2019-07-24 Thread Ran Wang
-off-by: Ran Wang Acked-by: Pavel Machek --- Change in v5: - Fix v4 regression of the return value of wakeup_source_get_next() didn't pass to ws in while loop. - Rename wakeup_source member 'attached_dev' to 'dev'. - Rename property 'fsl,#rcpm-wakeup-cells' to '#fsl

[PATCH v5 2/3] Documentation: dt: binding: fsl: Add 'little-endian' and update Chassis define

2019-07-24 Thread Ran Wang
. Signed-off-by: Ran Wang Reviewed-by: Rob Herring --- Change in v5: - Add 'Reviewed-by: Rob Herring ' to commit message. - Rename property 'fsl,#rcpm-wakeup-cells' to '#fsl,rcpm-wakeup-cells'. please see https://lore.kernel.org/patchwork/patch/1101022/ Change in v4

[PATCH v3] soc: fsl: enable acpi support

2020-08-18 Thread Ran Wang
From: Peng Ma This patch enables ACPI support in RCPM driver. Signed-off-by: Peng Ma Signed-off-by: Ran Wang --- Change in v3: - Add #ifdef CONFIG_ACPI for acpi_device_id - Rename rcpm_acpi_imx_ids to rcpm_acpi_ids Change in v2: - Update acpi_device_id to fix conflict with other driver

RE: [PATCH v3] soc: fsl: enable acpi support

2020-08-19 Thread Ran Wang
Hi Christophe On Wednesday, August 19, 2020 2:48 PM, Christophe Leroy wrote: > > > > Le 19/08/2020 à 06:00, Ran Wang a écrit : > > From: Peng Ma > > > > This patch enables ACPI support in RCPM driver. > > Can you change the subject to "soc: fsl: en

[PATCH v4] soc: fsl: enable acpi support in RCPM driver

2020-08-19 Thread Ran Wang
From: Peng Ma This patch enables ACPI support in RCPM driver. Signed-off-by: Peng Ma Signed-off-by: Ran Wang --- Change in v4: - Make commit subject more accurate - Remove unrelated new blank line Change in v3: - Add #ifdef CONFIG_ACPI for acpi_device_id - Rename rcpm_acpi_imx_ids

  1   2   3   >