From patchwork Fri Apr 12 22:41:45 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Doug Anderson X-Patchwork-Id: 10899167 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id DD43E13B5 for ; Fri, 12 Apr 2019 22:42:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B7B2528748 for ; Fri, 12 Apr 2019 22:42:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AB35828F20; Fri, 12 Apr 2019 22:42:20 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 55F3F28748 for ; Fri, 12 Apr 2019 22:42:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=/AGrIIEwyQATNIedZVhXXj+3ihFneGG2srQQ+TN9ZBU=; b=iwPKkyhNLX9g0W +vYPUntrpKZiT5DLDjjk5uQIoXU9seaepnjzkdnxomOxVPj3X2N3AGsaQNSHiuat4pPGrPLokX7nF 6JbPIOHBF0gNHT1s/U1+ScjJ9NnTrADs0YAS+5bxDE73USG1wYCpP19efX2DPL0rzb3hcCmPs/6tR iia140FnPLforGXISPH1F1ayRvFij10WvRlmR2JxRQMqxAZZy+meLjguvdJf6x+CR0RFRTNfKCBJm yJJSwqewFlY3ntk4RYtlWFTN07NIWPTL9FdQYJD5Pm/yP7cPMBTGIcdriNXMd4WMPKefsaCnbjQCE /dJ8hO7uz3MKWpf8Jcvw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hF4sE-0002Ra-J4; Fri, 12 Apr 2019 22:42:18 +0000 Received: from mail-pl1-x643.google.com ([2607:f8b0:4864:20::643]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hF4sB-0002QS-MW for linux-arm-kernel@lists.infradead.org; Fri, 12 Apr 2019 22:42:17 +0000 Received: by mail-pl1-x643.google.com with SMTP id b3so5784774plr.7 for ; Fri, 12 Apr 2019 15:42:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=8ngcn1hFw8Idtgog7uZA26fpDBwfRZfsO4S5EVa4nB8=; b=kaVMx2CGUv+F7QdUeNhXNc/025lldoXzYYDRCbNP7+PY5frjU14guCrDchjyU6XpBg xejnxDmCPSe/eAokqL/btZ5wgexyJjKfpHkEBebyTAuQ7xXl0+oERBxsISqel4ZrrJZt +LYyLMysprW1iip6meQ2OMEE2KUkObENhVuv4= 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:mime-version :content-transfer-encoding; bh=8ngcn1hFw8Idtgog7uZA26fpDBwfRZfsO4S5EVa4nB8=; b=lQQ1/25dz7XfNt6+ghizugoJjWqzKAnLDlfF2IAaF+RCJv2wbY7RGk2hioJQvv++j+ rpKqaD+sEX/I1XOh1LnRoNayGiWXaSOpm1YpDLwNxGJzg/gKS4mp8S97s1apjIGJDTV3 PuTBZTMQqw2Z9VkwjkoWv1QtWe7UB0oyONp5NgCDFc6WbaVQsdX8CcoZfpxign2pxqxy MCh0GTw22V9EO2869OvThX+8QanwN9rFrlyaLiiknaeBhv/FkXWhrqx9C0/y6KegFSGU rdIBogM+fk18jC340Mx4hPmkbc9qzs9yv1OyVmSFD3DFBvMxqn3080Bpe19nmKO+LWvY qlVg== X-Gm-Message-State: APjAAAUADEtyl1c0mPSMERaDTtie5nMrDq6fQb+kEBuYhcNMjtsOwKzg XS3KeXubPGsjXEga+J7Wluv0Jg== X-Google-Smtp-Source: APXvYqw9fJqLJ4H66fWrkQ0rZ0t7wvUSM0mOB4NGTtWkpxku760IEJjfA5ga0WKH+gGKJNjXqExSAA== X-Received: by 2002:a17:902:6949:: with SMTP id k9mr59815428plt.59.1555108934928; Fri, 12 Apr 2019 15:42:14 -0700 (PDT) Received: from tictac2.mtv.corp.google.com ([2620:15c:202:1:24fa:e766:52c9:e3b2]) by smtp.gmail.com with ESMTPSA id j22sm57170579pfn.129.2019.04.12.15.42.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 12 Apr 2019 15:42:14 -0700 (PDT) From: Douglas Anderson To: Rob Herring , Minas Harutyunyan , Heiko Stuebner , Felipe Balbi Subject: [PATCH 0/4] usb: dwc2: Another attempt handling rk3288's remote wake quirk Date: Fri, 12 Apr 2019 15:41:45 -0700 Message-Id: <20190412224149.106971-1-dianders@chromium.org> X-Mailer: git-send-email 2.21.0.392.gf8f6787159e-goog MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190412_154215_759255_25EEA620 X-CRM114-Status: GOOD ( 10.60 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , devicetree@vger.kernel.org, linux-usb@vger.kernel.org, amstan@chromium.org, Greg Kroah-Hartman , Randy Li , Douglas Anderson , linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, mka@chromium.org, ryandcase@chromium.org, Elaine Zhang , jwerner@chromium.org, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This is another attempt to upstream the code to unwedge the rk3288's "host" USB port when it sees a remote wakeup. Previously I attempted this [1] and it appears that Randy Li made some attempts too [2] which resulted in at least the PHY bindings for the USB PHY landing as well as the USB PHY support. Nice! Hopefully this addresses previous comments and could land this time? [1] https://lkml.kernel.org/r/1446236275-12698-2-git-send-email-dianders@chromium.org [2] https://lkml.kernel.org/r/1472939729-15187-4-git-send-email-ayaka@soulik.info Douglas Anderson (4): dt-bindings: usb: dwc2: Document quirk to reset PHY upon wakeup usb: dwc2: optionally assert phy reset when waking up ARM: dts: rockchip: Hook resets up to USB PHYs on rk3288. ARM: dts: rockchip: Add quirk for resetting rk3288's dwc2 host on wakeup Documentation/devicetree/bindings/usb/dwc2.txt | 2 ++ arch/arm/boot/dts/rk3288.dtsi | 7 +++++++ drivers/usb/dwc2/core.h | 5 +++++ drivers/usb/dwc2/core_intr.c | 12 ++++++++++++ drivers/usb/dwc2/hcd.c | 16 +++++++++++++--- drivers/usb/dwc2/platform.c | 9 +++++++++ 6 files changed, 48 insertions(+), 3 deletions(-)