From patchwork Tue Feb 25 17:52:58 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Stultz X-Patchwork-Id: 11404387 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 425BA930 for ; Tue, 25 Feb 2020 17:53:22 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 210A120838 for ; Tue, 25 Feb 2020 17:53:22 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="IS5nkK9Y" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730631AbgBYRxV (ORCPT ); Tue, 25 Feb 2020 12:53:21 -0500 Received: from mail-pj1-f68.google.com ([209.85.216.68]:40824 "EHLO mail-pj1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730566AbgBYRxV (ORCPT ); Tue, 25 Feb 2020 12:53:21 -0500 Received: by mail-pj1-f68.google.com with SMTP id 12so12158pjb.5 for ; Tue, 25 Feb 2020 09:53:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=3f9i7/6H9zuBMJqRcxgLGnwHoSaH99NYup2HlRp7R/M=; b=IS5nkK9Ym1FKFD8R94G0EDCeIhwwQqWITciFqHXpnJ0D+8i/mNhXApP0RW4omNzEUL KJxv+BeCzz9DPpheVQBnCQF8T6ecLMDK6AJpH6ipeKlYai+4uAdBoYJq4MunK9MRprSC hrS5lzCBtJ4UWdXFqbusRb2VGXEOyjMEtbZQ2oedc7Eb01oes5Y0WbkioRY9Xd8acLfh /BrNP0yzopYUDmJKQ5Sw/czm1oeQA5x8i7zV7f9bN5Ma2vxB3UmtDYOnEsKnvQiQLruU dlBor2kR9PdwdfftwaxZxiMdhJ11kfXKRIcmjuAhMXkqRKit143DYaTTaJ/FNwVbmYQW 2tcg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=3f9i7/6H9zuBMJqRcxgLGnwHoSaH99NYup2HlRp7R/M=; b=S26/AlESbQ47eCHWoa5S0/O2AAASg/Qd0HpHQByBLtjIwJ/GcyLrdTGNpf9m4eKGBE QwchxTba0ksxjCR0T+TISRTooRZNxLs5BNf94y0AvJNe8Ge4M9VafWjm1Q7OWxoACalY m2TLPKtGOFqKitZwN5M+Vhw2MFTg6d2a9LS4+fWIcIhRI9UOHGfmndvP136B9S+XNI0D aBaUOw/q6wuLeaD35BcbaJoeeFRTPErSXJSEcoYWm113k/EYIoK3s5A7kuHB/y5M37uF lZTsq3nD6DljKXeKHwjs1FiqBhn7XMilAXIHFdMvMKXN7QY4bQJclxVgE0fMdIo3LGzT A1xw== X-Gm-Message-State: APjAAAXiwNp8XB6UZGp1YjnvUsPy9ekV5dph5NP1LiFoD/gJLW/GHB+Y 4dTC3ano75GIbLTYm3Now37A5g== X-Google-Smtp-Source: APXvYqzs1jd4ZMn6EZj8s8LLMXaJxiIAeutiq4sl2FHDxjTkHQ/w21zJsm+acFAlG4hmT/6ttn9f1Q== X-Received: by 2002:a17:902:b417:: with SMTP id x23mr5566387plr.9.1582653200322; Tue, 25 Feb 2020 09:53:20 -0800 (PST) Received: from localhost.localdomain ([2601:1c2:680:1319:692:26ff:feda:3a81]) by smtp.gmail.com with ESMTPSA id v8sm18013291pgt.52.2020.02.25.09.53.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Feb 2020 09:53:19 -0800 (PST) From: John Stultz To: lkml Cc: John Stultz , Greg Kroah-Hartman , Rob Herring , Mark Rutland , ShuFan Lee , Heikki Krogerus , Suzuki K Poulose , Chunfeng Yun , Yu Chen , Felipe Balbi , Hans de Goede , Andy Shevchenko , Jun Li , Valentin Schneider , Guillaume Gardet , Jack Pham , linux-usb@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH v8 0/6] dwc3 dependencies for HiKey960 USB Date: Tue, 25 Feb 2020 17:52:58 +0000 Message-Id: <20200225175304.36406-1-john.stultz@linaro.org> X-Mailer: git-send-email 2.17.1 Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org Just wanted to send these out again to try to make some progress on these patches originally by Yu Chen to get HiKey960 dev-board's USB functionality working. For now I've dropped the hub switching functionality from the series, as I've not yet been able to come up with a solution to Rob's objections. So this set focuses just on the dwc3 changes needed. The full patchset (including hub switching and dts changes not submitted here) can be found here: https://git.linaro.org/people/john.stultz/android-dev.git/log/?id=410aa219e0c201e8ba0e03a79b5d3f4f5c47126b I'd greatly appreciate any feedback or thoughts! thanks -john New in v8: * Rob objected to the custom hub switching logic in the previous series, so I've dropped it for now. Cc: Greg Kroah-Hartman Cc: Rob Herring Cc: Mark Rutland CC: ShuFan Lee Cc: Heikki Krogerus Cc: Suzuki K Poulose Cc: Chunfeng Yun Cc: Yu Chen Cc: Felipe Balbi Cc: Hans de Goede Cc: Andy Shevchenko Cc: Jun Li Cc: Valentin Schneider Cc: Guillaume Gardet Cc: Jack Pham Cc: linux-usb@vger.kernel.org Cc: devicetree@vger.kernel.org John Stultz (5): dt-bindings: usb: generic: Add role-switch-default-mode binding usb: dwc3: Add support for role-switch-default-mode binding dt-bindings: usb: dwc3: Allow clock list & resets to be more flexible usb: dwc3: Rework clock initialization to be more flexible usb: dwc3: Rework resets initialization to be more flexible Yu Chen (1): usb: dwc3: Registering a role switch in the DRD code. .../devicetree/bindings/usb/dwc3.txt | 5 +- .../devicetree/bindings/usb/generic.txt | 6 ++ drivers/usb/dwc3/core.c | 22 ++--- drivers/usb/dwc3/core.h | 6 ++ drivers/usb/dwc3/drd.c | 96 ++++++++++++++++++- 5 files changed, 116 insertions(+), 19 deletions(-)