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

2017-01-18 Thread Changming Huang
Enable the undefined length INCR burst type and set INCRx. Different platform may has the different burst size type. In order to get best performance, we need to tune the burst size to one special value, instead of the default value. Signed-off-by: Changming Huang <jerry.hu...@nxp.com> Sign

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

2017-01-18 Thread Changming Huang
e enabling undefined length INCR burst type and INCR16 burst type, get better write performance on NXP Layerscape platform: around 3% improvement (from 364MB/s to 375MB/s). Signed-off-by: Changming Huang <jerry.hu...@nxp.com> --- Changes in v4: - change definition for this property. Changes in

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

2017-01-18 Thread Changming Huang
Enable the undefined length INCR burst type and set INCRx. Different platform may has the different burst size type. In order to get best performance, we need to tune the burst size to one special value, instead of the default value. Signed-off-by: Changming Huang Signed-off-by: Rajesh Bhagat

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

2017-01-18 Thread Changming Huang
e enabling undefined length INCR burst type and INCR16 burst type, get better write performance on NXP Layerscape platform: around 3% improvement (from 364MB/s to 375MB/s). Signed-off-by: Changming Huang --- Changes in v4: - change definition for this property. Changes in v3: - add new property for

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

2017-01-18 Thread Changming Huang
Add the macro definition for global soc bus configuration register 0/1 Signed-off-by: Changming Huang <jerry.hu...@nxp.com> --- Changes in v4: - no change Changes in v3: - no change Changes in v2: - split the patch - add more macro definition for soc bus configuration register d

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

2017-01-18 Thread Changming Huang
Add the macro definition for global soc bus configuration register 0/1 Signed-off-by: Changming Huang --- Changes in v4: - no change Changes in v3: - no change Changes in v2: - split the patch - add more macro definition for soc bus configuration register drivers/usb/dwc3/core.h | 26

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

2016-12-19 Thread Changming Huang
6 burst type, get better write performance on NXP Layerscape platform: around 3% improvement (from 364MB/s to 375MB/s). Signed-off-by: Changming Huang <jerry.hu...@nxp.com> --- Changes in v3: - add new property for INCR burst in usb node. Documentation/devicetree/bindings/usb/dwc3

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

2016-12-19 Thread Changming Huang
6 burst type, get better write performance on NXP Layerscape platform: around 3% improvement (from 364MB/s to 375MB/s). Signed-off-by: Changming Huang --- Changes in v3: - add new property for INCR burst in usb node. Documentation/devicetree/bindings/usb/dwc3.txt |5 +

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

2016-12-19 Thread Changming Huang
Add the macro definition for global soc bus configuration register 0/1 Signed-off-by: Changming Huang <jerry.hu...@nxp.com> --- Changes in v3: - no change Changes in v2: - split the patch - add more macro definition for soc bus configuration register drivers/usb/dwc3/core.h

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

2016-12-19 Thread Changming Huang
Add the macro definition for global soc bus configuration register 0/1 Signed-off-by: Changming Huang --- Changes in v3: - no change Changes in v2: - split the patch - add more macro definition for soc bus configuration register drivers/usb/dwc3/core.h | 26

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

2016-12-19 Thread Changming Huang
Enable the undefined length INCR burst type and set INCRx. Different platform may has the different burst size type. In order to get best performance, we need to tune the burst size to one special value, instead of the default value. Signed-off-by: Changming Huang <jerry.hu...@nxp.com> Sign

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

2016-12-19 Thread Changming Huang
Enable the undefined length INCR burst type and set INCRx. Different platform may has the different burst size type. In order to get best performance, we need to tune the burst size to one special value, instead of the default value. Signed-off-by: Changming Huang Signed-off-by: Rajesh Bhagat

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

2016-12-16 Thread Changming Huang
Add the macro definition for global soc bus configuration register 0/1 Signed-off-by: Changming Huang <jerry.hu...@nxp.com> --- Changes in v2: - split the patch - add more macro definition for soc bus configuration register drivers/usb/dwc3/core.h | 26 ++

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

2016-12-16 Thread Changming Huang
Add the macro definition for global soc bus configuration register 0/1 Signed-off-by: Changming Huang --- Changes in v2: - split the patch - add more macro definition for soc bus configuration register drivers/usb/dwc3/core.h | 26 ++ 1 file changed, 26 insertions

[PATCH v2 2/2] USB3/DWC3: Enable undefined length INCR burst type

2016-12-16 Thread Changming Huang
While enabling undefined length INCR burst type and INCR16 burst type, get better write performance on NXP Layerscape platform: around 3% improvement (from 364MB/s to 375MB/s). Signed-off-by: Changming Huang <jerry.hu...@nxp.com> Signed-off-by: Rajesh Bhagat <rajesh.bha...@nxp.com>

[PATCH v2 2/2] USB3/DWC3: Enable undefined length INCR burst type

2016-12-16 Thread Changming Huang
While enabling undefined length INCR burst type and INCR16 burst type, get better write performance on NXP Layerscape platform: around 3% improvement (from 364MB/s to 375MB/s). Signed-off-by: Changming Huang Signed-off-by: Rajesh Bhagat --- Changs in v2: - split patch - create one new

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

2016-12-13 Thread Changming Huang
While enabling undefined length INCR burst type and INCR16 burst type, get better write performance on NXP Layerscape platform: around 3% improvement (from 364MB/s to 375MB/s). Signed-off-by: Changming Huang <jerry.hu...@nxp.com> Signed-off-by: Rajesh Bhagat <rajesh.bha...@nxp.com>

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

2016-12-13 Thread Changming Huang
While enabling undefined length INCR burst type and INCR16 burst type, get better write performance on NXP Layerscape platform: around 3% improvement (from 364MB/s to 375MB/s). Signed-off-by: Changming Huang Signed-off-by: Rajesh Bhagat --- drivers/usb/dwc3/core.c |6 ++ drivers/usb

[PATCH] fsl/usb: Add USB node in FSL's ls1012a DTS

2016-12-07 Thread Changming Huang
Add USB node in ls1012a device tree Signed-off-by: Changming Huang <jerry.hu...@nxp.com> --- Dependence on patch "[v3] arm64: Add DTS support for FSL's LS1012A SoC". https://patchwork.kernel.org/patch/9462399/ arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi | 17 +

[PATCH] fsl/usb: Add USB node in FSL's ls1012a DTS

2016-12-07 Thread Changming Huang
Add USB node in ls1012a device tree Signed-off-by: Changming Huang --- Dependence on patch "[v3] arm64: Add DTS support for FSL's LS1012A SoC". https://patchwork.kernel.org/patch/9462399/ arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi | 17 + 1 file changed, 17

[PATCH v4] fsl/usb: Workarourd for USB erratum-A005697

2016-11-28 Thread Changming Huang
has entered suspended state before initiating this port resume using the Force Port Resume bit. This bit is for NXP controller, not EHCI compatible. Signed-off-by: Changming Huang <jerry.hu...@nxp.com> Signed-off-by: Ramneek Mehresh <ramneek.mehr...@nxp.com> --- Changes in v4: - rele

[PATCH v4] fsl/usb: Workarourd for USB erratum-A005697

2016-11-28 Thread Changming Huang
has entered suspended state before initiating this port resume using the Force Port Resume bit. This bit is for NXP controller, not EHCI compatible. Signed-off-by: Changming Huang Signed-off-by: Ramneek Mehresh --- Changes in v4: - release spinlock before sleeping Changes in v3: - add 10ms

[PATCH v3] fsl/usb: Workarourd for USB erratum-A005697

2016-11-28 Thread Changming Huang
has entered suspended state before initiating this port resume using the Force Port Resume bit. This bit is for NXP controller, not EHCI compatible. Signed-off-by: Changming Huang <jerry.hu...@nxp.com> Signed-off-by: Ramneek Mehresh <ramneek.mehr...@nxp.com> --- Changes in v3: - ad

[PATCH v3] fsl/usb: Workarourd for USB erratum-A005697

2016-11-28 Thread Changming Huang
has entered suspended state before initiating this port resume using the Force Port Resume bit. This bit is for NXP controller, not EHCI compatible. Signed-off-by: Changming Huang Signed-off-by: Ramneek Mehresh --- Changes in v3: - add 10ms delay in function ehci_hub_control - fix typos

[PATCH v2] fsl/usb: Workarourd for USB erratum-A005697

2016-11-24 Thread Changming Huang
has entered suspended state before initiating this port resume using the Force Port Resume bit. This bit is for NXP controller, not EHCI compatible. Signed-off-by: Changming Huang <jerry.hu...@nxp.com> Signed-off-by: Ramneek Mehresh <ramneek.mehr...@nxp.com> --- Change in v2: - mo

[PATCH v2] fsl/usb: Workarourd for USB erratum-A005697

2016-11-24 Thread Changming Huang
has entered suspended state before initiating this port resume using the Force Port Resume bit. This bit is for NXP controller, not EHCI compatible. Signed-off-by: Changming Huang Signed-off-by: Ramneek Mehresh --- Change in v2: - move sleep out of spin-lock and add more comment

[PATCH] fsl/usb: Workarourd for USB erratum-A005697

2016-11-24 Thread Changming Huang
the application sets it and not when the port is actually suspended Workaround for this issue involves waiting for a minimum of 10ms to allow the controller to go into SUSPEND state before proceeding ahead Signed-off-by: Changming Huang <jerry.hu...@nxp.com> Signed-off-by: Ramneek Mehresh <ram

[PATCH] fsl/usb: Workarourd for USB erratum-A005697

2016-11-24 Thread Changming Huang
the application sets it and not when the port is actually suspended Workaround for this issue involves waiting for a minimum of 10ms to allow the controller to go into SUSPEND state before proceeding ahead Signed-off-by: Changming Huang Signed-off-by: Ramneek Mehresh --- drivers/usb/host/ehci-fsl.c

[PATCH] arm/dts: ls1021a: Add dma-coherent property to usb3 node

2016-11-23 Thread Changming Huang
This sets dma ops as coherent for usb 3.0 platform device Signed-off-by: Changming Huang <jerry.hu...@nxp.com> Signed-off-by: Rajesh Bhagat <rajesh.bha...@nxp.com> --- arch/arm/boot/dts/ls1021a.dtsi |1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/ls1021a.dts

[PATCH] arm/dts: ls1021a: Add dma-coherent property to usb3 node

2016-11-23 Thread Changming Huang
This sets dma ops as coherent for usb 3.0 platform device Signed-off-by: Changming Huang Signed-off-by: Rajesh Bhagat --- 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 368e219..81fb4d9

[PATCH] fsl/usb: Add FSL USB Gadget entry in platform device id table

2016-11-23 Thread Changming Huang
Add FSL USB Gadget entry in platform device id table Signed-off-by: Changming Huang <jerry.hu...@nxp.com> Signed-off-by: Suresh Gupta <suresh.gu...@nxp.com> --- drivers/usb/gadget/udc/fsl_udc_core.c |2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/usb/gadget/udc/fsl_u

[PATCH] fsl/usb: Add FSL USB Gadget entry in platform device id table

2016-11-23 Thread Changming Huang
Add FSL USB Gadget entry in platform device id table Signed-off-by: Changming Huang Signed-off-by: Suresh Gupta --- drivers/usb/gadget/udc/fsl_udc_core.c |2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/usb/gadget/udc/fsl_udc_core.c b/drivers/usb/gadget/udc/fsl_udc_core.c