From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753807AbbJHAtR (ORCPT ); Wed, 7 Oct 2015 20:49:17 -0400 Received: from mail-pa0-f52.google.com ([209.85.220.52]:36556 "EHLO mail-pa0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751913AbbJHAtP (ORCPT ); Wed, 7 Oct 2015 20:49:15 -0400 From: Douglas Anderson To: John Youn Cc: Yunzhi Li , =?UTF-8?q?Heiko=20St=C3=BCbner?= , linux-rockchip@lists.infradead.org, Julius Werner , Douglas Anderson , johnyoun@synopsys.com, gregkh@linuxfoundation.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/5] usb: dwc2: fix dwc2_get_hwparams() + optimize probe time a bit Date: Wed, 7 Oct 2015 17:48:36 -0700 Message-Id: <1444265321-16768-1-git-send-email-dianders@chromium.org> X-Mailer: git-send-email 2.6.0.rc2.230.g3dd15c0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is a collection of patches, some by Yunzhi Li at Rockchip and some by me, that fix dwc2_get_hwparams() on some boards (depending on how the bootloader left things) and then attempt to optimize DWC2's probe time (since fixing dwc2_get_hwparams() made probe even slower than it was). Note that even after these changes probe time is still not super fast (we still call dwc2_core_reset() twice per probe and each call still takes a minimum of 160ms right now), but this at least picks the low hanging fruit. Note that this picks patch "v2" of "usb: dwc2: reset dwc2 core before dwc2_get_hwparams()" from Yunzhi Li rather than v3 because I think it's a better way to go. These patches are all rebased atop linuxnext. Since linuxnext wasn't booting on my board, they were tested against Heiko Stuebner's "somewhat stable" github tree (based on v4.3-rc1) with a few linuxnext dwc2 patches pulled in to avoid conflicts. These patches have either landed or are planned to land on the chromeos-3.14 branch for use in several Chromebooks that use rk3288. Douglas Anderson (3): usb: dwc2: Restore GUSBCFG in dwc2_get_hwparams() CHROMIUM: usb: dwc2: Avoid double-reset at boot time usb: dwc2: Speed dwc2_get_hwparams() on some host-only ports Yunzhi Li (2): usb: dwc2: reset dwc2 core before dwc2_get_hwparams() usb: dwc2: reduce dwc2 driver probe time drivers/usb/dwc2/core.c | 57 ++++++++++++++++++++++++++------------------- drivers/usb/dwc2/core.h | 3 ++- drivers/usb/dwc2/hcd.c | 6 ++--- drivers/usb/dwc2/platform.c | 6 +++++ 4 files changed, 44 insertions(+), 28 deletions(-) -- 2.6.0.rc2.230.g3dd15c0