Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2306139yba; Thu, 25 Apr 2019 14:11:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqwgUKiOwDhgQAid58ZHnDAPe6Ddk8J6hSC0lcrOWhozBZn2860ZSlKYi7Im2+YbY/yIFxp7 X-Received: by 2002:a17:902:bf44:: with SMTP id u4mr41410125pls.171.1556226689419; Thu, 25 Apr 2019 14:11:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556226689; cv=none; d=google.com; s=arc-20160816; b=HPcn9l2puK7vtF4qXRPgAuCei6jPkm1zGTs9YFkiOjKfuZWjXPIWpyrTpZxISGXg7X ChaSAvXiqX8Gw3svWkFxbiAdVc8ute2fx3G0YCPlOXaopLjpYb8i8pC9mSozrZUhoLpL yBKkSop7x3wAzl6AV22w5TTcrh1AWp4RgSwkT/KOYy3DNyBf1yN5AiZ4vYUIn+hZPGCi KwEqmJZMiviPTVmSexL6nsS6iSUEDu46pD/lg6P157CeRPwQQRmm/5dyc2/GoRQiEshR hb/mvAU+GBntd/harwAFHL5B0XayAo6TLLzazkNGvNqr86qPABzpNwihd/ZaOmueiZVq y8mA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=TQLgG97dgP+LAcJARy+HeEVPUWpQAXRDJse4J8Yqksc=; b=HTiy0ewVlREYQNkxjhOKGf4JNOu6MXv1jw+iNwpv/nkynjDn9dILsSGRrDtp6CdPl+ foCfqBJcNasqCVy6qdK7JgnJu9NN0pjsuGoDl0jN9+UzN8p5X3ODICKyr0yfiTiNNasC 2kds5gqmesPE29WCDiHRNihS2YVRI3dXPTgq0QiL0lKVjnZlcUCS38a427sj7lk97xqK kgaLEjdmbXXnWtUqjZDbaSGBKLMRlfeTyMR0dVad8XCaI/8uU+pUQMwIitbL8xUx3n9u HIknCaBAMpHaPhMicaczO2UYZGsUCDUJzYbekLTedBb/uFY8sh3aKhL7YGD8Xkg3GT1H IayA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=fndoZu57; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d62si24205546pfg.209.2019.04.25.14.11.14; Thu, 25 Apr 2019 14:11:29 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=fndoZu57; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727967AbfDYSPq (ORCPT + 99 others); Thu, 25 Apr 2019 14:15:46 -0400 Received: from mail-ua1-f68.google.com ([209.85.222.68]:45431 "EHLO mail-ua1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726150AbfDYSPq (ORCPT ); Thu, 25 Apr 2019 14:15:46 -0400 Received: by mail-ua1-f68.google.com with SMTP id o33so282339uae.12 for ; Thu, 25 Apr 2019 11:15:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=TQLgG97dgP+LAcJARy+HeEVPUWpQAXRDJse4J8Yqksc=; b=fndoZu57/uSjDnDsOB8vKFRDbouEL0l5f/xch1VjgyLz9v1vZ5DmF7dh1EeXxqzMHt MEINOdPyCer56YQiGTGCzyIgIVwjUQiYOzRX8tyBbXB2Q0+5iaOXps3DuqZpLC3rLFIU YewgAH2ZA4cLnl0GCLlvS1LHbf8unD/6+sj0k= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=TQLgG97dgP+LAcJARy+HeEVPUWpQAXRDJse4J8Yqksc=; b=ZlS6fnvw2dVSD+KVT3OCyP283TxVqFVwqBa5V2z/I64LMtFcfzTfxFcntteEQ3u2vt 5G9ji3dUZE5cDVgE2F4Ga9/8Qmd4v/IDP5sJOHopOfxuPASIggWDLIVH2/Pkv58EptFg OvgibqMaDu4mYQypdsecFu2YCcmoZEbadH7ozRPUV25bau8XbteoSnxXLwj9ZqjQboCW HRhum+lG4t2OLelvy7OJF/iKI8vQht1Ir8eQrCvmHirwgcKleXb/XbX16SwJ5H7oNmee Q6RdMNOdz567bClT1a2pVh037PcmZaPwUlbHyidicKo2o8U6BNALXPUPylDBRFRZowrd 4zTQ== X-Gm-Message-State: APjAAAWUirX1a5A3PRs4IiAibROB/UJ7XdkLEpVBRmxYfqULoywelkJQ QBDNfPaVcgwT7u30WnNVYN0WBOc4sXM= X-Received: by 2002:ab0:6704:: with SMTP id q4mr20584910uam.132.1556216145371; Thu, 25 Apr 2019 11:15:45 -0700 (PDT) Received: from mail-ua1-f54.google.com (mail-ua1-f54.google.com. [209.85.222.54]) by smtp.gmail.com with ESMTPSA id l9sm3802494uae.1.2019.04.25.11.15.45 for (version=TLS1_3 cipher=AEAD-AES128-GCM-SHA256 bits=128/128); Thu, 25 Apr 2019 11:15:45 -0700 (PDT) Received: by mail-ua1-f54.google.com with SMTP id t15so297934uao.5 for ; Thu, 25 Apr 2019 11:15:45 -0700 (PDT) X-Received: by 2002:a9f:204a:: with SMTP id 68mr2037252uam.19.1556215810968; Thu, 25 Apr 2019 11:10:10 -0700 (PDT) MIME-Version: 1.0 References: <20190418001356.124334-1-dianders@chromium.org> <20190418001356.124334-4-dianders@chromium.org> <87pnpas1fx.fsf@linux.intel.com> In-Reply-To: <87pnpas1fx.fsf@linux.intel.com> From: Doug Anderson Date: Thu, 25 Apr 2019 11:09:59 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 3/5] Documentation: dt-bindings: Add snps,need-phy-for-wake for dwc2 USB To: Felipe Balbi Cc: Minas Harutyunyan , =?UTF-8?Q?Heiko_St=C3=BCbner?= , Alan Stern , Artur Petrosyan , Alexandru M Stan , "open list:ARM/Rockchip SoC..." , William Wu , linux-usb@vger.kernel.org, Stefan Wahren , Randy Li , Chris , Matthias Kaehlcke , Ryan Case , Amelie Delaunay , Julius Werner , Dinh Nguyen , Elaine Zhang , devicetree@vger.kernel.org, LKML , Rob Herring , Greg Kroah-Hartman , Mark Rutland Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Thu, Apr 25, 2019 at 5:40 AM Felipe Balbi wrote: > > Douglas Anderson writes: > > > Some SoCs with a dwc2 USB controller may need to keep the PHY on to > > support remote wakeup. Allow specifying this as a device tree > > property. > > > > Signed-off-by: Douglas Anderson > > --- > > For relevant prior discussion on this patch, see: > > > > https://lkml.kernel.org/r/1435017144-2971-3-git-send-email-dianders@chromium.org > > > > I didn't make any changes from the prior version since I never found > > out what Rob thought of my previous arguments. If folks want a > > change, perhaps they could choose from these options: > > > > 1. Assume that all dwc2 hosts would like to keep their PHY on for > > suspend if there's a USB wakeup enabled, thus we totally drop this > > binding. This doesn't seem super great to me since I'd bet that > > many devices that use dwc2 weren't designed for USB wakeup (they > > may not keep enough clocks or rails on) so we might be wasting > > power for nothing. > > 2. Rename this property to "snps,wakeup-from-suspend-with-phy" to make > > it more obvious that this property is intended both to document > > that wakeup from suspend is possible and that we need the PHY for > > said wakeup. > > 3. Rename this property to "snps,can-wakeup-from-suspend" and assume > > it's implicit that if we can wakeup from suspend that we need to > > keep the PHY on. If/when someone shows that a device exists using > > dwc2 where we can wakeup from suspend without the PHY they can add > > a new property. > > > > Changes in v2: None > > > > Documentation/devicetree/bindings/usb/dwc2.txt | 3 +++ > > 1 file changed, 3 insertions(+) > > checking file Documentation/devicetree/bindings/usb/dwc2.txt > Hunk #1 FAILED at 37. > Hunk #2 succeeded at 52 (offset -1 lines). > 1 out of 2 hunks FAILED Yeah, as Minas pointed out in the cover letter [1] my series conflicts with Artur's. I have it on my list to try out his series and see if, perhaps, it allows me to enable the partial power down and also just generally rebase. It's fairly high on my list to do that--hopefully in the next week. [1] https://lkml.kernel.org/r/e4b3cd69-1c91-dfbe-bea7-bbca89ca1348@synopsys.com -Doug