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: 10899175 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 7847E1708 for ; Fri, 12 Apr 2019 22:42:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 575EF28748 for ; Fri, 12 Apr 2019 22:42:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4A94C28F20; Fri, 12 Apr 2019 22:42:30 +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 D601128748 for ; Fri, 12 Apr 2019 22:42:29 +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=hdzeJG8WFj2oLAbTpntQKnt5j6b426XFAyURZuQaPGM=; b=oN8ehPbYi/vX78 kPK5oKWKiTj9KwhJLgX/XLzoHnqbNy0XFNRkOAStxbXue0C/JXGffPuEQhGlPZma2OtcCvR/kJxo+ scC2ayhMVuDq3nmemhTz1CFOXN+bmloz8TC+abBm6WOR3YNkWs0lFwVjkTzQQY8FY165PmHBX6G9N LEay8ysPGUU0hp0LUAT39pdLq9Anlrr7q/p9eSdePUn0IV+rorbt4X33EeA1cA1/blJIgIQQQwpDc upazcSIM8USjG4EzsTsKz+t+4TDzGCyJjDPyVsV9eeHZ6wz9hluzSDugMexXGFod19JTq78vDYc5y dgRBtanouB3j/8MBS+vw==; 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 1hF4sL-0002aW-1h; Fri, 12 Apr 2019 22:42:25 +0000 Received: from mail-pl1-x644.google.com ([2607:f8b0:4864:20::644]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hF4sB-0002QR-Ma for linux-rockchip@lists.infradead.org; Fri, 12 Apr 2019 22:42:17 +0000 Received: by mail-pl1-x644.google.com with SMTP id y6so5801628plt.1 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=IXhmMvHRU1zUQNX7LfKNXRZOoLnraXtQ9tvFY3kQR2XJ4LzswScGEHryW4hfKdynGx +IwL5+WE2apPBmSlIlk3N5D8Sb2Mp74AHLgHudU4BHSW6zrYzspBl0TZQ04xltUFJGp1 edEC++WSHw/ptsJ3nH3KngTjiNjafGzBniZ3kj3Fcsqah/B08jrJC1G6iibbT/Ihj33K +f97L+SdKtHQINqrHZcfwE8AIFuGePwSggcCHK1DUfBlTKVLFox0hBE8811akqoyGy6X wh+NIM1qpUTSm+edB62hHleAfFnq8vP0BCi4L7Ados0ApQZ0j9llQ3GQNZ2AZvBgmofY RG6Q== X-Gm-Message-State: APjAAAUgkZ16FZzoPGrdrKYiNtVWkti3+WjYuv0w1NL9XBGt8NCn2dDh UD0Rnn32zXKU0tN1g6f9UHdPsg== 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_762971_A21282FF X-CRM114-Status: UNSURE ( 9.37 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Upstream kernel work for Rockchip platforms 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-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=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(-)