All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v5 0/3] usb: dwc2: Fix core reset and force mode delays
@ 2016-09-08  2:39 ` John Youn
  0 siblings, 0 replies; 19+ messages in thread
From: John Youn @ 2016-09-08  2:39 UTC (permalink / raw)
  To: John Youn, Felipe Balbi, Greg Kroah-Hartman, linux-usb, linux-kernel
  Cc: linux-rpi-kernel, linux-arm-kernel, Remi Pommarel, Caesar Wang,
	Kever Yang, Tao Huang, Michael Niewoehner, Stefan Wahren,
	Stephen Warren, Heiko Stuebner, Julius Werner, Doug Anderson

This series accounts for the delay from the IDDIG debounce filter when
switching modes. This delay is a function of the PHY clock speed and
can range from 5-50 ms. This delay must be taken into account on core
reset and force modes. A full explanation is provided in the patch
commit log and code comments.

This revision of the series increases the IDDIG delay to 100 ms. Some
rockchip platforms seem to timeout even with 50 ms so I have doubled
this.

Appreciate any testing on RK3188 platforms.

v5:
* Added Stefan Wahren's tested-by
* Dropped RFT

v4:
* Increased the IDDIG delay to 110ms.
* Removed tested-by for patch 2 since I have changed the delays.

v3:
* Added tested-bys for patch 1-2
* Fixed an issue where a function was not returning a value
* Dropped patch 4

v2:
* Broke up the last patch of the original series

Regards,
John

John Youn (3):
  usb: dwc2: gadget: Only initialize device if in device mode
  usb: dwc2: Add delay to core soft reset
  usb: dwc2: Properly account for the force mode delays

 drivers/usb/dwc2/core.c   | 126 +++++++++++++++++++++++++++++++++++++++-------
 drivers/usb/dwc2/core.h   |   1 +
 drivers/usb/dwc2/gadget.c |   7 ++-
 drivers/usb/dwc2/hw.h     |   1 +
 4 files changed, 116 insertions(+), 19 deletions(-)

-- 
2.9.0

^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2016-09-16  2:16 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-08  2:39 [PATCH v5 0/3] usb: dwc2: Fix core reset and force mode delays John Youn
2016-09-08  2:39 ` John Youn
2016-09-08  2:39 ` [PATCH v5 1/3] usb: dwc2: gadget: Only initialize device if in device mode John Youn
2016-09-08  2:39   ` John Youn
2016-09-08  2:39 ` [PATCH v5 2/3] usb: dwc2: Add delay to core soft reset John Youn
2016-09-08  2:39   ` John Youn
2016-09-08  2:39 ` [PATCH v5 3/3] usb: dwc2: Properly account for the force mode delays John Youn
2016-09-08  2:39   ` John Youn
     [not found]   ` <b4aac4b197241b8199c5300656d245692eb45856.1473302184.git.johnyoun-HKixBCOQz3hWk0Htik3J/w@public.gmane.org>
2016-09-11 21:19     ` Heiko Stuebner
2016-09-12  5:20       ` Stefan Wahren
     [not found]         ` <1336050364.27663.591ba3c4-a2b5-418f-9999-6b3cd631f440.open-xchange-7tX72C7vayboQLBSYMtkGA@public.gmane.org>
2016-09-12 11:05           ` Heiko Stuebner
2016-09-13 18:07             ` Stefan Wahren
     [not found]               ` <19473401.122600.97acfbc9-df96-4427-b533-911010ce5c3f.open-xchange-7tX72C7vayboQLBSYMtkGA@public.gmane.org>
2016-09-13 18:39                 ` Heiko Stübner
2016-09-13 19:04                   ` John Youn
     [not found]                     ` <97a3539d-7176-086f-71f9-371d8d4b016c-HKixBCOQz3hWk0Htik3J/w@public.gmane.org>
2016-09-14 14:05                       ` Heiko Stübner
2016-09-14 21:10                         ` John Youn
     [not found]                           ` <6b0c9143-63b3-c5c3-7122-bbbb0c9f610b-HKixBCOQz3hWk0Htik3J/w@public.gmane.org>
2016-09-15  7:08                             ` Stefan Wahren
     [not found]                               ` <ad02126f-6c0e-9216-f7ab-ec528eeda2e2-eS4NqCHxEME@public.gmane.org>
2016-09-15 19:39                                 ` John Youn
2016-09-16  2:16                         ` John Youn

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.