Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp852826pxx; Tue, 27 Oct 2020 01:57:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzw+vhDhKDw5Mw/QdO7AvSr+b38t7CniTGsO+DPm0zWujd7bd0WA3UtihERo840lsyMz0/T X-Received: by 2002:a17:906:af87:: with SMTP id mj7mr1357264ejb.178.1603789053275; Tue, 27 Oct 2020 01:57:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603789053; cv=none; d=google.com; s=arc-20160816; b=SkvAOCxH8WD2aiuEr1sfPED+0Ly1tfN4f0adY/LlvUMnI0zqQE2GjCqu32clNRNEv1 Pz7lHvj+BanFl94G2V7jmOoQvUjL2R+DIEO8NED3H3LRqxQj0ar9Cck9NyHMGJexI4HT PrVjTKU7TJq86wNOGLUFBRu2aUbXx97b3EW4mSUkdt8ullrM8eGcoXTMnugW6pwdoPNj DPxxw9pHXE5JsMSLl2sKUiqjv9fYwiW+zQIQzTuSyc8ITDUAzUYbJxA3FqvsOu6tZPlc lwzsL9YTcck13xEv+Oo0HVvFLEfRkUSTl13gw4GbLWGZT36FqTWOpnylWuckjOeLLo1W DTGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:references:in-reply-to :message-id:date:subject:cc:to:from; bh=p9DNtdxTUUgKCsZXYdQ/QEZMM8JOBP/SxIT//5IOB+M=; b=rU6S3NynCDd3NbSf4DPhpeTvuBjTmG4i5h3jKefMqfqwyIwXBr9BKeRkuAC0jkLCc+ hQuJDs5n99ynt/KLICnDstyQ7y3iJzuN3+EsVq6V++y0ntO35YV6SPiPUFL/Bg4gC8C0 63CReOxPPEr9Hf8llimJRDfG1vCpkXy4YVJNY+WucUYSiRAWB3phdryKe8joaJN1EKj6 unNIv+4LZndzxUGMfrTQmlRpEjGa1rQN2m1/I45mwCGZpc0Nd8K+GbnfO3leA08/nhdf l7tfueAh1ef5FaH0vX0uaN/nv/sycnSAB2br0IM0tUyedX1yIKCi711nRheNwcknEkFo J5qA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q18si607556eji.143.2020.10.27.01.57.11; Tue, 27 Oct 2020 01:57:33 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2406272AbgJZXan (ORCPT + 99 others); Mon, 26 Oct 2020 19:30:43 -0400 Received: from alexa-out-sd-02.qualcomm.com ([199.106.114.39]:25462 "EHLO alexa-out-sd-02.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2406244AbgJZXam (ORCPT ); Mon, 26 Oct 2020 19:30:42 -0400 Received: from unknown (HELO ironmsg-SD-alpha.qualcomm.com) ([10.53.140.30]) by alexa-out-sd-02.qualcomm.com with ESMTP; 26 Oct 2020 16:30:42 -0700 X-QCInternal: smtphost Received: from asutoshd-linux1.qualcomm.com ([10.46.160.39]) by ironmsg-SD-alpha.qualcomm.com with ESMTP; 26 Oct 2020 16:30:42 -0700 Received: by asutoshd-linux1.qualcomm.com (Postfix, from userid 92687) id 3FACC20DDC; Mon, 26 Oct 2020 16:30:42 -0700 (PDT) From: Asutosh Das To: cang@codeaurora.org, martin.petersen@oracle.com, linux-scsi@vger.kernel.org Cc: Asutosh Das , linux-arm-msm@vger.kernel.org, Andy Gross , Bjorn Andersson , Alim Akhtar , Avri Altman , "James E.J. Bottomley" , linux-kernel@vger.kernel.org (open list) Subject: [PATCH v1 2/2] ufs: qcom: Enable aggressive power collapse for ufs hba Date: Mon, 26 Oct 2020 16:30:09 -0700 Message-Id: <0716681006075e9eebbf0decd28505824e22d637.1603754932.git.asutoshd@codeaurora.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: References: In-Reply-To: References: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Enabling this capability to let hba power-collapse more often to save power. Signed-off-by: Asutosh Das --- drivers/scsi/ufs/ufs-qcom.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/scsi/ufs/ufs-qcom.c b/drivers/scsi/ufs/ufs-qcom.c index f9d6ef3..9a19c6d 100644 --- a/drivers/scsi/ufs/ufs-qcom.c +++ b/drivers/scsi/ufs/ufs-qcom.c @@ -863,6 +863,7 @@ static void ufs_qcom_set_caps(struct ufs_hba *hba) hba->caps |= UFSHCD_CAP_AUTO_BKOPS_SUSPEND; hba->caps |= UFSHCD_CAP_WB_EN; hba->caps |= UFSHCD_CAP_CRYPTO; + hba->caps |= UFSHCD_CAP_AGGR_POWER_COLLAPSE; if (host->hw_ver.major >= 0x2) { host->caps = UFS_QCOM_CAP_QUNIPRO | -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project.