Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753866AbcLLIjR (ORCPT ); Mon, 12 Dec 2016 03:39:17 -0500 Received: from mga07.intel.com ([134.134.136.100]:8875 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752338AbcLLIjP (ORCPT ); Mon, 12 Dec 2016 03:39:15 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,334,1477983600"; d="asc'?scan'208";a="16897024" From: Felipe Balbi To: "Thang Q. Nguyen" , Rob Herring 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 Subject: Re: usb:xhci: support disable usb2 LPM Remote Wakeup In-Reply-To: References: <1480855321-5047-1-git-send-email-tqnguyen@apm.com> <20161209213629.76ixdmr24ln72uaw@rob-hp-laptop> Date: Mon, 12 Dec 2016 10:37:58 +0200 Message-ID: <87lgvliluh.fsf@linux.intel.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2777 Lines: 68 --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi, "Thang Q. Nguyen" writes: > On Sat, Dec 10, 2016 at 4:36 AM, Rob Herring wrote: >> 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/Docum= entation/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? > This is XHCI specific. Per XHCI specification 1.1, remote wakeup is > optional for XHCI 1.0 and required for XHCI 1.1. This patch provides > ability for software to disable RWE for USB2 in XHCI1.0 controller. is there no way of detecting this in runtime? =2D-=20 balbi --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEElLzh7wn96CXwjh2IzL64meEamQYFAlhOYeYACgkQzL64meEa mQaqcA/8DT8Tf3F48nxzybiqVlMCQv/gr3rcyrfjNCg1lYD5oZSVe+1rjrhBbgH1 uAMvjvL71ujaFpITWX5ONCsTbN6+7M10o6QsoZAYTGdbq0IA5hsz726wRwIIbz2V EA7jG41VpgQQanjA3B+khRmOT8MAPniZor63ufPtQSLa1PGtsUsbbzNuudEH4i9U JffCXtCI7wzUoZbwiEBafIKKtrUHl0v7Zwl63uwA18pkAhUAJ4m6AP/C1zEc5UpJ YJTwaBBe/0UGUY8eeG9Sg+aMzqMFgNE7S8u4gHOGhP763LuHTg3RhnHL/BCsd7fN 2E5oTMuRfoVpMIG50a5hfW7DZapAO7dbrKXBiCXkl3a/5PpZGPmAs0AtvdVFDWbh HzRo8w487m+49qBrndamFjdUTJyUoEciMJRhhEYoedZXiCU+BTd1/CDpWGU3B+Wm LVS6TVx34FD9hmi8DFcI1MmgEP8kCXewfbdixwQkwvs96WVrOHNsBp37DUs/iPPd L+Tb03dlXdPnec9MpIfOJHOER0tpJ9KwaI74zto71mIvG4CUPDEQj2U0WA1CUE80 SZ38kBeW9+dHJG30oBGyXlvWowSqyoTSP+8+qV8PQLzJgdTGVoIxT3Gj9/zRpitZ FmJ8+8IY7bcB3KrDYmyiO5H8AejZsP5MBeUwZ5vp6PV/CCtBgZQ= =dw59 -----END PGP SIGNATURE----- --=-=-=--