[PATCH 3/3][v4] arm: dts: ls1021a: Add quirk for Erratum A009116

2015-09-03 Thread Nikhil Badola
Add "snps,quirk-frame-length-adjustment" property to USB3 node for erratum A009116. This property provides value of GFLADJ_30MHZ for post silicon frame length adjustment. Signed-off-by: Nikhil Badola --- Changes for v4: None arch/arm/boot/dts/ls1021a.dtsi | 1 + 1 file changed, 1

[PATCH 2/3][v4] drivers: usb: dwc3: Add frame length adjustment quirk

2015-09-03 Thread Nikhil Badola
Add adjust_frame_length_quirk for writing to fladj register which adjusts (micro)frame length to value provided by "snps,quirk-frame-length-adjustment" property thus avoiding USB 2.0 devices to time-out over a longer run Signed-off-by: Nikhil Badola --- Changes for v4: Removed mixed de

[PATCH 1/3][v4] Documentation: dt: dwc3: Add snps,quirk-frame-length-adjustment property

2015-09-03 Thread Nikhil Badola
Add snps,quirk-frame-length-adjustment property which provides value for post silicon frame length adjustment Signed-off-by: Nikhil Badola --- Changes for v4: None Documentation/devicetree/bindings/usb/dwc3.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree

[PATCH 1/3][v4] Documentation: dt: dwc3: Add snps,quirk-frame-length-adjustment property

2015-09-03 Thread Nikhil Badola
Add snps,quirk-frame-length-adjustment property which provides value for post silicon frame length adjustment Signed-off-by: Nikhil Badola <nikhil.bad...@freescale.com> --- Changes for v4: None Documentation/devicetree/bindings/usb/dwc3.txt | 3 +++ 1 file changed, 3 insertions(+) diff

[PATCH 2/3][v4] drivers: usb: dwc3: Add frame length adjustment quirk

2015-09-03 Thread Nikhil Badola
Add adjust_frame_length_quirk for writing to fladj register which adjusts (micro)frame length to value provided by "snps,quirk-frame-length-adjustment" property thus avoiding USB 2.0 devices to time-out over a longer run Signed-off-by: Nikhil Badola <nikhil.bad...@freescale.com

[PATCH 3/3][v4] arm: dts: ls1021a: Add quirk for Erratum A009116

2015-09-03 Thread Nikhil Badola
Add "snps,quirk-frame-length-adjustment" property to USB3 node for erratum A009116. This property provides value of GFLADJ_30MHZ for post silicon frame length adjustment. Signed-off-by: Nikhil Badola <nikhil.bad...@freescale.com> --- Changes for v4: None arch/arm/boot/dts/ls102

[PATCH 3/3][v3] arm: dts: ls1021a: Add quirk for Erratum A009116

2015-09-02 Thread Nikhil Badola
Add "snps,quirk-frame-length-adjustment" property to USB3 node for erratum A009116. This property provides value of GFLADJ_30MHZ for post silicon frame length adjustment. Signed-off-by: Nikhil Badola --- Changes for v3 : None arch/arm/boot/dts/ls1021a.dtsi | 1 + 1 file changed, 1

[PATCH 2/3][v3] drivers: usb: dwc3: Add frame length adjustment quirk

2015-09-02 Thread Nikhil Badola
Add adjust_frame_length_quirk for writing to fladj register which adjusts (micro)frame length to value provided by "snps,quirk-frame-length-adjustment" property thus avoiding USB 2.0 devices to time-out over a longer run Signed-off-by: Nikhil Badola --- Changes for v3:

[PATCH 1/3][v3] Documentation: dt: dwc3: Add snps,quirk-frame-length-adjustment property

2015-09-02 Thread Nikhil Badola
Add snps,quirk-frame-length-adjustment property which provides value for post silicon frame length adjustment Signed-off-by: Nikhil Badola --- Changes for v3 : None Documentation/devicetree/bindings/usb/dwc3.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree

[PATCH 2/3][v3] drivers: usb: dwc3: Add frame length adjustment quirk

2015-09-02 Thread Nikhil Badola
Add adjust_frame_length_quirk for writing to fladj register which adjusts (micro)frame length to value provided by "snps,quirk-frame-length-adjustment" property thus avoiding USB 2.0 devices to time-out over a longer run Signed-off-by: Nikhil Badola <nikhil.bad...@freescale.com

[PATCH 1/3][v3] Documentation: dt: dwc3: Add snps,quirk-frame-length-adjustment property

2015-09-02 Thread Nikhil Badola
Add snps,quirk-frame-length-adjustment property which provides value for post silicon frame length adjustment Signed-off-by: Nikhil Badola <nikhil.bad...@freescale.com> --- Changes for v3 : None Documentation/devicetree/bindings/usb/dwc3.txt | 3 +++ 1 file changed, 3 insertions(+) diff

[PATCH 3/3][v3] arm: dts: ls1021a: Add quirk for Erratum A009116

2015-09-02 Thread Nikhil Badola
Add "snps,quirk-frame-length-adjustment" property to USB3 node for erratum A009116. This property provides value of GFLADJ_30MHZ for post silicon frame length adjustment. Signed-off-by: Nikhil Badola <nikhil.bad...@freescale.com> --- Changes for v3 : None arch/arm/boot/dts/ls102

[PATCH 1/3][v2] Documentation: dt: dwc3: Add snps,quirk-frame-length-adjustment property

2015-08-16 Thread Nikhil Badola
Add snps,quirk-frame-length-adjustment property which provides value for post silicon frame length adjustment Signed-off-by: Nikhil Badola --- Changes for v2 - changed quirk name as well description Documentation/devicetree/bindings/usb/dwc3.txt | 3 +++ 1 file changed, 3 insertions

[PATCH 3/3][v2] arm: dts: ls1021a: Add quirk for Erratum A009116

2015-08-16 Thread Nikhil Badola
Add "snps,quirk-frame-length-adjustment" property to USB3 node for erratum A009116. This property provides value of GFLADJ_30MHZ for post silicon frame length adjustment. Signed-off-by: Nikhil Badola --- Changes for v2 : - updated property name arch/arm/boot/dts/ls1021a.dts

[PATCH 2/3][v2] drivers: usb: dwc3: Add frame length adjustment quirk

2015-08-16 Thread Nikhil Badola
Add adjust_frame_length_quirk for writing to fladj register which adjusts (micro)frame length to value provided by "snps,quirk-frame-length-adjustment" property thus avoiding USB 2.0 devices to time-out over a longer run Signed-off-by: Nikhil Badola --- changes for v2 : - updat

[PATCH 3/3][v2] arm: dts: ls1021a: Add quirk for Erratum A009116

2015-08-16 Thread Nikhil Badola
Add snps,quirk-frame-length-adjustment property to USB3 node for erratum A009116. This property provides value of GFLADJ_30MHZ for post silicon frame length adjustment. Signed-off-by: Nikhil Badola nikhil.bad...@freescale.com --- Changes for v2 : - updated property name arch/arm/boot

[PATCH 1/3][v2] Documentation: dt: dwc3: Add snps,quirk-frame-length-adjustment property

2015-08-16 Thread Nikhil Badola
Add snps,quirk-frame-length-adjustment property which provides value for post silicon frame length adjustment Signed-off-by: Nikhil Badola nikhil.bad...@freescale.com --- Changes for v2 - changed quirk name as well description Documentation/devicetree/bindings/usb/dwc3.txt | 3 +++ 1

[PATCH 2/3][v2] drivers: usb: dwc3: Add frame length adjustment quirk

2015-08-16 Thread Nikhil Badola
Add adjust_frame_length_quirk for writing to fladj register which adjusts (micro)frame length to value provided by snps,quirk-frame-length-adjustment property thus avoiding USB 2.0 devices to time-out over a longer run Signed-off-by: Nikhil Badola nikhil.bad...@freescale.com --- changes for v2

[PATCH][v2] drivers: usb: fsl: Workaround for USB erratum-A005275

2015-08-06 Thread Nikhil Badola
by this erratum: P3041 and P2041 rev 1.0 and 1.1 P5020 and P5010 rev 1.0 and 2.0 P5040, P1010 and T4240 rev 1.0 Signed-off-by: Ramneek Mehresh Signed-off-by: Nikhil Badola --- changes for v2: - Changed PFSC bit writing hunk position - Changed ehci_has_fsl_hs_errata(e) definition

[PATCH][v2] drivers: usb: fsl: Workaround for USB erratum-A005275

2015-08-06 Thread Nikhil Badola
by this erratum: P3041 and P2041 rev 1.0 and 1.1 P5020 and P5010 rev 1.0 and 2.0 P5040, P1010 and T4240 rev 1.0 Signed-off-by: Ramneek Mehresh ramneek.mehr...@freescale.com Signed-off-by: Nikhil Badola nikhil.bad...@freescale.com --- changes for v2: - Changed PFSC bit writing hunk position

[PATCH] drivers: usb: fsl: Workaround for USB erratum-A005275

2015-07-31 Thread Nikhil Badola
by this erratum: P3041 and P2041 rev 1.0 and 1.1 P5020 and P5010 rev 1.0 and 2.0 P5040, P1010 and T4240 rev 1.0 Signed-off-by: Ramneek Mehresh Signed-off-by: Nikhil Badola --- drivers/usb/host/ehci-fsl.c | 4 drivers/usb/host/ehci-hub.c | 7 +++ drivers/usb/host/ehci.h

[PATCH] drivers: usb: fsl: Workaround for USB erratum-A005275

2015-07-31 Thread Nikhil Badola
by this erratum: P3041 and P2041 rev 1.0 and 1.1 P5020 and P5010 rev 1.0 and 2.0 P5040, P1010 and T4240 rev 1.0 Signed-off-by: Ramneek Mehresh ramneek.mehr...@freescale.com Signed-off-by: Nikhil Badola nikhil.bad...@freescale.com --- drivers/usb/host/ehci-fsl.c | 4 drivers/usb/host/ehci

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

2015-07-27 Thread Nikhil Badola
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: Ramneek Mehresh Signed-off-by: Nikhil Badola --- drivers/usb/host/ehci-fsl.c

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

2015-07-27 Thread Nikhil Badola
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: Ramneek Mehresh ramneek.mehr...@freescale.com Signed-off-by: Nikhil Badola

[PATCH 2/3] drivers: usb: dwc3: Add adjust_frame_length_quirk

2015-07-23 Thread Nikhil Badola
Add adjust_frame_length_quirk for writing to fladj register which adjusts (micro)frame length to value provided by "snps,configure-fladj" property thus avoiding USB 2.0 devices to time-out over a longer run Signed-off-by: Nikhil Badola --- drivers/usb/dwc3/core.c | 12 d

[PATCH 3/3] arm: dts: ls1021a: Add snps,configure-gfladj property to USB3 node

2015-07-23 Thread Nikhil Badola
Add "snps,configure-gfladj" boolean property to USB3 node. This property is used to determine if frame length adjustment is required Signed-off-by: Nikhil Badola --- arch/arm/boot/dts/ls1021a.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/ls1021a.dtsi b/arc

[PATCH 1/3] Documentation: dt: dwc3: Add snps,configure-fladj property

2015-07-23 Thread Nikhil Badola
Add property snps,configure-fladj for enabling post silicon frame length adjustment Signed-off-by: Nikhil Badola --- Documentation/devicetree/bindings/usb/dwc3.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/usb/dwc3.txt b/Documentation/devicetree

[PATCH 3/3] arm: dts: ls1021a: Add snps,configure-gfladj property to USB3 node

2015-07-23 Thread Nikhil Badola
Add snps,configure-gfladj boolean property to USB3 node. This property is used to determine if frame length adjustment is required Signed-off-by: Nikhil Badola nikhil.bad...@freescale.com --- arch/arm/boot/dts/ls1021a.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts

[PATCH 2/3] drivers: usb: dwc3: Add adjust_frame_length_quirk

2015-07-23 Thread Nikhil Badola
Add adjust_frame_length_quirk for writing to fladj register which adjusts (micro)frame length to value provided by snps,configure-fladj property thus avoiding USB 2.0 devices to time-out over a longer run Signed-off-by: Nikhil Badola nikhil.bad...@freescale.com --- drivers/usb/dwc3/core.c | 12

[PATCH 1/3] Documentation: dt: dwc3: Add snps,configure-fladj property

2015-07-23 Thread Nikhil Badola
Add property snps,configure-fladj for enabling post silicon frame length adjustment Signed-off-by: Nikhil Badola nikhil.bad...@freescale.com --- Documentation/devicetree/bindings/usb/dwc3.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/usb/dwc3.txt b

[PATCH 1/2] drivers: usb: fsl: Modify phy clk valid bit checking

2015-07-14 Thread Nikhil Badola
Phy_clk_valid bit is checked only when the boolean property phy-clk-valid in present in usb node device tree. This property is added to the usb node via device tree fixup. Signed-off-by: Nikhil Badola --- Dependent on patchset : https://lkml.org/lkml/2015/6/15/177 and subsequent patches

[PATCH 2/2] drivers: usb: fsl: Define usb control register mask for w1c bits

2015-07-14 Thread Nikhil Badola
Define and use CONTROL_REGISTER_W1C_MASK to make sure that w1c bits of usb control register do not get reset while writing any other bit Signed-off-by: Nikhil Badola --- drivers/usb/host/ehci-fsl.c | 25 - drivers/usb/host/ehci-fsl.h | 1 + 2 files changed, 17

[PATCH 2/2] drivers: usb: fsl: Define usb control register mask for w1c bits

2015-07-14 Thread Nikhil Badola
Define and use CONTROL_REGISTER_W1C_MASK to make sure that w1c bits of usb control register do not get reset while writing any other bit Signed-off-by: Nikhil Badola nikhil.bad...@freescale.com --- drivers/usb/host/ehci-fsl.c | 25 - drivers/usb/host/ehci-fsl.h | 1 + 2

[PATCH 1/2] drivers: usb: fsl: Modify phy clk valid bit checking

2015-07-14 Thread Nikhil Badola
Phy_clk_valid bit is checked only when the boolean property phy-clk-valid in present in usb node device tree. This property is added to the usb node via device tree fixup. Signed-off-by: Nikhil Badola nikhil.bad...@freescale.com --- Dependent on patchset : https://lkml.org/lkml/2015/6/15/177

[PATCH 3/3][v2] drivers:usb:fsl: Introduce FSL_USB2_PHY_UTMI_DUAL macro

2015-06-15 Thread Nikhil Badola
Introduce FSL_USB2_PHY_UTMI_DUAL macro for setting phy mode in SOCs such has T4240, T1040, T2080 which have utmi dual-phy Signed-off-by: Ramneek Mehresh Signed-off-by: Nikhil Badola --- Changes for v2 : None drivers/usb/host/ehci-fsl.c | 1 + drivers/usb/host/fsl-mph-dr-of.c | 2

[PATCH 2/3][v2] drivers: usb :fsl: Implement Workaround for USB Erratum A007792

2015-06-15 Thread Nikhil Badola
USB controller version-2.5 requires to enable internal UTMI phy and program PTS field in PORTSC register before asserting controller reset. This is must for successful resetting of the controller and subsequent enumeration of usb devices Signed-off-by: Nikhil Badola Signed-off-by: Suresh Gupta

[PATCH 1/3][v2] drivers:usb:fsl: Replace macros with enumerated type

2015-06-15 Thread Nikhil Badola
Replace macros with enumerated type to represent usb ip controller version Signed-off-by: Nikhil Badola --- Changes for v2 : - Assigned value to each enumerator - Changed return type of function that returns controller version - Introduced FSL_USB_VER_NONE

[PATCH 2/3][v2] drivers: usb :fsl: Implement Workaround for USB Erratum A007792

2015-06-15 Thread Nikhil Badola
USB controller version-2.5 requires to enable internal UTMI phy and program PTS field in PORTSC register before asserting controller reset. This is must for successful resetting of the controller and subsequent enumeration of usb devices Signed-off-by: Nikhil Badola nikhil.bad...@freescale.com

[PATCH 3/3][v2] drivers:usb:fsl: Introduce FSL_USB2_PHY_UTMI_DUAL macro

2015-06-15 Thread Nikhil Badola
Introduce FSL_USB2_PHY_UTMI_DUAL macro for setting phy mode in SOCs such has T4240, T1040, T2080 which have utmi dual-phy Signed-off-by: Ramneek Mehresh ramneek.mehr...@freescale.com Signed-off-by: Nikhil Badola nikhil.bad...@freescale.com --- Changes for v2 : None drivers/usb/host/ehci-fsl.c

[PATCH 1/3][v2] drivers:usb:fsl: Replace macros with enumerated type

2015-06-15 Thread Nikhil Badola
Replace macros with enumerated type to represent usb ip controller version Signed-off-by: Nikhil Badola nikhil.bad...@freescale.com --- Changes for v2 : - Assigned value to each enumerator - Changed return type of function that returns controller version

[PATCH 3/5] drivers:usb:fsl: Replace macros with enumerated type

2015-05-26 Thread Nikhil Badola
Replace macros with enumerated type to represent usb ip controller version Signed-off-by: Nikhil Badola --- include/linux/fsl_devices.h | 13 - 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/include/linux/fsl_devices.h b/include/linux/fsl_devices.h index 2a2f56b

[PATCH 4/5] drivers:usb:fsl: Implement Workaround for USB Erratum A007792

2015-05-26 Thread Nikhil Badola
USB controller version-2.5 requires to enable internal UTMI phy and program PTS field in PORTSC register before asserting controller reset. This is must for successful resetting of the controller and subsequent enumeration of usb devices Signed-off-by: Nikhil Badola Signed-off-by: Suresh Gupta

[PATCH 5/5] drivers:usb:fsl: Introduce FSL_USB2_PHY_UTMI_DUAL macro

2015-05-26 Thread Nikhil Badola
Introduce FSL_USB2_PHY_UTMI_DUAL macro for setting phy mode in SOCs such has T4240, T1040, T2080 which have utmi dual-phy Signed-off-by: Ramneek Mehresh Signed-off-by: Nikhil Badola --- drivers/usb/host/ehci-fsl.c | 1 + drivers/usb/host/fsl-mph-dr-of.c | 2 ++ include/linux/fsl_devices.h

[PATCH 1/5] drivers:usb:fsl: Check IP version 2.4 for mph USB controller

2015-05-26 Thread Nikhil Badola
Check IP version 2.4 for multi port host USB controller and return FSL_USB_VER_2_4 macro Signed-off-by: Nikhil Badola --- Separate patches clubbed and resent in an ordered patchset with proper mailing list in cc drivers/usb/host/fsl-mph-dr-of.c | 3 +++ 1 file changed, 3 insertions(+) diff

[PATCH 2/5] drivers:usb:fsl: Add support for USB controller version-2.5

2015-05-26 Thread Nikhil Badola
Add support for USB controller version-2.5 used in T4240 rev2.0, T1024, T1040, T2080, LS1021A Signed-off-by: Nikhil Badola --- drivers/usb/host/fsl-mph-dr-of.c | 5 + include/linux/fsl_devices.h | 1 + 2 files changed, 6 insertions(+) diff --git a/drivers/usb/host/fsl-mph-dr-of.c b

[PATCH 3/5] drivers:usb:fsl: Replace macros with enumerated type

2015-05-26 Thread Nikhil Badola
Replace macros with enumerated type to represent usb ip controller version Signed-off-by: Nikhil Badola nikhil.bad...@freescale.com --- include/linux/fsl_devices.h | 13 - 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/include/linux/fsl_devices.h b/include/linux

[PATCH 4/5] drivers:usb:fsl: Implement Workaround for USB Erratum A007792

2015-05-26 Thread Nikhil Badola
USB controller version-2.5 requires to enable internal UTMI phy and program PTS field in PORTSC register before asserting controller reset. This is must for successful resetting of the controller and subsequent enumeration of usb devices Signed-off-by: Nikhil Badola nikhil.bad...@freescale.com

[PATCH 5/5] drivers:usb:fsl: Introduce FSL_USB2_PHY_UTMI_DUAL macro

2015-05-26 Thread Nikhil Badola
Introduce FSL_USB2_PHY_UTMI_DUAL macro for setting phy mode in SOCs such has T4240, T1040, T2080 which have utmi dual-phy Signed-off-by: Ramneek Mehresh ramneek.mehr...@freescale.com Signed-off-by: Nikhil Badola nikhil.bad...@freescale.com --- drivers/usb/host/ehci-fsl.c | 1 + drivers/usb

[PATCH 1/5] drivers:usb:fsl: Check IP version 2.4 for mph USB controller

2015-05-26 Thread Nikhil Badola
Check IP version 2.4 for multi port host USB controller and return FSL_USB_VER_2_4 macro Signed-off-by: Nikhil Badola nikhil.bad...@freescale.com --- Separate patches clubbed and resent in an ordered patchset with proper mailing list in cc drivers/usb/host/fsl-mph-dr-of.c | 3 +++ 1 file

[PATCH 2/5] drivers:usb:fsl: Add support for USB controller version-2.5

2015-05-26 Thread Nikhil Badola
Add support for USB controller version-2.5 used in T4240 rev2.0, T1024, T1040, T2080, LS1021A Signed-off-by: Nikhil Badola nikhil.bad...@freescale.com --- drivers/usb/host/fsl-mph-dr-of.c | 5 + include/linux/fsl_devices.h | 1 + 2 files changed, 6 insertions(+) diff --git a/drivers

[PATCH] drivers:usb:fsl: Introduce FSL_USB2_PHY_UTMI_DUAL macro

2015-05-25 Thread Nikhil Badola
Introduce FSL_USB2_PHY_UTMI_DUAL macro for setting phy mode in SOCs such has T4240, T1040, T2080 which have utmi dual-phy Signed-off-by: Ramneek Mehresh Signed-off-by: Nikhil Badola --- drivers/usb/host/ehci-fsl.c | 1 + drivers/usb/host/fsl-mph-dr-of.c | 2 ++ include/linux/fsl_devices.h

[PATCH] drivers:usb:fsl: Introduce FSL_USB2_PHY_UTMI_DUAL macro

2015-05-25 Thread Nikhil Badola
Introduce FSL_USB2_PHY_UTMI_DUAL macro for setting phy mode in SOCs such has T4240, T1040, T2080 which have utmi dual-phy Signed-off-by: Ramneek Mehresh ramneek.mehr...@freescale.com Signed-off-by: Nikhil Badola nikhil.bad...@freescale.com --- drivers/usb/host/ehci-fsl.c | 1 + drivers/usb

[PATCH] drivers:usb:fsl: Replace macros with enumerated type

2015-05-24 Thread Nikhil Badola
Replace macros with enumerated type to represent usb ip controller version Signed-off-by: Nikhil Badola --- Depends on "drivers: usb :fsl: Add support for USB controller version-2.5" include/linux/fsl_devices.h | 13 - 1 file changed, 8 insertions(+), 5 deletions(-)

[PATCH] drivers:usb:fsl: Replace macros with enumerated type

2015-05-24 Thread Nikhil Badola
Replace macros with enumerated type to represent usb ip controller version Signed-off-by: Nikhil Badola nikhil.bad...@freescale.com --- Depends on drivers: usb :fsl: Add support for USB controller version-2.5 include/linux/fsl_devices.h | 13 - 1 file changed, 8 insertions(+), 5