From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754184AbcIHCjs (ORCPT ); Wed, 7 Sep 2016 22:39:48 -0400 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:51864 "EHLO out4-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751252AbcIHCji (ORCPT ); Wed, 7 Sep 2016 22:39:38 -0400 X-Sasl-enc: P+fYWUDqTKCxvVW6TeUXBe6P7or3WwPS0fElzq/P4ro9 1473302375 Date: Wed, 07 Sep 2016 19:39:33 -0700 Message-Id: From: John Youn To: John Youn To: Felipe Balbi To: Greg Kroah-Hartman To: linux-usb@vger.kernel.org To: linux-kernel@vger.kernel.org Cc: linux-rpi-kernel@lists.infradead.org Cc: linux-arm-kernel@lists.infradead.org Cc: Remi Pommarel Cc: Caesar Wang Cc: Kever Yang Cc: Tao Huang Cc: Michael Niewoehner Cc: Stefan Wahren Cc: Stephen Warren Cc: Heiko Stuebner Cc: Julius Werner Cc: Doug Anderson Subject: [PATCH v5 0/3] usb: dwc2: Fix core reset and force mode delays Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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