[RFC 3/3] arm64: dts: Modify device tree for support Hikey960

2017-10-23 Thread Yu Chen
Add dts for usb module of Hikey960. Signed-off-by: Yu Chen Signed-off-by: Ning Fan Signed-off-by: Di Yang Signed-off-by: Rui Li --- arch/arm64/boot/dts/hisilicon/hi3660.dtsi | 39 +++ 1 file changed, 39 insertions(+) diff --git a/arch/arm64/boot/dts/hisilicon

[RFC 2/3] USB: dwc3: Modify dwc3 code for support usb of Hikey960

2017-10-23 Thread Yu Chen
The usb controller of Kirin960 is DesignWare Cores SuperSpeed USB 3.0 Controller. The patch modifies dwc3 for support Kirin960 and adds codes for a USB Hub on board Hikey960. Signed-off-by: Yu Chen Signed-off-by: Ning Fan Signed-off-by: Di Yang Signed-off-by: Rui Li --- arch/arm64/configs

[RFC 0/3] USB: Modify dwc3 code for support Hikey960

2017-10-23 Thread Yu Chen
The HiKey960 development platform is based around the HiSilicon Kirin960. The patch sets add support for usb of HiKey960. Fan Ning (3): Add document for usb of Hikey960 Modify dwc3 code for support usb of Hikey960 Modify device tree for support Hikey960 .../devicetree/bindings/usb/hisilico

[RFC 1/3] USB: Add document for usb of Hikey960

2017-10-23 Thread Yu Chen
DT bindings for usb of Hikey960. Signed-off-by: Yu Chen Signed-off-by: Ning Fan Signed-off-by: Di Yang Signed-off-by: Rui Li --- .../devicetree/bindings/usb/hisilicon-usb.txt | 38 ++ 1 file changed, 38 insertions(+) create mode 100644 Documentation/devicetree

[PATCH] usb:xhci fix panic in xhci_free_virt_devices_depth_first

2017-11-05 Thread Yu Chen
From: Yu Chen Check vdev->real_port 0 to avoid panic [9.261347] [] xhci_free_virt_devices_depth_first+0x58/0x108 [9.261352] [] xhci_mem_cleanup+0x1bc/0x570 [9.261355] [] xhci_stop+0x140/0x1c8 [9.261365] [] usb_remove_hcd+0xfc/0x1d0 [9.261369] [] xhci_plat_remove+0x6c/0

[PATCH v2] usb:xhci fix panic in xhci_free_virt_devices_depth_first

2017-11-06 Thread Yu Chen
From: Yu Chen Check vdev->real_port 0 to avoid panic [9.261347] [] xhci_free_virt_devices_depth_first+0x58/0x108 [9.261352] [] xhci_mem_cleanup+0x1bc/0x570 [9.261355] [] xhci_stop+0x140/0x1c8 [9.261365] [] usb_remove_hcd+0xfc/0x1d0 [9.261369] [] xhci_plat_remove+0x6c/0

[PATCH v3] usb:xhci fix panic in xhci_free_virt_devices_depth_first

2017-11-06 Thread Yu Chen
From: Yu Chen Check vdev->real_port 0 to avoid panic [9.261347] [] xhci_free_virt_devices_depth_first+0x58/0x108 [9.261352] [] xhci_mem_cleanup+0x1bc/0x570 [9.261355] [] xhci_stop+0x140/0x1c8 [9.261365] [] usb_remove_hcd+0xfc/0x1d0 [9.261369] [] xhci_plat_remove+0x6c/0

[PATCH] Subject: [PATCH] usb:dwc3:fix access poisoned list_head in dwc3_gadget_giveback

2017-12-23 Thread Yu Chen
From: Yu Chen Unable to handle kernel paging request at virtual address dead0108 pgd = fff7a3179000 [dead0108] *pgd=230e0003, *pud=230e0003, *pmd= Internal error: Oops: 9644 [#1] PREEMPT SMP Modules linked in: CPU: 2 PID: 1 Comm: init

[PATCH] usb:dwc3:fix access poisoned list_head in dwc3_gadget_giveback

2017-12-23 Thread Yu Chen
From: Yu Chen Unable to handle kernel paging request at virtual address dead0108 pgd = fff7a3179000 [dead0108] *pgd=230e0003, *pud=230e0003, *pmd= Internal error: Oops: 9644 [#1] PREEMPT SMP Modules linked in: CPU: 2 PID: 1 Comm: init

[PATCH 08/10] usb: typec: Add support for usb role switch in rt1711h driver

2018-10-27 Thread Yu Chen
This patch add struct device_connection to rt1711h driver to support find "usb-role-switch" in tcpm_register_port. Cc: Heikki Krogerus Cc: Greg Kroah-Hartman Cc: Lucas Tsai Cc: shufan_lee Cc: John Stultz Cc: Binghui Wang Signed-off-by: Yu Chen --- drivers/usb/typec/tcpm/tcpci

[PATCH 09/10] usb: gadget: Add configfs attribuite for controling match_existing_only

2018-10-27 Thread Yu Chen
ange the config of "match_existing_only". This patch adds a configfs attribuite for controling match_existing_only which allow user to config "match_existing_only". Cc: Felipe Balbi Cc: Greg Kroah-Hartman Cc: John Stultz Cc: Binghui Wang Signed-off-by: Yu Chen ---

[PATCH 10/10] dts: hi3660: Add support for usb on Hikey960

2018-10-27 Thread Yu Chen
This patch adds support for usb on Hikey960. Cc: Wei Xu Cc: Rob Herring Cc: Mark Rutland Cc: linux-arm-ker...@lists.infradead.org Cc: John Stultz Cc: Binghui Wang Signed-off-by: Yu Chen --- arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts | 35 +++ arch/arm64/boot/dts

[PATCH 04/10] usb: dwc3: dwc3-hisi: Add code for dwc3 of Hisilicon Soc Platform

2018-10-27 Thread Yu Chen
This driver handles the poweron and shutdown of dwc3 core on Hisilicon Soc Platform. Cc: Felipe Balbi Cc: Greg Kroah-Hartman Cc: "David S. Miller" Cc: Mauro Carvalho Chehab Cc: Andrew Morton Cc: Arnd Bergmann Cc: John Stultz Cc: Binghui Wang Signed-off-by: Yu Chen --- M

[PATCH 03/10] dt-bindings: misc: Add bindings for HiSilicon usb hub and data role switch functionality on HiKey960

2018-10-27 Thread Yu Chen
This patch adds binding documentation to support usb hub and usb data role switch of Hisilicon HiKey&HiKey960 Board. Cc: Rob Herring Cc: Mark Rutland Cc: John Stultz Cc: Binghui Wang Signed-off-by: Yu Chen --- .../bindings/misc/hisilicon-hikey-usb.txt | 24 +

[PATCH 07/10] hikey960: Support usb functionality of Hikey960

2018-10-27 Thread Yu Chen
Greg Kroah-Hartman Cc: John Stultz Cc: Binghui Wang Signed-off-by: Yu Chen --- drivers/misc/Kconfig | 7 + drivers/misc/Makefile | 1 + drivers/misc/hisi_hikey_usb.c | 319 ++ 3 files changed, 327 insertions(+) create mode 100644 drivers/

[PATCH 00/10] Add support for usb on Hikey960

2018-10-27 Thread Yu Chen
The patchset adds support for usb functionality of Hikey960, includes: - dwc3 driver for Hisilicon Kirin Soc hi3660 - usb driver for HiKey960 board - some adjustment in dwc3, usb gadget and typec driver - dts for support usb of HiKey960 Yu Chen (10): dt-bindings: usb: add support for dwc3

[PATCH 01/10] dt-bindings: usb: add support for dwc3 controller on HiSilicon SoCs

2018-10-27 Thread Yu Chen
This patch adds binding descriptions to support the dwc3 controller on HiSilicon SoCs and boards like the HiKey960. Cc: Greg Kroah-Hartman Cc: Rob Herring Cc: Mark Rutland Cc: John Stultz Signed-off-by: Yu Chen --- .../devicetree/bindings/usb/dwc3-hisi.txt | 53

[PATCH 02/10] dt-bindings: phy: Add support for HiSilicon's hi3660 USB PHY

2018-10-27 Thread Yu Chen
This patch adds binding documentation for supporting the hi3660 usb phy on boards like the HiKey960. Cc: Rob Herring Cc: Mark Rutland Cc: John Stultz Cc: Binghui Wang Signed-off-by: Yu Chen --- .../devicetree/bindings/phy/phy-hi3660-usb3.txt | 21 + 1 file changed

[PATCH 05/10] usb: dwc3: Add two quirks for Hisilicon Kirin Soc Platform

2018-10-27 Thread Yu Chen
There are tow quirks for DesignWare USB3 DRD Core of Hisilicon Kirin Soc. 1)SPLIT_BOUNDARY_DISABLE should be set for Host mode 2)A GCTL soft reset should be executed when switch mode Cc: Felipe Balbi Cc: Greg Kroah-Hartman Cc: John Stultz Cc: Binghui Wang Signed-off-by: Yu Chen --- drivers

[PATCH 06/10] phy: Add usb phy support for hi3660 Soc of Hisilicon

2018-10-27 Thread Yu Chen
Yamada Cc: Jiancheng Xue Cc: John Stultz Cc: Binghui Wang Signed-off-by: Yu Chen --- MAINTAINERS | 2 + drivers/phy/hisilicon/Kconfig | 10 ++ drivers/phy/hisilicon/Makefile | 1 + drivers/phy/hisilicon/phy-hi3660-us

[PATCH v1 06/12] phy: Add usb phy support for hi3660 Soc of Hisilicon

2018-12-02 Thread Yu Chen
Yamada Cc: Jiancheng Xue Cc: John Stultz Cc: Binghui Wang Signed-off-by: Yu Chen -- v1: Remove unused code and add comment for time delay as suggested by Kishon Vijay Abraham I. -- --- MAINTAINERS | 2 + drivers/phy/hisilicon/Kconfig | 10 ++ drivers/phy

[PATCH v1 04/12] usb: dwc3: dwc3-hisi: Add code for dwc3 of Hisilicon Soc Platform

2018-12-02 Thread Yu Chen
This driver handles the poweron and shutdown of dwc3 core on Hisilicon Soc Platform. Cc: Felipe Balbi Cc: Greg Kroah-Hartman Cc: "David S. Miller" Cc: Mauro Carvalho Chehab Cc: Andrew Morton Cc: Arnd Bergmann Cc: John Stultz Cc: Binghui Wang Signed-off-by: Yu Chen --- M

[PATCH v1 08/12] usb: roles: Add usb role switch notifier.

2018-12-02 Thread Yu Chen
This patch adds notifier for drivers want to be informed of the usb role switch. Cc: Greg Kroah-Hartman Cc: Heikki Krogerus Cc: Hans de Goede Cc: Andy Shevchenko Cc: John Stultz Signed-off-by: Heikki Krogerus Signed-off-by: Yu Chen -- v0: The patch is provided by Heikki Krogerus. I

[PATCH v1 10/12] hikey960: Support usb functionality of Hikey960

2018-12-02 Thread Yu Chen
Wang Cc: Heikki Krogerus Signed-off-by: Yu Chen -- v1: 1) Using gpiod API with the gpios. 2) Removing registering usb role switch. 3) Registering usb role switch notifier. -- --- drivers/misc/Kconfig | 7 ++ drivers/misc/Makefile | 1 + drivers/misc/hisi_hikey_usb.c |

[PATCH v1 11/12] usb: gadget: Add configfs attribuite for controling match_existing_only

2018-12-02 Thread Yu Chen
ange the config of "match_existing_only". This patch adds a configfs attribuite for controling match_existing_only which allow user to config "match_existing_only". Cc: Felipe Balbi Cc: Greg Kroah-Hartman Cc: John Stultz Cc: Binghui Wang Signed-off-by: Yu Chen ---

[PATCH v1 09/12] usb: dwc3: Registering a role switch in the DRD code.

2018-12-02 Thread Yu Chen
The Type-C drivers use USB role switch API to inform the system about the negotiated data role, so registering a role switch in the DRD code in order to support platforms with USB Type-C connectors. Cc: Felipe Balbi Cc: Greg Kroah-Hartman Signed-off-by: Yu Chen Signed-off-by: Heikki Krogerus

[PATCH v1 07/12] usb: roles: Find the usb role switch by also matching against the device node

2018-12-02 Thread Yu Chen
This patch adds code for supporting find usb role switch by matching against the device node described using of_graph. Cc: Greg Kroah-Hartman Cc: Heikki Krogerus Cc: Hans de Goede Cc: Andy Shevchenko Cc: John Stultz Signed-off-by: Yu Chen --- drivers/usb/common/roles.c | 40

[PATCH v1 12/12] dts: hi3660: Add support for usb on Hikey960

2018-12-02 Thread Yu Chen
This patch adds support for usb on Hikey960. Cc: Wei Xu Cc: Rob Herring Cc: Mark Rutland Cc: linux-arm-ker...@lists.infradead.org Cc: John Stultz Cc: Binghui Wang Signed-off-by: Yu Chen --- arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts | 56 ++ arch/arm64/boot/dts

[PATCH v1 05/12] usb: dwc3: Add two quirks for Hisilicon Kirin Soc Platform

2018-12-02 Thread Yu Chen
There are tow quirks for DesignWare USB3 DRD Core of Hisilicon Kirin Soc. 1)SPLIT_BOUNDARY_DISABLE should be set for Host mode 2)A GCTL soft reset should be executed when switch mode Cc: Felipe Balbi Cc: Greg Kroah-Hartman Cc: John Stultz Cc: Binghui Wang Signed-off-by: Yu Chen --- drivers

[PATCH v1 03/12] dt-bindings: misc: Add bindings for HiSilicon usb hub and data role switch functionality on HiKey960

2018-12-02 Thread Yu Chen
This patch adds binding documentation to support usb hub and usb data role switch of Hisilicon HiKey&HiKey960 Board. Cc: Sergei Shtylyov Cc: Rob Herring Cc: Mark Rutland Cc: John Stultz Cc: Binghui Wang Signed-off-by: Yu Chen -- v1: 1) Fix some format errors as suggested by Serge

[PATCH v1 00/12] Add support for usb on Hikey960

2018-12-02 Thread Yu Chen
The patchset adds support for usb functionality of Hikey960, includes: - dwc3 driver for Hisilicon Kirin Soc hi3660 - usb driver for HiKey960 board - some adjustment in dwc3, usb gadget and typec driver - dts for support usb of HiKey960 Yu Chen (12): dt-bindings: usb: add support for dwc3

[PATCH v1 01/12] dt-bindings: usb: add support for dwc3 controller on HiSilicon SoCs

2018-12-02 Thread Yu Chen
This patch adds binding descriptions to support the dwc3 controller on HiSilicon SoCs and boards like the HiKey960. Cc: Greg Kroah-Hartman Cc: Rob Herring Cc: Mark Rutland Cc: John Stultz Signed-off-by: Yu Chen --- .../devicetree/bindings/usb/dwc3-hisi.txt | 67

[PATCH v1 02/12] dt-bindings: phy: Add support for HiSilicon's hi3660 USB PHY

2018-12-02 Thread Yu Chen
This patch adds binding documentation for supporting the hi3660 usb phy on boards like the HiKey960. Cc: Rob Herring Cc: Mark Rutland Cc: John Stultz Cc: Binghui Wang Signed-off-by: Yu Chen -- v1: Fix some format error as suggested by Rob. -- --- .../devicetree/bindings/phy/phy-hi3660-usb3

[PATCH v2 00/10] Add support for usb on Hikey960

2019-02-18 Thread Yu Chen
/lkml/2019/1/25/344 of Heikki Krogerus --- Yu Chen (10): dt-bindings: phy: Add support for HiSilicon's hi3660 USB PHY dt-bindings: misc: Add bindings for HiSilicon usb hub and data role switch functionality on HiKey960 usb: dwc3: dwc3-of-simple: Add support for dwc3 of Hisilico

[PATCH v2 03/10] usb: dwc3: dwc3-of-simple: Add support for dwc3 of Hisilicon Soc Platform

2019-02-18 Thread Yu Chen
This patch adds support for the poweron and shutdown of dwc3 core on Hisilicon Soc Platform. --- drivers/usb/dwc3/dwc3-of-simple.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/usb/dwc3/dwc3-of-simple.c b/drivers/usb/dwc3/dwc3-of-simple.c index 4c2771c5e727..0ed09

[PATCH v2 07/10] usb: dwc3: Registering a role switch in the DRD code.

2019-02-18 Thread Yu Chen
: Heikki Krogerus Signed-off-by: Yu Chen --- v2: * Assign fwnode in dwc3_role_switch. --- --- drivers/usb/dwc3/core.h | 2 ++ drivers/usb/dwc3/drd.c | 45 + 2 files changed, 47 insertions(+) diff --git a/drivers/usb/dwc3/core.h b/drivers/usb/dwc3/core.h

[PATCH v2 05/10] phy: Add usb phy support for hi3660 Soc of Hisilicon

2019-02-18 Thread Yu Chen
uo Sun Cc: Masahiro Yamada Cc: Jiancheng Xue Cc: John Stultz Cc: Binghui Wang Signed-off-by: Yu Chen --- v1: * Remove unused code and add comment for time delay as suggested by Kishon Vijay Abraham I. v2: * Fix license declaration. * Remove redundant parens. * Remove unused member variables

[PATCH v2 10/10] dts: hi3660: Add support for usb on Hikey960

2019-02-18 Thread Yu Chen
This patch adds support for usb on Hikey960. Cc: Wei Xu Cc: Rob Herring Cc: Mark Rutland Cc: linux-arm-ker...@lists.infradead.org Cc: John Stultz Cc: Binghui Wang Signed-off-by: Yu Chen --- v2: * Remove device_type property. * Add property "usb-role-switch". --- --- arch/arm6

[PATCH v2 09/10] usb: gadget: Add configfs attribuite for controling match_existing_only

2019-02-18 Thread Yu Chen
ig "match_existing_only". Cc: Andy Shevchenko Cc: Felipe Balbi Cc: Greg Kroah-Hartman Cc: John Stultz Cc: Binghui Wang Signed-off-by: Yu Chen --- drivers/usb/gadget/configfs.c | 32 1 file changed, 32 insertions(+) diff --git a/drivers/usb/gadg

[PATCH v2 06/10] usb: roles: Add usb role switch notifier.

2019-02-18 Thread Yu Chen
This patch adds notifier for drivers want to be informed of the usb role switch. Cc: Greg Kroah-Hartman Cc: Heikki Krogerus Cc: Hans de Goede Cc: Andy Shevchenko Cc: John Stultz Suggested-by: Heikki Krogerus Signed-off-by: Yu Chen --- drivers/usb/roles/class.c | 20

[PATCH v2 04/10] usb: dwc3: Add two quirks for Hisilicon Kirin Soc Platform

2019-02-18 Thread Yu Chen
: Yu Chen --- v2: * Fix data type of reg from int to u32. --- --- drivers/usb/dwc3/core.c | 43 +++ drivers/usb/dwc3/core.h | 7 +++ drivers/usb/dwc3/gadget.c | 2 +- 3 files changed, 51 insertions(+), 1 deletion(-) diff --git a/drivers/usb/dwc3

[PATCH v2 01/10] dt-bindings: phy: Add support for HiSilicon's hi3660 USB PHY

2019-02-18 Thread Yu Chen
This patch adds binding documentation for supporting the hi3660 usb phy on boards like the HiKey960. Cc: Rob Herring Cc: Mark Rutland Cc: John Stultz Cc: Binghui Wang Signed-off-by: Yu Chen --- v1: * Fix some format error as suggested by Rob. v2: * Change hi3660 usb PHY to hi3660 USB PHY

[PATCH v2 08/10] hikey960: Support usb functionality of Hikey960

2019-02-18 Thread Yu Chen
John Stultz Cc: Binghui Wang Cc: Heikki Krogerus Signed-off-by: Yu Chen --- v1: * Using gpiod API with the gpios. * Removing registering usb role switch. * Registering usb role switch notifier. v2: * Fix license declaration. * Add configuration of gpio direction. * Remove some log p

[PATCH v2 02/10] dt-bindings: misc: Add bindings for HiSilicon usb hub and data role switch functionality on HiKey960

2019-02-18 Thread Yu Chen
This patch adds binding documentation to support usb hub and usb data role switch of Hisilicon HiKey960 Board. Cc: Sergei Shtylyov Cc: Rob Herring Cc: Mark Rutland Cc: John Stultz Cc: Binghui Wang Signed-off-by: Yu Chen --- v1: * Fix some format errors as suggested by Sergei. * Modify gpio

[PATCH v3 00/12] Add support for usb on Hikey960

2019-03-02 Thread Yu Chen
/25/344 of Heikki Krogerus Yu Chen (12): dt-bindings: phy: Add support for HiSilicon's hi3660 USB PHY dt-bindings: misc: Add bindings for HiSilicon usb hub and data role switch functionality on HiKey960 usb: dwc3: dwc3-of-simple: Add support for dwc3 of Hisilicon Soc Platform

[PATCH v3 12/12] dts: hi3660: Add support for usb on Hikey960

2019-03-02 Thread Yu Chen
This patch adds support for usb on Hikey960. Cc: Chunfeng Yun Cc: Wei Xu Cc: Rob Herring Cc: Mark Rutland Cc: linux-arm-ker...@lists.infradead.org Cc: John Stultz Cc: Binghui Wang Signed-off-by: Yu Chen --- v2: * Remove device_type property. * Add property "usb-role-switch".

[PATCH v3 10/12] hikey960: Support usb functionality of Hikey960

2019-03-02 Thread Yu Chen
roah-Hartman Cc: John Stultz Cc: Binghui Wang Cc: Heikki Krogerus Signed-off-by: Yu Chen --- v1: * Using gpiod API with the gpios. * Removing registering usb role switch. * Registering usb role switch notifier. v2: * Fix license declaration. * Add configuration of gpio direction. * Remove some log p

[PATCH v3 11/12] usb: gadget: Add configfs attribuite for controling match_existing_only

2019-03-02 Thread Yu Chen
ig "match_existing_only". Cc: Andy Shevchenko Cc: Felipe Balbi Cc: Greg Kroah-Hartman Cc: John Stultz Cc: Binghui Wang Signed-off-by: Yu Chen --- drivers/usb/gadget/configfs.c | 32 1 file changed, 32 insertions(+) diff --git a/drivers/usb/gadg

[PATCH v3 02/12] dt-bindings: misc: Add bindings for HiSilicon usb hub and data role switch functionality on HiKey960

2019-03-02 Thread Yu Chen
This patch adds binding documentation to support usb hub and usb data role switch of Hisilicon HiKey960 Board. Cc: Sergei Shtylyov Cc: Rob Herring Cc: Mark Rutland Cc: John Stultz Cc: Binghui Wang Signed-off-by: Yu Chen --- v1: * Fix some format errors as suggested by Sergei. * Modify gpio

[PATCH v3 08/12] usb: roles: Add usb role switch notifier.

2019-03-02 Thread Yu Chen
This patch adds notifier for drivers want to be informed of the usb role switch. Cc: Greg Kroah-Hartman Cc: Heikki Krogerus Cc: Hans de Goede Cc: Andy Shevchenko Cc: John Stultz Suggested-by: Heikki Krogerus Signed-off-by: Yu Chen --- drivers/usb/roles/class.c | 20

[PATCH v3 07/12] phy: Add usb phy support for hi3660 Soc of Hisilicon

2019-03-02 Thread Yu Chen
uo Sun Cc: Masahiro Yamada Cc: Jiancheng Xue Cc: John Stultz Cc: Binghui Wang Signed-off-by: Yu Chen --- v1: * Remove unused code and add comment for time delay as suggested by Kishon Vijay Abraham I. v2: * Fix license declaration. * Remove redundant parens. * Remove unused member variables

[PATCH v3 09/12] usb: dwc3: Registering a role switch in the DRD code.

2019-03-02 Thread Yu Chen
: Heikki Krogerus Suggested-by: Heikki Krogerus Signed-off-by: Yu Chen --- v2: * Assign fwnode in dwc3_role_switch. v3: * Add default mode property for usb role switch. * Add select USB_ROLE_SWITCH for USB_DWC3_DUAL_ROLE in Kconfig. * Do usb_role_switch_register only if property "usb-role-s

[PATCH v3 05/12] usb: dwc3: Execute GCTL Core Soft Reset while switch mdoe for Hisilicon Kirin Soc

2019-03-02 Thread Yu Chen
A GCTL soft reset should be executed when switch mode for dwc3 core of Hisilicon Kirin Soc. Cc: Andy Shevchenko Cc: Felipe Balbi Cc: Greg Kroah-Hartman Cc: John Stultz Cc: Binghui Wang Signed-off-by: Yu Chen --- drivers/usb/dwc3/core.c | 19 +++ drivers/usb/dwc3/core.h | 1

[PATCH v3 01/12] dt-bindings: phy: Add support for HiSilicon's hi3660 USB PHY

2019-03-02 Thread Yu Chen
This patch adds binding documentation for supporting the hi3660 usb phy on boards like the HiKey960. Cc: Rob Herring Cc: Mark Rutland Cc: John Stultz Cc: Binghui Wang Signed-off-by: Yu Chen --- v1: * Fix some format error as suggested by Rob. v2: * Change hi3660 usb PHY to hi3660 USB PHY v3

[PATCH v3 06/12] usb: dwc3: Increase timeout for CmdAct cleared by device controller

2019-03-02 Thread Yu Chen
It needs more time for the device controller to clear the CmdAct of DEPCMD on Hisilicon Kirin Soc. Cc: Andy Shevchenko Cc: Felipe Balbi Cc: Greg Kroah-Hartman Cc: John Stultz Cc: Binghui Wang Signed-off-by: Yu Chen --- drivers/usb/dwc3/gadget.c | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH v3 03/12] usb: dwc3: dwc3-of-simple: Add support for dwc3 of Hisilicon Soc Platform

2019-03-02 Thread Yu Chen
This patch adds support for the poweron and shutdown of dwc3 core on Hisilicon Soc Platform. --- drivers/usb/dwc3/dwc3-of-simple.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/usb/dwc3/dwc3-of-simple.c b/drivers/usb/dwc3/dwc3-of-simple.c index 4c2771c5e727..0ed09

[PATCH v3 04/12] usb: dwc3: Add splitdisable quirk for Hisilicon Kirin Soc

2019-03-02 Thread Yu Chen
SPLIT_BOUNDARY_DISABLE should be set for DesignWare USB3 DRD Core of Hisilicon Kirin Soc when dwc3 core act as host. Cc: Andy Shevchenko Cc: Felipe Balbi Cc: Greg Kroah-Hartman Cc: John Stultz Cc: Binghui Wang Signed-off-by: Yu Chen --- drivers/usb/dwc3/core.c | 24