Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1156878pxb; Fri, 6 Nov 2020 02:26:23 -0800 (PST) X-Google-Smtp-Source: ABdhPJzAfNH1bvp05MV91xkQpTKS/0QeLsgUiRnbnVSWmoaWEhTSjQuZ2oGtR0MY/O2Bb0hhZ1ep X-Received: by 2002:a17:907:d1e:: with SMTP id gn30mr1401467ejc.148.1604658383171; Fri, 06 Nov 2020 02:26:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604658383; cv=none; d=google.com; s=arc-20160816; b=eZfciNlaWc4iqjqq5JyQE+w7yg7z4yopJyz/7COUEwV2AGVmyVQPN8ItpIpsrT1utt oKrmznrVZndktWLVMhscuBa67dwebf6wqX9a7c46ds5ot0r9+jQKk23fyQuVB7ca0ehD bUsWR1MRE4rIyUqAH9D4AILlqIHnyO5X2KaSVIqB81brKU0ydmqdTc3qyZVNOn/d5FYv xzVpcp80v3PMz+cvHX6Zi2TfBfDv5E5LK2ZlvdTm/G83UaSari0URoDvLVYOcOJWBFJo bVueZVloHTxFvsKTTAnUTNSMhaSEek+9dLgLlWaURVTIFsJT9UolPzTwgDD45R+Vwioc 3lVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=5DHkOeUtEIeW5e4mMp2rqkYWfzCW3txkgK4ShxZWf9I=; b=IzIl9O6vjz2akdqVnPT+rwOxsTSwwTPQwnwwMUwlZVOSd7RNEXI72jd3u0HCtq5H21 wpGpjCn6byIxt0H/XmjloMy9NP8JR7YaynEIEXKEPGR/b8ctuKU0mFuE+5ziySeKk5KM 0g9BLm/xgrmMz1YUn3b/saLhP6K/MHAgFgAWwodBMv/ikl2+s35rVyFsAWmaSy8wlVOm tkh04eHjBYSkig2eo2wVhS/YZWNBl4pOND1vh+d9+nQTdOLwFc8qI7wtDZUuT8QaqF4y qn95nJTyyKrRi2X7tVLDheotBJj12f7cEzZNwidtWqqQcRYPIpKKGbGEMF+9BSnyAsVy 95Dg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o9si618532edi.568.2020.11.06.02.26.00; Fri, 06 Nov 2020 02:26:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727054AbgKFKWD (ORCPT + 99 others); Fri, 6 Nov 2020 05:22:03 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:53325 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726865AbgKFKWB (ORCPT ); Fri, 6 Nov 2020 05:22:01 -0500 X-UUID: 9b89258081404873932c7c17e901f2c8-20201106 X-UUID: 9b89258081404873932c7c17e901f2c8-20201106 Received: from mtkcas06.mediatek.inc [(172.21.101.30)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.14 Build 0819 with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 837883830; Fri, 06 Nov 2020 18:21:51 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs05n2.mediatek.inc (172.21.101.140) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 6 Nov 2020 18:21:48 +0800 Received: from mtkswgap22.mediatek.inc (172.21.77.33) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Fri, 6 Nov 2020 18:21:48 +0800 From: Macpaul Lin To: Rob Herring , Greg Kroah-Hartman , Matthias Brugger , Mathias Nyman , Chunfeng Yun CC: Ainge Hsu , Eddie Hung , Chunfeng Yun , Mediatek WSD Upstream , Macpaul Lin , Macpaul Lin , , , , , Subject: [PATCH v3 1/2] dt-bindings: usb: mediatek,mtk-xhci: add str-clock-on Date: Fri, 6 Nov 2020 18:21:36 +0800 Message-ID: <1604658097-5127-1-git-send-email-macpaul.lin@mediatek.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1604301530-31546-1-git-send-email-macpaul.lin@mediatek.com> References: <1604301530-31546-1-git-send-email-macpaul.lin@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Option "mediatek,str-clock-on" means to keep clock on during system suspend and resume. Some platform will flush register settings if clock has been disabled when system is suspended. Set this option to avoid clock off. Fixes: 0cbd4b34cda9 ("xhci: mediatek: support MTK xHCI host controller") Signed-off-by: Macpaul Lin Cc: stable@vger.kernel.org --- Changes for v3: - Remove unnecessary Change-Id in commit message. - Add "Fixes" tag as a bug fix on phone system. Changes for v2: - Rename "mediatek,keep-clock-on" to "mediatek,str-clock-on" which implies this option related to STR functions. - After discussion with Chunfeng, resend dt-bindings descritption based on mediatek,mtk-xhci.txt instead of yaml format. .../devicetree/bindings/usb/mediatek,mtk-xhci.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/usb/mediatek,mtk-xhci.txt b/Documentation/devicetree/bindings/usb/mediatek,mtk-xhci.txt index 42d8814..fc93bcf 100644 --- a/Documentation/devicetree/bindings/usb/mediatek,mtk-xhci.txt +++ b/Documentation/devicetree/bindings/usb/mediatek,mtk-xhci.txt @@ -37,6 +37,9 @@ Required properties: Optional properties: - wakeup-source : enable USB remote wakeup; + - mediatek,str-clock-on: Keep clock on during system suspend and resume. + Some platform will flush register settings if clock has been disabled + when system is suspended. - mediatek,syscon-wakeup : phandle to syscon used to access the register of the USB wakeup glue layer between xHCI and SPM; it depends on "wakeup-source", and has two arguments: -- 1.7.9.5