[RESEND][PATCH v3 2/2] usb: dwc3: Add workaround for host mode VBUS glitch when boot

2019-06-05 Thread Ran Wang
or xhci.c). Then, after xhci reset complete in xhci driver, PORTSC[PP]s' value will back to 1 automatically and VBUS on at that time, no glitch happen and normal enumeration process has no impact. Signed-off-by: Ran Wang --- Changes in v3: - Add macro PORT_REGS_SIZE to replace 0x10 - Change initial

[RESEND][PATCH v3 1/2] usb: dwc3: Add avoiding vbus glitch happen during xhci reset

2019-06-05 Thread Ran Wang
or xhci.c). Signed-off-by: Ran Wang Reviewed-by: Rob Herring --- Changes in v3: - None Changes in v2: - Correct typos - Shorten the name to snps,host-vbus-glitches Documentation/devicetree/bindings/usb/dwc3.txt |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git

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

2019-06-04 Thread Ran Wang
Hi Sirs, Could anyone please comment this patch set or tell me if I have missed maintainer in mail list? I'd like to let review process move forward. Thank you. Regards, Ran On Monday, May 20, 2019 17:53 Ran Wang wrote: > > Some user might want to go through all registered

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

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

2019-05-30 Thread Ran Wang
Hi Felipe, On Tuesday, May 28, 2019 18:20, Felipe Balbi wrote: > > >> >> > /* Global Debug Queue/FIFO Space Available Register */ > >> >> > #define DWC3_GDBGFIFOSPACE_NUM(n)((n) & 0x1f) > >> >> > #define DWC3_GDBGFIFOSPACE_TYPE(n) (((n) << 5) & 0x1e0) > >> >> > @@ -859,6 +867,7 @@

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

2019-05-29 Thread Ran Wang
Hi Felipe, On Wednesday, May 29, 2019 18:25, Felipe Balbi wrote: > > Hi, > > Ran Wang writes: > >> >> >> c) WHAT does this mean for PCI devices? > > > > According to DWC3 data book, I think this (PCI) mean to the case of 'master > bus type =

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

2019-05-29 Thread Ran Wang
HI Felipe, On Tuesday, May 28, 2019 18:20, Felipe Balbi wrote: > > Hi, > > Ran Wang writes: > > > Hi Felipe, > > > > Sorry for the late reply: > > > > On Wednesday, November 15, 2017 18:23, Felipe Balbi wrote: > > that'

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

2019-05-28 Thread Ran Wang
Hi Felipe, Sorry for the late reply: On Wednesday, November 15, 2017 18:23, Felipe Balbi wrote: > > Hi, > > Ran Wang writes: > >> Ran Wang writes: > >> > Add support for USB3 snooping by asserting bits in register > >> > DWC3_GSBUSCFG0 fo

RE: [RESEND][PATCH] arm64: dts: lx2160a: Enable usb3-lpm-capable for usb3 node

2019-05-23 Thread Ran Wang
Hi Shawn, On Thursday, May 23, 2019 15:43, Shawn Guo wrote: > > On Wed, May 15, 2019 at 02:04:34PM +0800, Ran Wang wrote: > > Enable USB3 HW LPM feature for lx2160a and active patch for snps > > erratum A-010131. It will disable U1/U2 temperary when initiate U3 > > req

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

2019-05-20 Thread Ran Wang
. Signed-off-by: Ran Wang --- Change in v4: - Adjust indectation of 'ls1021a, ls1012a, ls1043a, ls1046a'. Change in v3: - None. Change in v2: - None. Documentation/devicetree/bindings/soc/fsl/rcpm.txt |8 +++- 1 files changed, 7 insertions(+), 1 deletions

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

2019-05-20 Thread Ran Wang
-off-by: Ran Wang Acked-by: Pavel Machek --- Change in v4: - Remove extra ',' in author line of rcpm.c - Update usage of wakeup_source_get_next() to be less confusing to the reader, code logic remain the same. Change in v3: - Some whitespace ajdustment. Change

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

2019-05-20 Thread Ran Wang
is interested in. Signed-off-by: Ran Wang --- Change in v4: - None. Change in v3: - Adjust indentation of *attached_dev;. Change in v2: - None. drivers/base/power/wakeup.c | 18 ++ include/linux/pm_wakeup.h |3 +++ 2 files changed, 21 insertions(+), 0

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

2019-05-20 Thread Ran Wang
Hi Pavel, On Monday, May 20, 2019 17:08 Pavel Machek wrote: > > > Hi! > > > > > > > > > +static int rcpm_pm_prepare(struct device *dev) { > > > > > > + struct device_node *np = dev->of_node; > > > > > > + struct wakeup_source *ws; > > > > > > + struct rcpm *rcpm; > > > > > > + u32

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

2019-05-20 Thread Ran Wang
Hi Pavel, On Monday, May 20, 2019 16:57, Pavel Machek wrote: > > Hi! > > > > > +static int rcpm_pm_prepare(struct device *dev) { > > > > + struct device_node *np = dev->of_node; > > > > + struct wakeup_source *ws; > > > > + struct rcpm *rcpm; > > > > + u32

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

2019-05-20 Thread Ran Wang
ch as wakeup source control. > > > > This driver depends on PM wakeup source framework which help to > > collect wake information. > > > > Signed-off-by: Ran Wang > > > +// Copyright 2019 NXP > > +// > > +// Author: Ran Wang , > > extra , OK, will upd

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

2019-05-20 Thread Ran Wang
is interested in. Signed-off-by: Ran Wang --- Change in v3: - Adjust indentation of *attached_dev;. Change in v2: - None. drivers/base/power/wakeup.c | 18 ++ include/linux/pm_wakeup.h |3 +++ 2 files changed, 21 insertions(+), 0 deletions(-) diff --git

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

2019-05-20 Thread Ran Wang
. Signed-off-by: Ran Wang --- Change in v3: - None. Change in v2: - None. Documentation/devicetree/bindings/soc/fsl/rcpm.txt |8 +++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/Documentation/devicetree/bindings/soc/fsl/rcpm.txt b/Documentation

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

2019-05-20 Thread Ran Wang
-off-by: Ran Wang --- Change in v3: - Some whitespace ajdustment. Change in v2: - Rebase Kconfig and Makefile update to latest mainline. drivers/soc/fsl/Kconfig |8 +++ drivers/soc/fsl/Makefile |1 + drivers/soc/fsl/rcpm.c | 124

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

2019-05-20 Thread Ran Wang
Hi Pavel, On Monday, May 20, 2019 05:39, Pavel Machek wrote: > > Hi! > > > > + > > +struct rcpm { > > + unsigned int wakeup_cells; > > + void __iomem *ippdexpcr_base; > > + boollittle_endian; > > +}; > > Inconsistent whitespace OK, will make them aligned. > > > +static int

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

2019-05-19 Thread Ran Wang
Hi Pavel, On Monday, May 20, 2019 05:35, Pavel Machek wrote: > > > --- a/include/linux/pm_wakeup.h > > > @@ -70,6 +71,7 @@ struct wakeup_source { > > unsigned long wakeup_count; > > boolactive:1; > > boolautosleep_enabled:1; > > +

[PATCH v4] arm64: dts: ls1028a: Add USB dt nodes

2019-05-16 Thread Ran Wang
This patch adds USB dt nodes for LS1028A. Signed-off-by: Ran Wang --- Changes in v4: - Move nodes to follow rule of unit-address in the address. - Use macro to replace 'interrupts' values. Changes in v3: - Add space between label and node name. - Add spcae with properties

[PATCH v2] arm64: dts: ls1028a: Fix CPU idle fail.

2019-05-16 Thread Ran Wang
: 8897f3255c9c ("arm64: dts: Add support for NXP LS1028A SoC") Signed-off-by: Ran Wang --- arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi | 18 +- 1 files changed, 9 insertions(+), 9 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi b/arch/arm6

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

2019-05-16 Thread Ran Wang
. Signed-off-by: Ran Wang --- Change in v2: - None. Documentation/devicetree/bindings/soc/fsl/rcpm.txt |8 +++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/Documentation/devicetree/bindings/soc/fsl/rcpm.txt b/Documentation/devicetree/bindings/soc/fsl/rcpm.txt

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

2019-05-16 Thread Ran Wang
-off-by: Ran Wang --- Change in v2: - Rebase Kconfig and Makefile update to latest mainline. drivers/soc/fsl/Kconfig |8 +++ drivers/soc/fsl/Makefile |1 + drivers/soc/fsl/rcpm.c | 124 ++ 3 files changed, 133 insertions(+), 0

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

2019-05-16 Thread Ran Wang
is interested in. Signed-off-by: Ran Wang --- Change in v2: - None. drivers/base/power/wakeup.c | 18 ++ include/linux/pm_wakeup.h |3 +++ 2 files changed, 21 insertions(+), 0 deletions(-) diff --git a/drivers/base/power/wakeup.c b/drivers/base/power/wakeup.c index

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

2019-05-16 Thread Ran Wang
. Signed-off-by: Ran Wang --- Documentation/devicetree/bindings/soc/fsl/rcpm.txt |8 +++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/Documentation/devicetree/bindings/soc/fsl/rcpm.txt b/Documentation/devicetree/bindings/soc/fsl/rcpm.txt index e284e4e..058154c 100644

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

2019-05-16 Thread Ran Wang
-off-by: Ran Wang --- drivers/soc/fsl/Kconfig |8 +++ drivers/soc/fsl/Makefile |1 + drivers/soc/fsl/rcpm.c | 124 ++ 3 files changed, 133 insertions(+), 0 deletions(-) create mode 100644 drivers/soc/fsl/rcpm.c diff --git a/drivers/soc/fsl

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

2019-05-16 Thread Ran Wang
is interested in. Signed-off-by: Ran Wang --- drivers/base/power/wakeup.c | 18 ++ include/linux/pm_wakeup.h |3 +++ 2 files changed, 21 insertions(+), 0 deletions(-) diff --git a/drivers/base/power/wakeup.c b/drivers/base/power/wakeup.c index 5fa1898..8d75795 100644

[RESEND][PATCH] arm64: dts: lx2160a: Enable usb3-lpm-capable for usb3 node

2019-05-15 Thread Ran Wang
Enable USB3 HW LPM feature for lx2160a and active patch for snps erratum A-010131. It will disable U1/U2 temperary when initiate U3 request. Signed-off-by: Ran Wang --- Depend on: https://lore.kernel.org/patchwork/patch/870134/ arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi |4 1

[PATCH v3] arm64: dts: ls1028a: Add USB dt nodes

2019-05-08 Thread Ran Wang
This patch adds USB dt nodes for LS1028A. Signed-off-by: Ran Wang --- Changes in v3: - Add space between label and node name. - Add spcae with properties and '='. - Add SoC specific compatible. Changes in v2: - Rename node from usb3@... to usb@... to meet DTSpec arch/arm64/boot/dts

RE: [PATCH v2] arm64: dts: ls1028a: Add USB dt nodes

2019-05-07 Thread Ran Wang
Hi Rob, On Wednesday, May 08, 2019 00:40, Rob Herring wrote: > > On Tue, May 7, 2019 at 3:48 AM Ran Wang wrote: > > > > Hi Rob, > > > > On Thursday, May 02, 2019 07:54 Rob Herring wrote: > > > > > > On Fri, Apr 26, 2019 at 05:54:26AM +, Ran

RE: [PATCH v2] arm64: dts: ls1028a: Add USB dt nodes

2019-05-07 Thread Ran Wang
Hi Rob, On Thursday, May 02, 2019 07:54 Rob Herring wrote: > > On Fri, Apr 26, 2019 at 05:54:26AM +0000, Ran Wang wrote: > > This patch adds USB dt nodes for LS1028A. > > > > Signed-off-by: Ran Wang > > --- > > Changes in v2: > > - Rename no

[PATCH] arm64: dts: ls1028a: Fix CPU idle fail.

2019-05-07 Thread Ran Wang
-by: Ran Wang --- arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi | 18 +- 1 files changed, 9 insertions(+), 9 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi b/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi index b045812..bf7f845 100644 --- a/arch/arm64

[PATCH v2] arm64: dts: ls1028a: Add USB dt nodes

2019-04-25 Thread Ran Wang
This patch adds USB dt nodes for LS1028A. Signed-off-by: Ran Wang --- Changes in v2: - Rename node from usb3@... to usb@... to meet DTSpec arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi | 20 1 files changed, 20 insertions(+), 0 deletions(-) diff --git a/arch/arm64

[PATCH] arm64: dts: lx2160a: add cpu idle support

2019-04-17 Thread Ran Wang
lx2160a supports pw20 which could help save more power during cpu is dile. It needs system firmware support via PSCI. Signed-off-by: Ran Wang --- arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi | 25 1 files changed, 25 insertions(+), 0 deletions(-) diff --git a/arch

[PATCH] arm64: dts: ls1028a: Add USB dt nodes

2019-04-10 Thread Ran Wang
This patch adds USB dt nodes for LS1028A. Signed-off-by: Ran Wang --- arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi | 20 1 files changed, 20 insertions(+), 0 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi b/arch/arm64/boot/dts/freescale/fsl

RE: [PATCH v3 1/2] usb: dwc3: Add avoiding vbus glitch happen during xhci reset

2019-02-26 Thread Ran Wang
Hi Rob, > -Original Message- > From: Rob Herring > Sent: Wednesday, February 27, 2019 00:40 > To: Ran Wang > Cc: Greg Kroah-Hartman ; Yang Li > ; linux-...@vger.kernel.org; devicet...@vger.kernel.org; > linux-kernel@vger.kernel.org; Ran Wang > Subject: Re: [PATC

[PATCH v3 2/2] usb: dwc3: Add workaround for host mode VBUS glitch when boot

2019-02-25 Thread Ran Wang
or xhci.c). Then, after xhci reset complete in xhci driver, PORTSC[PP]s' value will back to 1 automatically and VBUS on at that time, no glitch happen and normal enumeration process has no impact. Signed-off-by: Ran Wang --- Changes in v3: - Add macro PORT_REGS_SIZE to replace 0x10 - Change initial

[PATCH v3 1/2] usb: dwc3: Add avoiding vbus glitch happen during xhci reset

2019-02-25 Thread Ran Wang
or xhci.c). Signed-off-by: Ran Wang --- Changes in v3: - None Changes in v2: - Correct typos - Shorten the name to snps,host-vbus-glitches Documentation/devicetree/bindings/usb/dwc3.txt |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/Documentation/devicetree

RE: [PATCH v2 2/2] usb: dwc3: Add workaround for host mode VBUS glitch when boot

2019-02-25 Thread Ran Wang
Hi Leo, > -Original Message- > From: Yang Li > Sent: Tuesday, February 26, 2019 05:29 > To: Ran Wang > Cc: Greg Kroah-Hartman ; Rob Herring > ; Mark Rutland ; Felipe Balbi > ; linux-...@vger.kernel.org; devicet...@vger.kernel.org; > linux-kernel@vger.kernel.org

[PATCH v2 1/2] usb: dwc3: Add avoiding vbus glitch happen during xhci reset

2019-02-18 Thread Ran Wang
or xhci.c). Signed-off-by: Ran Wang --- Changes in v2: - Correct typos - Shorten the name to snps,host-vbus-glitches Documentation/devicetree/bindings/usb/dwc3.txt |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/Documentation/devicetree/bindings/usb/dwc3.txt b

[PATCH v2 2/2] usb: dwc3: Add workaround for host mode VBUS glitch when boot

2019-02-18 Thread Ran Wang
or xhci.c). Then, after xhci reset complete in xhci driver, PORTSC[PP]s' value will back to 1 automatically and VBUS on at that time, no glitch happen and normal enumeration process has no impact. Signed-off-by: Ran Wang --- Changes in v2: - Rename related property to 'snps,host-vbus-glitches

RE: [PATCH 2/2] usb: dwc3: Add workaround for host mode VBUS glitch when boot

2019-02-15 Thread Ran Wang
Hi Felipe, Sorry for the late response, I didn't receive your mail. Felipe Balbi wrotes: >Hi, > >Ran Wang writes: >> +static void dwc3_power_off_all_roothub_ports(struct dwc3 *dwc) >> +{ >> +int i, port_num; >> +u32 reg, op_regs_b

RE: [PATCH 1/2] usb: dwc3: Add avoiding vbus glitch happen during xhci reset

2019-01-21 Thread Ran Wang
Hi Rob, On January 22, 2019 09:03, Rob Herring wrote: > > On Wed, Jan 16, 2019 at 06:48:06AM +0000, Ran Wang wrote: > > When DWC3 is set to host mode by programming register DWC3_GCTL, > VUBS > > s/VUBS/VBUS/ Yes, will fix it in next version. > > (or its control

RE: [PATCH v2 1/3] usb: ehci: fsl: Update register accessing for arm/arm64 platforms

2019-01-17 Thread Ran Wang
Hi Alan, On January 18, 2019 00:08, Alan Stern wrote: > > On Thu, 17 Jan 2019, Ran Wang wrote: > > > arm/arm64's io.h doesn't define clrbits32() and clrsetbits_be32(), > > which causing compile failure on some Layerscape Platforms (such as > > LS1021A and LS2012A whi

[PATCH v2 1/3] usb: ehci: fsl: Update register accessing for arm/arm64 platforms

2019-01-17 Thread Ran Wang
-by: Ran Wang --- Changes in v2: - Recover writel() calling in code of handling pdata->has_fsl_erratum_a007792 - Remove unnecessary parens - Move this patch to be first one to avoid breaking the build on ARM. drivers/usb/host/ehci-fsl.c | 62 --

[PATCH v2 2/3] usb: kconfig: remove dependency FSL_SOC for ehci fsl driver

2019-01-17 Thread Ran Wang
CONFIG_USB_EHCI_FSL is not dependent on FSL_SOC, it can be built on non-PPC platforms. Signed-off-by: Rajesh Bhagat Signed-off-by: Ran Wang --- Changes in v2: - remove 'depends on USB_EHCI_HCD' - Move this patch to be second one to avoid breaking the build on ARM. drivers/usb/host/Kconfig

[PATCH v2 3/3] drivers: usb :fsl: Remove USB Errata checking code

2019-01-17 Thread Ran Wang
Badola Signed-off-by: Yinbo Zhu Signed-off-by: Ran Wang --- Changes in v2: - Correct signed-off name. - Use tabs rather than spaces to make code aligned. drivers/usb/host/ehci-fsl.c |7 +-- drivers/usb/host/fsl-mph-dr-of.c |6 ++ include/linux/fsl_devices.h |7

RE: [PATCH 2/3] usb: ehci: fsl: Update register accessing for arm/arm64 platforms

2019-01-17 Thread Ran Wang
Hi Greg, On 08, 2019 23:45, Greg Kroah-Hartman wrote: > > On Tue, Jan 08, 2019 at 06:04:26AM +0000, Ran Wang wrote: > > arm/arm64's io.h doesn't define clrbits32() and clrsetbits_be32(), > > which causing compile failure on some Layerscape Platforms (such as > > LS1021

RE: [PATCH 1/2] usb: dwc3: Add avoiding vbus glitch happen during xhci reset

2019-01-15 Thread Ran Wang
Hi, On 16, 2019 14:48 Ran Wang wrote: > It seems the preface patch (0/2) failed to be accepted by patchwork (could anyone tell me how to generate it properly with some sommand?), I paste its content here for your reference : This to fix USB enumeration compatibility issue found on DWC3 (h

[PATCH 1/2] usb: dwc3: Add avoiding vbus glitch happen during xhci reset

2019-01-15 Thread Ran Wang
or xhci.c). Signed-off-by: Ran Wang --- Documentation/devicetree/bindings/usb/dwc3.txt |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/Documentation/devicetree/bindings/usb/dwc3.txt b/Documentation/devicetree/bindings/usb/dwc3.txt index 8e5265e..dadb530 100644

[PATCH 2/2] usb: dwc3: Add workaround for host mode VBUS glitch when boot

2019-01-15 Thread Ran Wang
or xhci.c). Then, after xhci reset complete in xhci driver, PORTSC[PP]s' value will back to 1 automatically and VBUS on at that time, no glitch happen and normal enumeration process has no impact. Signed-off-by: Ran Wang --- drivers/usb/dwc3/core.c | 47

[PATCH 0/2] usb: dwc3: Add avoiding vbus glitch happen during xhci reset

2019-01-15 Thread Ran Wang
) is not good from perspective of SW stack, but it seems to be the only place to fix this real existing problem (test result show that doing this in xhci-plat.c or xhci.c would not hlep on this kind of failure). If who have better idea, please let me know, thanks in advanced. Ran Wang (2): dt-bindings

RE: [PATCH 2/3] usb: ehci: fsl: Update register accessing for arm/arm64 platforms

2019-01-11 Thread Ran Wang
Hi Alan, On Thursday, January 10, 2019, Alan wrote: > > On Thu, 10 Jan 2019, Ran Wang wrote: > > > Hi Alan, > > > > > -Original Message- > > > From: Alan Stern > > > Sent: Wednesday, January 09, 2019 23:14 > > > To

RE: [PATCH 2/3] usb: ehci: fsl: Update register accessing for arm/arm64 platforms

2019-01-09 Thread Ran Wang
Hi Alan, > -Original Message- > From: Alan Stern > Sent: Wednesday, January 09, 2019 23:14 > To: Ran Wang > Cc: Greg Kroah-Hartman ; linux- > u...@vger.kernel.org; linux-kernel@vger.kernel.org > Subject: RE: [PATCH 2/3] usb: ehci: fsl: Update register accessing for

RE: [PATCH 3/3] drivers: usb :fsl: Remove USB Errata checking code

2019-01-08 Thread Ran Wang
Hi Alan, > -Original Message- > From: Alan Stern > Sent: Wednesday, January 09, 2019 00:22 > To: Ran Wang > Cc: Greg Kroah-Hartman ; linux- > u...@vger.kernel.org; linux-kernel@vger.kernel.org; Yinbo Zhu > > Subject: Re: [PATCH 3/3] drivers: usb :fsl: Remove

RE: [PATCH 2/3] usb: ehci: fsl: Update register accessing for arm/arm64 platforms

2019-01-08 Thread Ran Wang
Hi Alan, > -Original Message- > From: Alan Stern > Sent: Wednesday, January 09, 2019 00:20 > To: Ran Wang > Cc: Greg Kroah-Hartman ; linux- > u...@vger.kernel.org; linux-kernel@vger.kernel.org > Subject: Re: [PATCH 2/3] usb: ehci: fsl: Update register accessing for

RE: [PATCH 1/3] usb: kconfig: remove dependency FSL_SOC for ehci fsl driver

2019-01-08 Thread Ran Wang
Hi Alan, > -Original Message- > From: Alan Stern > Sent: Wednesday, January 09, 2019 00:12 > To: Ran Wang > Cc: Greg Kroah-Hartman ; linux- > u...@vger.kernel.org; linux-kernel@vger.kernel.org; Rajesh Bhagat > > Subject: Re: [PATCH 1/3] usb: kconfig: remove dep

RE: [PATCH 3/3] drivers: usb :fsl: Remove USB Errata checking code

2019-01-08 Thread Ran Wang
Hi Greg, > -Original Message- > From: Greg Kroah-Hartman > Sent: Tuesday, January 08, 2019 23:45 > To: Ran Wang > Cc: Alan Stern ; linux-...@vger.kernel.org; > linux-kernel@vger.kernel.org; Yinbo Zhu > Subject: Re: [PATCH 3/3] drivers: usb :fsl: Remove USB

[PATCH 2/3] usb: ehci: fsl: Update register accessing for arm/arm64 platforms

2019-01-07 Thread Ran Wang
-by: Ran Wang --- drivers/usb/host/ehci-fsl.c | 64 --- 1 files changed, 42 insertions(+), 22 deletions(-) diff --git a/drivers/usb/host/ehci-fsl.c b/drivers/usb/host/ehci-fsl.c index 0a9fd20..59ebe1b 100644 --- a/drivers/usb/host/ehci-fsl.c +++ b/drivers

[PATCH 3/3] drivers: usb :fsl: Remove USB Errata checking code

2019-01-07 Thread Ran Wang
-off-by: Ran Wang --- drivers/usb/host/ehci-fsl.c |7 +-- drivers/usb/host/fsl-mph-dr-of.c |6 ++ include/linux/fsl_devices.h |7 --- 3 files changed, 11 insertions(+), 9 deletions(-) diff --git a/drivers/usb/host/ehci-fsl.c b/drivers/usb/host/ehci-fsl.c index

[PATCH 1/3] usb: kconfig: remove dependency FSL_SOC for ehci fsl driver

2019-01-07 Thread Ran Wang
From: Rajesh Bhagat CONFIG_USB_EHCI_FSL is not dependent on FSL_SOC, it can be built on non-PPC platforms. Signed-off-by: Rajesh Bhagat Signed-off-by: Ran Wang --- drivers/usb/host/Kconfig |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/usb/host/Kconfig b

[PATCH 1/2] arm64: dts: layerscape: Add incr-burst-type-adjustment property to USB3 node

2018-12-19 Thread Ran Wang
Add this property to all layerscape platforms to improve USB read write performance. Signed-off-by: Ran Wang --- arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi |1 + arch/arm64/boot/dts/freescale/fsl-ls1043a.dtsi |3 +++ arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi |3 +++ arch

[PATCH 2/2] arm: dts: ls1021a: Add incr-burst-byte-adjustment property to USB3 node

2018-12-19 Thread Ran Wang
Add this property to improve USB read write performance. Signed-off-by: Ran Wang --- arch/arm/boot/dts/ls1021a.dtsi |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/arch/arm/boot/dts/ls1021a.dtsi b/arch/arm/boot/dts/ls1021a.dtsi index bdd6e66..f788a89 100644 --- a/arch

RE: RESEND: About VBUS glitch happen on DWC3 host mode enabling process.

2018-12-12 Thread Ran Wang
Hi Felipe & Mathias, It seems that my below reply mail failed to be shown on lkml.org. So I have to resend it. Like to have your comment/suggestion before I begin the solution implement work. Thanks Ran Wang wrote: > > Hello Felipe, > > Felipe Balbi wrote: > > &

[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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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

[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 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

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

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

[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

[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 b/arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi index

[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 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 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

<    1   2   3   >