From patchwork Thu Apr 18 00:13:51 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Doug Anderson X-Patchwork-Id: 10906421 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 94CB917E0 for ; Thu, 18 Apr 2019 00:15:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7E43D28BD5 for ; Thu, 18 Apr 2019 00:15:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7073128BD8; Thu, 18 Apr 2019 00:15:27 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1874628BD4 for ; Thu, 18 Apr 2019 00:15:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387565AbfDRAO5 (ORCPT ); Wed, 17 Apr 2019 20:14:57 -0400 Received: from mail-pf1-f194.google.com ([209.85.210.194]:38807 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729500AbfDRAO5 (ORCPT ); Wed, 17 Apr 2019 20:14:57 -0400 Received: by mail-pf1-f194.google.com with SMTP id 10so235931pfo.5 for ; Wed, 17 Apr 2019 17:14:56 -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=c9oThqOPQYRE9+j5YBe3T7HRFD4v17lP81JvPeWNUJo=; b=LVGQpggDxObbMay+0kK1xkAClUgU3QUKZ2zeyJjh8Xnrx4z9dJPNi9TUp+f8RTd0Ck d9NpEkly65of7S0zxErJ85rX495+moDdrKFtuN1ondPtJB3MHKsle748/lx4Hfmml3CZ hTOUOxgkvb0vw0HpArE9TW/ArB1KEhj1U94VI= 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=c9oThqOPQYRE9+j5YBe3T7HRFD4v17lP81JvPeWNUJo=; b=NoKt2RJqJCjQK5JbhiAhqsrMLkz/wZVL0jZjMH9I2GReyUIn08tKm4qHmhs1bYvH5A 964LDsxgCupmsQUVzp7dDk7v9fvUflzDGwAwUDksRQbBg80Sp8kls0EHw2Ph4u110ykk HGwwkNObQefehumlmwZQ9XmvnILZnEPqQ6lYHIREn0vORcYZBXMrJlfxNe1C58UMzSRV 85JAi/3trxFDim98yEOJ2sWH/fdowfFq85YtGtijdyOUS91WqIlxPcIeV8V5siipnEx7 RYzCNEjPs+6YwBWP87G8U1BCEsxj31R5/pF1bCpGFhX9DpESUcfuQwEKimQOFtp34GGi LBjg== X-Gm-Message-State: APjAAAV3TW7WBW0CSfTfDfFUcahtwI1/NtTedPUAg7n5/cqgYIRk6nnQ bIZVXHTkRcKwgWSXuF5QJy6vzg== X-Google-Smtp-Source: APXvYqxBrq6dTjS91CHRbsI1bTnxxtQbGFSU4OZmJFaPtT8QQp4Fl3rumYe7P87zkpZ1XvLPGPB3XQ== X-Received: by 2002:a62:7603:: with SMTP id r3mr93273266pfc.32.1555546496404; Wed, 17 Apr 2019 17:14:56 -0700 (PDT) Received: from tictac2.mtv.corp.google.com ([2620:15c:202:1:24fa:e766:52c9:e3b2]) by smtp.gmail.com with ESMTPSA id q5sm447668pff.97.2019.04.17.17.14.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 17 Apr 2019 17:14:55 -0700 (PDT) From: Douglas Anderson To: Minas Harutyunyan , Felipe Balbi , heiko@sntech.de Cc: Alan Stern , Artur Petrosyan , amstan@chromium.org, linux-rockchip@lists.infradead.org, William Wu , linux-usb@vger.kernel.org, Stefan Wahren , Randy Li , zyw@rock-chips.com, mka@chromium.org, ryandcase@chromium.org, Amelie Delaunay , jwerner@chromium.org, dinguyen@opensource.altera.com, Elaine Zhang , Douglas Anderson , linux-arm-kernel@lists.infradead.org, Kai-Heng Feng , Mathias Nyman , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Nicolas Boichat , Jon Flatley , Greg Kroah-Hartman , Rob Herring , Mark Rutland , Nicolas Saenz Julienne Subject: [PATCH v2 0/5] USB: dwc2: Allow wakeup from suspend; enable for rk3288-veyron Date: Wed, 17 Apr 2019 17:13:51 -0700 Message-Id: <20190418001356.124334-1-dianders@chromium.org> X-Mailer: git-send-email 2.21.0.593.g511ec345e18-goog MIME-Version: 1.0 Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This re-hashes two older series I posted a long time ago, re-basing them to mainline. ...well, technically, atop another dwc2 series I recently posted: * usb: dwc2: Another attempt handling rk3288's remote wake quirk https://lkml.kernel.org/r/20190416215351.242246-1-dianders@chromium.org https://lore.kernel.org/patchwork/cover/1062972/ In general I've tried to add links to each patch pointing to relevant older discussion. Here are overall links to the cover letters though. Note that for the previous "allow wakeup" series the discussion was scattered a bit between the original post and the repost. * usb: dwc2: bus suspend/resume that's not hibernate https://lkml.kernel.org/r/1446237173-15263-1-git-send-email-dianders@chromium.org https://lore.kernel.org/patchwork/patch/613761/ * dwc2 patches to allow wakeup on Rockchip rk3288 https://lkml.kernel.org/r/1435017144-2971-1-git-send-email-dianders@chromium.org https://lore.kernel.org/patchwork/cover/572944/ * dwc2 patches to allow wakeup on Rockchip rk3288 (REPOST) https://lkml.kernel.org/r/1436207224-21849-1-git-send-email-dianders@chromium.org https://lore.kernel.org/patchwork/cover/576120/ I'm hoping there's a better chance of these things landing this time around, but I guess we'll see. ;-) In case it's helpful I've put what I tested (which is based on Heiko's for-next branch and includes patches to enable deep suspend plus two other s2r fixes) at: https://chromium.googlesource.com/chromiumos/third_party/kernel/+log/refs/sandbox/dianders/190417-testing-dwc2-wakeup Changes in v2: - Rebased to mainline atop rk3288 remote wake quirk series. - rk3288-veyron dts patch new for v2. Douglas Anderson (5): usb: dwc2: bus suspend/resume for hosts with DWC2_POWER_DOWN_PARAM_NONE USB: Export usb_wakeup_enabled_descendants() Documentation: dt-bindings: Add snps,need-phy-for-wake for dwc2 USB USB: dwc2: Don't turn off the usbphy in suspend if wakeup is enabled ARM: dts: rockchip: Allow wakeup from rk3288-veyron's dwc2 USB ports .../devicetree/bindings/usb/dwc2.txt | 3 + arch/arm/boot/dts/rk3288-veyron.dtsi | 2 + drivers/usb/core/hub.c | 7 +- drivers/usb/dwc2/core.h | 5 ++ drivers/usb/dwc2/hcd.c | 84 ++++++++++++------- drivers/usb/dwc2/platform.c | 43 +++++++++- include/linux/usb/hcd.h | 5 ++ 7 files changed, 113 insertions(+), 36 deletions(-)