Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753590AbcLIVgd (ORCPT ); Fri, 9 Dec 2016 16:36:33 -0500 Received: from mail-oi0-f65.google.com ([209.85.218.65]:34974 "EHLO mail-oi0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751987AbcLIVgb (ORCPT ); Fri, 9 Dec 2016 16:36:31 -0500 Date: Fri, 9 Dec 2016 15:36:29 -0600 From: Rob Herring To: "Thang Q. Nguyen" Cc: Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , Mathias Nyman , Greg Kroah-Hartman , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, Phong Vo , Loc Ho , Vu Nguyen , patches@apm.com Subject: Re: usb:xhci: support disable usb2 LPM Remote Wakeup Message-ID: <20161209213629.76ixdmr24ln72uaw@rob-hp-laptop> References: <1480855321-5047-1-git-send-email-tqnguyen@apm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1480855321-5047-1-git-send-email-tqnguyen@apm.com> User-Agent: Mutt/1.6.2-neo (2016-08-21) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1416 Lines: 33 On Sun, Dec 04, 2016 at 07:42:01PM +0700, Thang Q. Nguyen wrote: > From: Thang Nguyen > > As per USB 2.0 link power management addendum ECN, table 1-2, page 4, > device or host initiated via resume signaling; device-initiated resumes > can be optionally enabled/disabled by software. This patch adds support > to control enabling the USB2 RWE feature via DT/ACPI attribute. > > Signed-off-by: Vu Nguyen > Signed-off-by: Thang Nguyen > --- > Documentation/devicetree/bindings/usb/usb-xhci.txt | 1 + > drivers/usb/host/xhci-plat.c | 3 +++ > drivers/usb/host/xhci.c | 5 ++++- > drivers/usb/host/xhci.h | 1 + > 4 files changed, 9 insertions(+), 1 deletion(-) > > diff --git a/Documentation/devicetree/bindings/usb/usb-xhci.txt b/Documentation/devicetree/bindings/usb/usb-xhci.txt > index 966885c..9b4cd14 100644 > --- a/Documentation/devicetree/bindings/usb/usb-xhci.txt > +++ b/Documentation/devicetree/bindings/usb/usb-xhci.txt > @@ -25,6 +25,7 @@ Required properties: > > Optional properties: > - clocks: reference to a clock > + - usb2-rwe-disable: disable USB2 LPM Remote Wakeup capable Remote wakeup has been around since USB 1.0 days. Does this need to be USB2 or XHCI specific? > - usb3-lpm-capable: determines if platform is USB3 LPM capable > > Example: