From patchwork Fri Nov 8 01:17:20 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Stultz X-Patchwork-Id: 11233969 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 4C46814E5 for ; Fri, 8 Nov 2019 01:17:44 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 2A01821D7F for ; Fri, 8 Nov 2019 01:17:44 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="jKxk19Vd" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728417AbfKHBR2 (ORCPT ); Thu, 7 Nov 2019 20:17:28 -0500 Received: from mail-pl1-f193.google.com ([209.85.214.193]:41481 "EHLO mail-pl1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728256AbfKHBR1 (ORCPT ); Thu, 7 Nov 2019 20:17:27 -0500 Received: by mail-pl1-f193.google.com with SMTP id d29so2858756plj.8 for ; Thu, 07 Nov 2019 17:17:27 -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=kZcD6GKA7XbCzd3zg1eCgX8HZHAD6+MLe8xQYM7PmDE=; b=jKxk19VdnovnbeBuwPQoZftMD3I3oHzDoPitrIzZx8fcjOoT8jMhScOyC5c0iVp7cT WD+e9SPcrFuUxCDI1jIGQGJbkOLpxhvr2J+MI4rW/Qyx9JWb3tfJW9iifr/XHEqwUIlG P5FpxncR5UUH9ZbW274W8pwlZ45Y46ua8nM7jrHal0jfGsmTsU8mYnpFzTtyrzlVSKgb GrEci+r/HGDFmdHP0zvlNfHFCMRYxShpCqTg03pQoWRiOqDNYzlDLpgUHZkXnm5651Zu Qcp4kM1EWv2uZm2I13rKP0dfth8Rx4/TiIYyZXieqU6Ow3N1Uo2OqKQz2TokvTR2hMfN ixgw== 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=kZcD6GKA7XbCzd3zg1eCgX8HZHAD6+MLe8xQYM7PmDE=; b=bsBpOZ2Gb4IJX4hZ7ihHllaqaVobWPlJ4s4NRDLF0K0+I/g+hf4iRy9aDjACi6zKRM Ls/FoZxpgHBSIESsnnDJ8usoz946BvRHDMIj9TbZKryKaX5Q89d3+vR/wA2/JcbWODIW FZ5AsVGufTVr8ywlANjaHXF8o25gq0der+eLPvh2K/68zhlw40UGdzMJgXNZU/oIp1iT omB0lu34kIoU56evsyIHrGTF5gkyQ9XqYNsGmGjMiqZXlUV1NGBSmTKHyeVpHTjZihj7 btHBH6IbXCTvH+6pFhQuik5nTfNVPKODsKx4BLOzXF5eqPyyVfcq53CqNj3f4ZOZ26kK DaSg== X-Gm-Message-State: APjAAAVsT7zd4A82OpR//qVKMEQPveAzdat/6emOErX7yNEvttT6mXHZ 0+Vs0nZXod9vJrtAqc2EzcMw4g== X-Google-Smtp-Source: APXvYqyB6Q21widSmq8YSXUuNBlkXc+2TtWS9jvD0cuWjYjPPfDOAWNebW12rxcoc0nCFsHsptmgXA== X-Received: by 2002:a17:90a:268c:: with SMTP id m12mr9306601pje.69.1573175847075; Thu, 07 Nov 2019 17:17:27 -0800 (PST) Received: from localhost.localdomain (c-67-170-172-113.hsd1.or.comcast.net. [67.170.172.113]) by smtp.gmail.com with ESMTPSA id s23sm3801627pgh.21.2019.11.07.17.17.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Nov 2019 17:17:26 -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 , Jack Pham , linux-usb@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH v5 0/3] dwc3 prereqs for HiKey960 USB support Date: Fri, 8 Nov 2019 01:17:20 +0000 Message-Id: <20191108011723.32390-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 another round here trying to push forward a patch series submitted previously by Yu Chen to get HiKey960 dev-board's USB functionality working. This set is even more narrowly focused on just the role-switch support and adding the role-switch-default-mode option (as the core extension/glue bindings bits are still in discussion). While Felipe had quite a bit of feedback on the last round, and I'm not completely sure how to address all of it yet, I wanted to send out this set which tries to address *some* of his concerns, so I could get further feedback and make sure I'm on the right track. The current version of the full patchset to enable USB on HiKey960 can be found here: https://git.linaro.org/people/john.stultz/android-dev.git/log/?id=d40d8c803c5a79b70e2a6b363fe03442480df7d9 I'd greatly appreciate any feedback or thoughts! thanks -john New in v5: * Just sending out role-switch and role-swith-default-mode changes * Reworked role-switch code to not select CONFIG_USB_ROLE_SWITCH and to ifdef out the dependent code if its not enabled, as suggested by Felipe * Changed to a string based role-switch-default-mode binding as suggested by Felipe 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: Jack Pham Cc: linux-usb@vger.kernel.org Cc: devicetree@vger.kernel.org John Stultz (2): dt-bindings: usb: generic: Add role-switch-default-mode binding usb: dwc3: Add support for role-switch-default-mode binding Yu Chen (1): usb: dwc3: Registering a role switch in the DRD code. .../devicetree/bindings/usb/generic.txt | 6 ++ drivers/usb/dwc3/core.h | 6 ++ drivers/usb/dwc3/drd.c | 96 ++++++++++++++++++- 3 files changed, 107 insertions(+), 1 deletion(-)