From patchwork Sun Oct 17 12:59:03 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sven Peter X-Patchwork-Id: 12564293 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4B18AC433F5 for ; Sun, 17 Oct 2021 12:59:22 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 2CFE761054 for ; Sun, 17 Oct 2021 12:59:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343514AbhJQNBa (ORCPT ); Sun, 17 Oct 2021 09:01:30 -0400 Received: from out5-smtp.messagingengine.com ([66.111.4.29]:46033 "EHLO out5-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242268AbhJQNB3 (ORCPT ); Sun, 17 Oct 2021 09:01:29 -0400 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 5DCD95C0109; Sun, 17 Oct 2021 08:59:17 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Sun, 17 Oct 2021 08:59:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=svenpeter.dev; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; s=fm2; bh=knU1y68hFncbUMmEzLqabx16z9 8FUfXq7euHxu34Zfk=; b=ck+WM73arOovdlimiqQK6Q6U73xPANY4l8bU8u4mpU 7WkO/IzofiY8/F790PtkAT8FCf0va1CKQ1M/tOFVn/te876pZbyx9GqX8/1yEntq +oCHHxrAcKU0EX7M6ADLCH02sT959VlxTopO25mZZ1c6hZaF1FPR4ksGtKt65QMm wZyW3GdcJrztWBCUbotLSt4ievmQQ6iiDeu42iLitYtPqZWg62XwdKmHvttu2Rvo IiekldIqGvZgfEFz396LUNw9KYdA1gRhejiCI4FKXkop9h0lDvPb5fRRq+QucZmj RQZcMf1A1znnHjBLug2SmEmb6GElsyAYuSf+Je7MPMTg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :message-id:mime-version:subject:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=knU1y68hFncbUMmEz Lqabx16z98FUfXq7euHxu34Zfk=; b=CGGsaPCgs+DGc7wcFucl+0LR+EJliQxUe JljDfa+H3ZHePBlc9Cl8R++65BACuH+dWKxVrnsrcE+IxqXib1KXMYpMqj5PG39r oHqnTZ0FnIWkhWFI7H1055EyrCsK8A5AwJ9azYP8/d64OMJgytFJepnqCLIYF8YE z/39C2d7It254wSuXTYGpO3iehrO0lYEFEc9YWRnAX4fXeQjxZdYQESPMqIH842E ppbrJsHBhuAZbyM2tnmBc8rlEOFWRO7gkJYxjOqQ8YkxXrEEpmVOldLhMXQByqBI MAYR3rZ5Eodm3rXJCQSiscdyyQ4AqPk7ewfOO9OHKlxbkc1VpRVMA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrvddukedgheejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkffoggfgsedtkeertdertddtnecuhfhrohhmpefuvhgvnhcurfgv thgvrhcuoehsvhgvnhesshhvvghnphgvthgvrhdruggvvheqnecuggftrfgrthhtvghrnh epuefgleekvddtjefffeejheevleefveekgfduudfhgefhfeegtdehveejfefffffgnecu vehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepshhvvghnse hsvhgvnhhpvghtvghrrdguvghv X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 17 Oct 2021 08:59:15 -0400 (EDT) From: Sven Peter To: Felipe Balbi Cc: Sven Peter , Rob Herring , Greg Kroah-Hartman , Hector Martin , Alyssa Rosenzweig , Mark Kettenis , linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] dt-bindings: usb: dwc3: Document role-switch-reset-quirk Date: Sun, 17 Oct 2021 14:59:03 +0200 Message-Id: <20211017125904.69076-1-sven@svenpeter.dev> X-Mailer: git-send-email 2.30.1 (Apple Git-130) MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org The dwc3 controller on the Apple M1 must be reset whenever a device is unplugged from the root port and triggers a role switch notification. Document the quirk to enable this behavior. Signed-off-by: Sven Peter --- Documentation/devicetree/bindings/usb/snps,dwc3.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/usb/snps,dwc3.yaml b/Documentation/devicetree/bindings/usb/snps,dwc3.yaml index 25ac2c93dc6c..9635e20cab68 100644 --- a/Documentation/devicetree/bindings/usb/snps,dwc3.yaml +++ b/Documentation/devicetree/bindings/usb/snps,dwc3.yaml @@ -226,6 +226,12 @@ properties: avoid -EPROTO errors with usbhid on some devices (Hikey 970). type: boolean + snps,role-switch-reset-quirk: + description: + When set, DWC3 will be reset and reinitialized whenever a role switch + is performed. + type: boolean + snps,is-utmi-l1-suspend: description: True when DWC3 asserts output signal utmi_l1_suspend_n, false when