Re: dwc2 gadget issues

2017-03-01 Thread Randy Li
19.848590] dwc2 ff58.usb: bound driver g_audio [ 19.853816] dwc2 ff58.usb: dwc2_hsotg_enqueue_setup: failed queue (-11) Heiko ___ Linux-rockchip mailing list linux-rockc...@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-rockchi

[PATCH v10 1/2] usb: dwc2: assert phy reset when waking up in rk3288 platform

2016-12-11 Thread Randy Li
e bus get wedged. Signed-off-by: Randy Li Acked-by: John Youn --- drivers/usb/dwc2/core.h | 1 + drivers/usb/dwc2/core_intr.c | 11 +++ drivers/usb/dwc2/platform.c | 9 + 3 files changed, 21 insertions(+) diff --git a/drivers/usb/dwc2/core.h b/drivers/usb/dwc2/core.h inde

[PATCH v10 2/2] ARM: dts: rockchip: Point rk3288 dwc2 usb at the full PHY reset

2016-12-11 Thread Randy Li
reset to both dwc2 controllers even though only one has the errata in case we find some other use for this reset that's unrelated to the current hardware errata. Only the host port gets the quirk property, though. Signed-off-by: Randy Li --- arch/arm/boot/dts/rk3288.dtsi | 4 1 file cha

[PATCH v10 0/2] the fixup for the USB HOST1 at rk3288 platform

2016-12-11 Thread Randy Li
, add the missing doc in the last commit. v4 1. Adding the reset callback in struct phy_ops. 2. Moving the reset into phy rockchip usb. 3. Trying to call a reset when dwc2 wakeup in rk3288. v3 Rebased from previous commit v2 Rebased from previous commit v1 orignal from google Randy Li (2

[PATCH] phy: Add reset callback for not generic phy

2016-10-25 Thread Randy Li
I forget to add a dummy function in case the CONFIG_GENERIC_PHY is disabled. Signed-off-by: Randy Li --- include/linux/phy/phy.h | 7 +++ 1 file changed, 7 insertions(+) diff --git a/include/linux/phy/phy.h b/include/linux/phy/phy.h index ee1bed7..78bb0d7 100644 --- a/include/linux/phy

[PATCH v9 2/2] ARM: dts: rockchip: Point rk3288 dwc2 usb at the full PHY reset

2016-10-20 Thread Randy Li
reset to both dwc2 controllers even though only one has the errata in case we find some other use for this reset that's unrelated to the current hardware errata. Only the host port gets the quirk property, though. Signed-off-by: Randy Li --- arch/arm/boot/dts/rk3288.dtsi | 4 1 file cha

[PATCH v9 0/2] the fixup for the USB HOST1 at rk3288 platform

2016-10-20 Thread Randy Li
in the last commit. v4 1. Adding the reset callback in struct phy_ops. 2. Moving the reset into phy rockchip usb. 3. Trying to call a reset when dwc2 wakeup in rk3288. v3 Rebased from previous commit v2 Rebased from previous commit v1 orignal from google Randy Li (2): usb: dwc2

[PATCH v9 1/2] usb: dwc2: assert phy reset when waking up in rk3288 platform

2016-10-20 Thread Randy Li
e bus get wedged. Signed-off-by: Randy Li --- drivers/usb/dwc2/core.h | 1 + drivers/usb/dwc2/core_intr.c | 11 +++ drivers/usb/dwc2/platform.c | 9 + 3 files changed, 21 insertions(+) diff --git a/drivers/usb/dwc2/core.h b/drivers/usb/dwc2/core.h index 2a21a04..e91ddbc

Re: [PATCH v8 2/3] usb: dwc2: assert phy reset when waking up in rk3288 platform

2016-10-19 Thread Randy Li
On 10/20/2016 06:58 AM, John Youn wrote: On 10/15/2016 8:07 AM, 陈豪 wrote: 2016-09-25 2:50 GMT+08:00 Randy Li : On the rk3288 USB host-only port (the one that's not the OTG-enabled port) the PHY can get into a bad state when a wakeup is asserted (not just a wakeup from full system suspen

[PATCH v8 1/3] phy: Add reset callback for not generic phy

2016-09-24 Thread Randy Li
I forget to add a dummy function in case the CONFIG_GENERIC_PHY is disabled. Signed-off-by: Randy Li --- include/linux/phy/phy.h | 7 +++ 1 file changed, 7 insertions(+) diff --git a/include/linux/phy/phy.h b/include/linux/phy/phy.h index ee1bed7..78bb0d7 100644 --- a/include/linux/phy

[PATCH v8 2/3] usb: dwc2: assert phy reset when waking up in rk3288 platform

2016-09-24 Thread Randy Li
e bus get wedged. Signed-off-by: Randy Li --- drivers/usb/dwc2/core_intr.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/usb/dwc2/core_intr.c b/drivers/usb/dwc2/core_intr.c index d85c5c9..af27edc 100644 --- a/drivers/usb/dwc2/core_intr.c +++ b/drivers/usb/dwc2/cor

[PATCH v8 0/3] the fixup for the USB HOST1 at rk3288 platform

2016-09-24 Thread Randy Li
based from previous commit v2 Rebased from previous commit v1 orignal from google Randy Li (3): phy: Add reset callback for not generic phy usb: dwc2: assert phy reset when waking up in rk3288 platform ARM: dts: rockchip: Point rk3288 dwc2 usb at the full PHY reset arch/arm/boot/dts/r

[PATCH v8 3/3] ARM: dts: rockchip: Point rk3288 dwc2 usb at the full PHY reset

2016-09-24 Thread Randy Li
reset to both dwc2 controllers even though only one has the errata in case we find some other use for this reset that's unrelated to the current hardware errata. Only the host port gets the quirk property, though. Signed-off-by: Randy Li --- arch/arm/boot/dts/rk3288.dtsi | 4 1 file cha

[RESEND PATCH v7 4/4] ARM: dts: rockchip: Point rk3288 dwc2 usb at the full PHY reset

2016-09-09 Thread Randy Li
reset to both dwc2 controllers even though only one has the errata in case we find some other use for this reset that's unrelated to the current hardware errata. Only the host port gets the quirk property, though. Signed-off-by: Randy Li --- arch/arm/boot/dts/rk3288.dtsi | 4 1 file cha

[RESEND PATCH v7 2/4] phy: rockchip-usb: use rockchip_usb_phy_reset to reset phy during wakeup

2016-09-09 Thread Randy Li
It is a hardware bug in RK3288, the only way to solve it is to reset the phy. Signed-off-by: Randy Li --- .../devicetree/bindings/phy/rockchip-usb-phy.txt | 3 +++ drivers/phy/phy-rockchip-usb.c | 20 2 files changed, 23 insertions(+) diff --git

[RESEND PATCH v7 1/4] phy: Add reset callback

2016-09-09 Thread Randy Li
The only use for this is for solving a hardware design problem in usb of Rockchip RK3288. Signed-off-by: Randy Li --- drivers/phy/phy-core.c | 14 ++ include/linux/phy/phy.h | 3 +++ 2 files changed, 17 insertions(+) diff --git a/drivers/phy/phy-core.c b/drivers/phy/phy-core.c

[RESEND PATCH v7 3/4] usb: dwc2: assert phy reset when waking up in rk3288 platform

2016-09-09 Thread Randy Li
e bus get wedged. Signed-off-by: Randy Li --- drivers/usb/dwc2/core_intr.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/usb/dwc2/core_intr.c b/drivers/usb/dwc2/core_intr.c index d85c5c9..af27edc 100644 --- a/drivers/usb/dwc2/core_intr.c +++ b/drivers/usb/dwc2/cor

[RESEND PATCH v7 0/4] the fix for the USB HOST1 at rk3288 platform

2016-09-09 Thread Randy Li
lite board - suuport the audio codec at elite board - fixing minor bugs in the last commit - v2: - removing rtc node the clock source driver is not done yet. - adding exynos-bus - fixing the MFC Randy Li (4): phy: Add reset callback phy: rockchip-usb: use rockchip_usb_phy_reset to

[PATCH 2/4] phy: rockchip-usb: use rockchip_usb_phy_reset to reset phy during wakeup

2016-09-08 Thread Randy Li
It is a hardware bug in RK3288, the only way to solve it is to reset the phy. Signed-off-by: Randy Li --- .../devicetree/bindings/phy/rockchip-usb-phy.txt | 3 +++ drivers/phy/phy-rockchip-usb.c | 20 2 files changed, 23 insertions(+) diff --git

[PATCH 3/4] usb: dwc2: assert phy reset when waking up in rk3288 platform

2016-09-08 Thread Randy Li
e bus get wedged. Signed-off-by: Randy Li --- drivers/usb/dwc2/core_intr.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/usb/dwc2/core_intr.c b/drivers/usb/dwc2/core_intr.c index d85c5c9..5b9b671 100644 --- a/drivers/usb/dwc2/core_intr.c +++ b/drivers/usb/dwc2/cor

[PATCH 0/4] the fix for the USB HOST1 at rk3288 platform

2016-09-08 Thread Randy Li
lite board - suuport the audio codec at elite board - fixing minor bugs in the last commit - v2: - removing rtc node the clock source driver is not done yet. - adding exynos-bus - fixing the MFC Randy Li (4): phy: Add reset callback phy: rockchip-usb: use rockchip_usb_phy_reset to

[PATCH 4/4] ARM: dts: rockchip: Point rk3288 dwc2 usb at the full PHY reset

2016-09-08 Thread Randy Li
reset to both dwc2 controllers even though only one has the errata in case we find some other use for this reset that's unrelated to the current hardware errata. Only the host port gets the quirk property, though. Signed-off-by: Randy Li --- arch/arm/boot/dts/rk3288.dtsi | 4 1 file cha

[PATCH 1/4] phy: Add reset callback

2016-09-08 Thread Randy Li
The only use for this is for solving a hardware design problem in usb of Rockchip RK3288. Signed-off-by: Randy Li --- drivers/phy/phy-core.c | 14 ++ include/linux/phy/phy.h | 3 +++ 2 files changed, 17 insertions(+) diff --git a/drivers/phy/phy-core.c b/drivers/phy/phy-core.c

[PATCH v7 4/4] ARM: dts: rockchip: Point rk3288 dwc2 usb at the full PHY reset

2016-09-03 Thread Randy Li
reset to both dwc2 controllers even though only one has the errata in case we find some other use for this reset that's unrelated to the current hardware errata. Only the host port gets the quirk property, though. Signed-off-by: Randy Li --- arch/arm/boot/dts/rk3288.dtsi | 4 1 file cha

[PATCH v7 1/4] phy: Add reset callback

2016-09-03 Thread Randy Li
The only use for this is for solving a hardware design problem in usb of Rockchip RK3288. Signed-off-by: Randy Li --- include/linux/phy/phy.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/phy/phy.h b/include/linux/phy/phy.h index f08b672..4d34607 100644 --- a/include/linux

[PATCH v7 2/4] phy: rockchip-usb: use rockchip_usb_phy_reset to reset phy during wakeup

2016-09-03 Thread Randy Li
It is a hardware bug in RK3288, the only way to solve it is to reset the phy. Signed-off-by: Randy Li --- .../devicetree/bindings/phy/rockchip-usb-phy.txt | 3 +++ drivers/phy/phy-rockchip-usb.c | 20 2 files changed, 23 insertions(+) diff --git

[PATCH v7 0/4] the fix for the USB HOST1 at rk3288 platform

2016-09-03 Thread Randy Li
Rebased from previous commit. Randy Li (4): phy: Add reset callback phy: rockchip-usb: use rockchip_usb_phy_reset to reset phy during wakeup usb: dwc2: assert phy reset when waking up in rk3288 platform ARM: dts: rockchip: Point rk3288 dwc2 usb at the full PHY reset .../devicetree

[PATCH v7 3/4] usb: dwc2: assert phy reset when waking up in rk3288 platform

2016-09-03 Thread Randy Li
e bus get wedged. Signed-off-by: Randy Li --- drivers/usb/dwc2/core_intr.c | 12 1 file changed, 12 insertions(+) diff --git a/drivers/usb/dwc2/core_intr.c b/drivers/usb/dwc2/core_intr.c index d85c5c9..08485b7 100644 --- a/drivers/usb/dwc2/core_intr.c +++ b/drivers/usb/dwc2/cor

Re: [RESEND PATCH 3/4] usb: dwc2: assert phy reset when waking up in rk3288 platform

2016-08-24 Thread Randy Li
On 08/24/2016 04:46 AM, John Youn wrote: On 8/21/2016 12:32 PM, Randy Li wrote: On the rk3288 USB host-only port (the one that's not the OTG-enabled port) the PHY can get into a bad state when a wakeup is asserted (not just a wakeup from full system suspend but also a wakeup from autosu

[RESEND PATCH 4/4] ARM: dts: rockchip: Point rk3288 dwc2 usb at the full PHY reset

2016-08-21 Thread Randy Li
reset to both dwc2 controllers even though only one has the errata in case we find some other use for this reset that's unrelated to the current hardware errata. Only the host port gets the quirk property, though. Signed-off-by: Randy Li --- arch/arm/boot/dts/rk3288.dtsi | 4 1 file cha

[RESEND PATCH 3/4] usb: dwc2: assert phy reset when waking up in rk3288 platform

2016-08-21 Thread Randy Li
e bus get wedged. Signed-off-by: Randy Li --- drivers/usb/dwc2/core_intr.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/usb/dwc2/core_intr.c b/drivers/usb/dwc2/core_intr.c index d85c5c9..f57c48a 100644 --- a/drivers/usb/dwc2/core_intr.c +++ b/drivers/usb/dwc2/cor

[PATCH 0/4 v5] usb: dwc2: fix the usb host for host port at RK32

2016-08-21 Thread Randy Li
1. Adding the reset callback in struct phy_ops. 2. Moving the reset into phy rockchip usb. 3. Trying to call a reset when dwc2 wakeup in rk3288. v3 Rebased from previous commit. Randy Li (4): phy: Add reset callback phy: rockchip-usb: use rockchip_usb_phy_reset to reset phy during

[PATCH 1/4] phy: Add reset callback

2016-08-21 Thread Randy Li
The only use for this is for solving a hardware design problem in usb of Rockchip RK3288. Signed-off-by: Randy Li --- include/linux/phy/phy.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/phy/phy.h b/include/linux/phy/phy.h index f08b672..4d34607 100644 --- a/include/linux

[PATCH 4/4] ARM: dts: rockchip: Point rk3288 dwc2 usb at the full PHY reset

2016-08-21 Thread Randy Li
reset to both dwc2 controllers even though only one has the errata in case we find some other use for this reset that's unrelated to the current hardware errata. Only the host port gets the quirk property, though. This patch came from Doug Anderson originally. Signed-off-by: Randy Li ---

[PATCH 3/4] usb: dwc2: assert phy reset when waking up in rk3288 platform

2016-08-21 Thread Randy Li
the bus get wedged. The original patches came from Doug Anderson . Signed-off-by: Randy Li --- drivers/usb/dwc2/core_intr.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/usb/dwc2/core_intr.c b/drivers/usb/dwc2/core_intr.c index d85c5c9..f57c48a 100644 --- a/drivers/u

[PATCH 2/4] phy: rockchip-usb: use rockchip_usb_phy_reset to reset phy during wakeup

2016-08-21 Thread Randy Li
It is a hardware bug in RK3288, the only way to solve it is to reset the phy. Signed-off-by: Randy Li --- .../devicetree/bindings/phy/rockchip-usb-phy.txt | 3 +++ drivers/phy/phy-rockchip-usb.c | 20 2 files changed, 23 insertions(+) diff --git

[PATCH 2/4] phy: rockchip-usb: use rockchip_usb_phy_reset to reset phy during wakeup

2016-08-20 Thread Randy Li
It is a hardware bug in RK3288, the only way to solve it is to reset the phy. Signed-off-by: Randy Li --- drivers/phy/phy-rockchip-usb.c | 20 1 file changed, 20 insertions(+) diff --git a/drivers/phy/phy-rockchip-usb.c b/drivers/phy/phy-rockchip-usb.c index 2a7381f

[PATCH 4/4] ARM: dts: rockchip: Point rk3288 dwc2 usb at the full PHY reset

2016-08-20 Thread Randy Li
reset to both dwc2 controllers even though only one has the errata in case we find some other use for this reset that's unrelated to the current hardware errata. Only the host port gets the quirk property, though. This patch came from Doug Anderson originally. Signed-off-by: Randy Li ---

[PATCH 1/4] phy: Add reset callback

2016-08-20 Thread Randy Li
The only use for this is for solving a hardware design problem in usb of Rockchip RK3288. Signed-off-by: Randy Li --- include/linux/phy/phy.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/phy/phy.h b/include/linux/phy/phy.h index f08b672..4d34607 100644 --- a/include/linux

[PATCH 3/4] usb: dwc2: assert phy reset when waking up in rk3288 platform

2016-08-20 Thread Randy Li
the bus get wedged. The original patches came from Doug Anderson . Signed-off-by: Randy Li --- drivers/usb/dwc2/core_intr.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/usb/dwc2/core_intr.c b/drivers/usb/dwc2/core_intr.c index d85c5c9..c31c3fe 100644 --- a/drivers/usb/dwc2/

[PATCH 0/4 v4] usb: dwc2: fix the usb host for host port at RK32

2016-08-20 Thread Randy Li
Hello All: This version would move reset into phy. I wanted to implement a hard code version but I meet some problem with ioremap reset controller, in order to keep my word, I offer this version this time. Randy Li (4): phy: Add reset callback phy: rockchip-usb: use rockchip_usb_phy_reset to

Re: [PATCH 1/2] usb: dwc2: optionally assert phy "full reset" when waking up

2016-08-15 Thread Randy Li
On 08/16/2016 06:19 AM, John Youn wrote: On 7/19/2016 5:06 AM, Randy Li wrote: From: Doug Anderson On the rk3288 USB host-only port (the one that's not the OTG-enabled port) the PHY can get into a bad state when a wakeup is asserted (not just a wakeup from full system suspend but a

Re: [PATCH 1/2] usb: dwc2: optionally assert phy "full reset" when waking up

2016-07-19 Thread Randy Li
Thank you for reviewing, if you agree with my opinion, I would implement a new version as soon as possible. On 07/20/2016 09:36 AM, Rob Herring wrote: On Tue, Jul 19, 2016 at 08:05:33PM +0800, Randy Li wrote: From: Doug Anderson On the rk3288 USB host-only port (the one that's not th

[PATCH 1/2] usb: dwc2: optionally assert phy "full reset" when waking up

2016-07-19 Thread Randy Li
x27;s unfortunate that we need to do a full re-enumeration of devices at wakeup time, but this is better than alternative of letting the bus get wedged. Signed-off-by: Douglas Anderson Signed-off-by: Yunzhi Li Reviewed-by: Randy Li --- Documentation/devicetree/bindings/usb/dwc2.txt | 7 +++

[PATCH 2/2] ARM: dts: rockchip: Point rk3288 dwc2 usb at the full PHY reset

2016-07-19 Thread Randy Li
From: Doug Anderson The "host1" port (AKA the dwc2 port that isn't the OTG port) on rk3288 has a hardware errata that causes everything to get confused when we get a remote wakeup. We'll use the reset that's in the CRU to reset the port when it's in a bad state. Note that we add the reset to bo

[PATCH v3 0/2] usb: dwc2: fix the usb host for host port at RK3288

2016-07-19 Thread Randy Li
Hi, the implementation of Doug is thought quick but the Herring want to use this problem in autosuspend. Unfortunately, It is a fault in hardware, onyl would happened at Rockchip RK3288 now. So I suggest to accept this idea. It may be better if dropped the dts, as it is an issue only for RK3288,

Re: need some info about WCH ch341

2013-01-17 Thread Randy Li
于 2013年01月18日 08:21, Greg KH 写道: On Fri, Jan 18, 2013 at 08:12:33AM +0800, Randy Li wrote: I am going to write the driver for ch341a SPI function. When I readed the driver/usb/serial/ch341.c , I think that ch341 use vender usb request and request type( non-standard usb request and request type

need some info about WCH ch341

2013-01-17 Thread Randy Li
I am going to write the driver for ch341a SPI function. When I readed the driver/usb/serial/ch341.c , I think that ch341 use vender usb request and request type( non-standard usb request and request type) or I may be wrong. But how does the writer of ch341.c knew those infomation, I don't find