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: 178839 Delivered-To: patches@linaro.org Received: by 2002:a92:38d5:0:0:0:0:0 with SMTP id g82csp1924198ilf; Thu, 7 Nov 2019 17:17:27 -0800 (PST) X-Received: by 2002:a17:902:6b0a:: with SMTP id o10mr1009155plk.15.1573175847584; Thu, 07 Nov 2019 17:17:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573175847; cv=none; d=google.com; s=arc-20160816; b=NfxfI98TM1MRUvy5q0o6DWrl5Hxd0g37r/zPmclNn7hr48B/BFa/T9qb7pPvq9kKno HWJ4L29VdLG8rg2MJD0Uo50an9XWNW2DODFhToi8CpixeedbMI4WrIMC53Mhy6jVkg2q Gz7LGOC5u+Yjq+ewmTMROUMR2h9ekjUn6uCs662L/FgzLSwmtoJruvcZCnPeDymvJUaT DrScLLiuEjbUduZeQ3W5nBTaCzPi+ltJYK4P8lvxloKXNcwxSH9BFcX6fBAWeyG2Btkv iyELDziokUPs1e4eI5IsY4S0PraQ8ZGCtBYto/1j7u9gPdlE++XhcN2bVKnKq8+qcxKw fPKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:date:subject:cc:to:from:dkim-signature; bh=kZcD6GKA7XbCzd3zg1eCgX8HZHAD6+MLe8xQYM7PmDE=; b=w+vhXAtkJRULlBNlGBovEKSqU4Za00Q35eRzifND6ZwfGYg+PUMYDhyKkpRbFnyvLJ QqtZdwWjQqtVVNGKECLHCHzWAL0YAlQHRbJp1S23wl9hnsnh147q/sz2TYehKOLzH7Gi rrEdZFyHp82hylsrha3oXiT1AnlmX+Rw23CvdZ1+zDxRBvfcQZiIbNky7uJLRIVk6ofR rXB4SFv21kuGqgUZeF5HdbM5bP0w3Q59FL66w3TkQSnZR8gpEjJNGBRN/2rlcCNuOW32 +PVYdxFSj84qY2N77HC5IM6ImPwRW+BhLZoMiyyRqClChM5TKV1OvuqtAYojmVsfJJa6 ayfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jKxk19Vd; spf=pass (google.com: domain of john.stultz@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=john.stultz@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id h22sor5481293pju.26.2019.11.07.17.17.27 for (Google Transport Security); Thu, 07 Nov 2019 17:17:27 -0800 (PST) Received-SPF: pass (google.com: domain of john.stultz@linaro.org designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jKxk19Vd; spf=pass (google.com: domain of john.stultz@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=john.stultz@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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=QY3AIpkP2KkTIkMaKXVM+mCaZ9XByA8vThVHdV6nj6h7afwt1to3F0+VpttV39+9VW lWJT/6tGemQ7hdWymbuUv+PKZQ1EA4EFCkFclKIK0rtAKH0squJDqff+rO8VrFxiblHq A58/EupQJVFf5FW8M8/73RAh3Sz95UITIiqmkHVPu0c8vXUABtxJLfG+ZzUFyOo6IE5R iDmTyDT7XD9GQuUzIbWFfM89AbUsJtx1myt3JwhdCWPXZ4TjhJNjPobcBRTmvtk5oCKp xDPCLL5QbRJ4IMP9EzGvwyIE3WYpUhXbPJdCevw+49LbDQdzgOE2BMV4qq9QHjL2OwxC OKZw== X-Gm-Message-State: APjAAAUyj7ebMMy66G6bAZy1ml9wlnfQwebaPw00UFCl/eEtgrwKcr/3 tcxYKra6PFDBLH6QTqDMu+dXim/W 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) Return-Path: 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 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(-) -- 2.17.1