Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp1042375pxx; Tue, 27 Oct 2020 07:01:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyMAO/tQL06Fxp0lWsA53l+N2bHg3A1e6PyRM9VQJk0Zc/bwHBv/AzaP4gkzyue3MqzgjL0 X-Received: by 2002:a50:e705:: with SMTP id a5mr2401143edn.29.1603807314051; Tue, 27 Oct 2020 07:01:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603807314; cv=none; d=google.com; s=arc-20160816; b=qzEme4tNkl8ShuASI0WdQ327mwP25uEvByFbBIcnQ3wWn5745mGgekEoGoeOTczF0j bFfJZ8O1jaUxCbl6LngPhN6PVGAhdEO42UdYhH0HW6C6sxiZ6OasD+6LLNo4xrzPmDg3 jM0cXJePPHgolVDOjdgE9sNPcicy58cxPacni8tbecBoCjMvkO+tHMezhQ6cSL1tTXri stqBNXy+sDbUefkY9wUlBi6IkX6/veLsEMUh0IbluQX/XdkihijtJ0ZhN6XofyEq+xWJ OiBWaeg8cwvJWv01sTLn7mu0iAGFpvSm1SCTUPJouAMHrXTUsjCrZVeKSY7Oa5fJ0w9I yCCA== 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:date:cc:to:from:subject:message-id :dkim-signature; bh=EzDD5L9RbFsFk8w8HPKQxkvcZEHqE3qGEfd/0qTNB1U=; b=g98TGgDZLkT+DrwbDLHzR0XldzLuxKisIayMOllDX4nsS39bkqH2nzEvV+q7eKatAA IP96f3Myk4y9B5SEPx0ynBFdgc5S7llgbPbC73J1xQ0cc8ujKwJACkXSyY8woSUZl/us dB6S4bPX52kIwCxR6uv4OvzXDAVufoKzIkS/ud+w0cnPb8Y/LX4mV3cU5GbnMEJ0SoBE u5ap61cgq0vcsdDt+R8Ns0Zkdf7aYFB8WcXno960KoVVdSr/SHUvy/i4i6oJYng7o/Qg Bb+4veI9lJyfqpOrZaLmx8+fpM6Sf+gPSFayJRBjfKaup0busqgMyjf/QJmeix0ySDMS 7xjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=PoB8GIib; 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 k25si1293979ejk.65.2020.10.27.07.01.30; Tue, 27 Oct 2020 07:01:54 -0700 (PDT) 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=PoB8GIib; 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 S2439050AbgJ0DKT (ORCPT + 99 others); Mon, 26 Oct 2020 23:10:19 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:44527 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S2438881AbgJ0DKQ (ORCPT ); Mon, 26 Oct 2020 23:10:16 -0400 X-UUID: 521303167da64ede86a4c148edf69fe4-20201027 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:MIME-Version:Content-Type:References:In-Reply-To:Date:CC:To:From:Subject:Message-ID; bh=EzDD5L9RbFsFk8w8HPKQxkvcZEHqE3qGEfd/0qTNB1U=; b=PoB8GIibTnjJUf40dj++V2uAWuySkjJlwgJxiMLERIhfeHKONaDsFMEhfQYI5sMJ1CxBlVR8bRfBkrq8lJya1ABJSu6xydR8KB1Dl0I427XgKffN2705COZh2VIY9h7ulGROBHKzL/2eyMWc1kHdnB9aEkfR2LyAAxmnxALCGro=; X-UUID: 521303167da64ede86a4c148edf69fe4-20201027 Received: from mtkcas10.mediatek.inc [(172.21.101.39)] 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 1939621523; Tue, 27 Oct 2020 11:10:13 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs02n1.mediatek.inc (172.21.101.77) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 27 Oct 2020 11:10:11 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkcas08.mediatek.inc (172.21.101.126) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 27 Oct 2020 11:10:11 +0800 Received: from [172.21.77.33] (172.21.77.33) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Tue, 27 Oct 2020 11:10:11 +0800 Message-ID: <1603768211.2104.8.camel@mtkswgap22> Subject: Re: [PATCH] scsi: ufs: Make sure clk scaling happens only when hba is runtime ACTIVE From: Stanley Chu To: Can Guo CC: , , , , , , , , Alim Akhtar , Avri Altman , "James E.J. Bottomley" , "Martin K. Petersen" , Bean Huo , "Bart Van Assche" , Date: Tue, 27 Oct 2020 11:10:11 +0800 In-Reply-To: <67c4ae5998765daa674a4df696d8d673@codeaurora.org> References: <1600758548-28576-1-git-send-email-cang@codeaurora.org> <67c4ae5998765daa674a4df696d8d673@codeaurora.org> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.3-0ubuntu6 MIME-Version: 1.0 X-MTK: N Content-Transfer-Encoding: base64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SGkgQ2FuLA0KDQ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