Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp3112573pxx; Sun, 1 Nov 2020 23:31:28 -0800 (PST) X-Google-Smtp-Source: ABdhPJwqjprToi0jYiDFLfF0F5WdB9BSFumWfqqgSEz0TQe+8/rPLePtAciM2D9xZUrq9gtDw4lk X-Received: by 2002:a50:fe18:: with SMTP id f24mr9485892edt.162.1604302288639; Sun, 01 Nov 2020 23:31:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604302288; cv=none; d=google.com; s=arc-20160816; b=qkk2A/VOp86WXtVpaiDbO0OX/if4e1Wzsv3ZXI3WvQLRQS+UiYVdPlE3PfkSExGAj9 VETHuf95EUoHKVpnHgFR+UW8dWPSJQv3gd3oqawzPUCvAEbhbIhWAVH0tvGVQepYlv9k Hnvn5a4lxmDlCAWBLj0YlOYX13h96fMGGoCIAGjOSLblG1oS3KunAApXSUKdX1zeoQIZ 3FbBE0kMKrH0Faa2u7tLqNGxX9yhu7d8a0TZM3mmMFYdZsnWr23toPJzfaxsfJZPdXJe 3gknCgFsLrPRGNDcRIfmQE6bCSAWTR3Q++KtOJPrEdCtdWjMwXFU2c7c1Pnztdydq6CU IHfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=EwMAk6C90zx3ggLjTVwBgHjheE+if1MCBTaw2ieul20=; b=Kaz/t3mDVjjPizN1NLlW8eUAgD7KHLvYvwkAvVtzg9VkyqGw18S1cdzdJT5JnqetCE 4gyLs82Il+w6wA9WI0ipN7f9Qr2HhCtkcgoWxbtvA+5WQuCI95Rse0uGHhj4/WSrKG1U V8cVaYHuwkIhbMM5MpnXrwEtkLbMdPZDaLPL162J+MipAh3SRKADodZCbFhzISivveQj QEPOFcJteX4Wc4TDKA3NlqNA/hie2joLP9JB1yHMq+ZzHeYOUKDtWZXeL6LqrFZtXxDN 52oBiRjnjyj9/PQAJ9hSXoYmSJUgCqnKhRT3dKPz2G728UfgIvZ5ZKjYcU0B19P96LN9 YEmw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=MJI4YynX; 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=pass (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 o93si9835689eda.18.2020.11.01.23.31.05; Sun, 01 Nov 2020 23:31:28 -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; dkim=pass header.i=@mediatek.com header.s=dk header.b=MJI4YynX; 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=pass (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728084AbgKBH31 (ORCPT + 99 others); Mon, 2 Nov 2020 02:29:27 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:54779 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1727743AbgKBH30 (ORCPT ); Mon, 2 Nov 2020 02:29:26 -0500 X-UUID: 61977ac1706346fc9e706c7ab32b53f0-20201102 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=EwMAk6C90zx3ggLjTVwBgHjheE+if1MCBTaw2ieul20=; b=MJI4YynXNnuMC61TASrV2gd2iOeqQ1Sf9E/FmvR4m3nq0/0Scz6pyi2e+eARahtjaC9vg/mE3h+UizLw4xU/2AmYoDnkgGzORyNHLxZSO8wn5SQ+W7jdErVnW2RAbnwv57vZlsuNupFabzzh90Y5EKGShM1bajzRwUIm1dX/dxg=; X-UUID: 61977ac1706346fc9e706c7ab32b53f0-20201102 Received: from mtkcas11.mediatek.inc [(172.21.101.40)] by mailgw02.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 436479442; Mon, 02 Nov 2020 15:19:03 +0800 Received: from mtkcas10.mediatek.inc (172.21.101.39) by mtkmbs05n2.mediatek.inc (172.21.101.140) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 2 Nov 2020 15:19:01 +0800 Received: from mtkswgap22.mediatek.inc (172.21.77.33) by mtkcas10.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Mon, 2 Nov 2020 15:19:01 +0800 From: Macpaul Lin To: Greg Kroah-Hartman , Rob Herring , Matthias Brugger , Mathias Nyman , Chunfeng Yun , , , , , CC: Ainge Hsu , Eddie Hung , Mediatek WSD Upstream , Macpaul Lin , Macpaul Lin Subject: [PATCH 2/2] usb: host: XHCI: xhci-mtk.c: support mediatek,keep-clock-on Date: Mon, 2 Nov 2020 15:18:49 +0800 Message-ID: <1604301530-31546-2-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 Content-Transfer-Encoding: base64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org U29tZSBwbGF0Zm9ybSBkb3NlIG5vdCBzdXBwb3J0IHR1cm4gb2ZmIGNsb2NrIHdoZW4gc3lzdGVt IHN1c3BlbmRpbmcuDQpXZSBhZG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