Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp89902ybz; Tue, 21 Apr 2020 15:59:07 -0700 (PDT) X-Google-Smtp-Source: APiQypKVVUiokN+bMaIjYBp+I/HaCren0SKKSQwj7XTKt8z6G36pjx1AQF7aPTndS9CRjpQ7Zp/O X-Received: by 2002:a17:906:4cd9:: with SMTP id q25mr24097304ejt.126.1587509947647; Tue, 21 Apr 2020 15:59:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587509947; cv=none; d=google.com; s=arc-20160816; b=DBsYCYmgFaACP3kHCAl+Ji2qX+oJl1ETuR7oQq9Lxe/ao6kDiZItsI3FQAQmJeVMpb oH8AK80mRO9HA5TxJ0yS6HXYHkLeEqaTfK0LexiQwRymvjoCEa+4jgumnEXlMT3XqVS9 SEp+Nn7pLN7qoaf82ai/C5kx26LrsnSMGrvU3AOmjzHTkjzroi1K05U7FIkNGyaYjvza folR4nyEZyo2iX2KP+8BVg30gL+mFW0vUvM2XW+ZAaUM01OfHqsUPj9ewDZaEPjndS94 c5b1u7CuvA9ANDhbERpqtzyjNvfmK+pywOyjL8Y6zDjretwjT/FzlODgnyoxBnBZCepH 6VZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:references :in-reply-to:message-id:date:subject:cc:to:from; bh=Xaum6qGih7b/ZSj6GS+VZDnrEOMoEAwAY/NVoOSfRUY=; b=aqd469+6TEoo7SXl/gI7ceF6xjoJAfidaD04EQ2L31rz4nZjXp6wenwsHYpehAo5BC JGPj9OJfmbASHs7LmE+64J1wer/w50Eein2Qp3zqackXGgTC+tpAv1GHoEv83qEajPIX 0CScIXsyyowFa20lWKFTVFWYS3IX71rAs6rY8ePTpXupZ1iIkobeeR0JqNdMCmAnFyQ/ meq7oBsseVA3iXKmWmg0Ram0oA0X6GzmEgXsS2tk1RvvNzDYv9hZushjArQyJHQdz2WM DBws9Ho6lD/d1T1FcTvwgCB9gTcRz6Blk2zRb0XXug+uVD6LEbIluM4hv1TQVkazjLYn hoog== 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 cm14si2263511edb.546.2020.04.21.15.58.44; Tue, 21 Apr 2020 15:59:07 -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 S1726421AbgDUWyn (ORCPT + 99 others); Tue, 21 Apr 2020 18:54:43 -0400 Received: from alexa-out-sd-02.qualcomm.com ([199.106.114.39]:22874 "EHLO alexa-out-sd-02.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726405AbgDUWyk (ORCPT ); Tue, 21 Apr 2020 18:54:40 -0400 Received: from unknown (HELO ironmsg04-sd.qualcomm.com) ([10.53.140.144]) by alexa-out-sd-02.qualcomm.com with ESMTP; 21 Apr 2020 15:54:40 -0700 Received: from asutoshd-linux1.qualcomm.com ([10.46.160.39]) by ironmsg04-sd.qualcomm.com with ESMTP; 21 Apr 2020 15:54:40 -0700 Received: by asutoshd-linux1.qualcomm.com (Postfix, from userid 92687) id 190EB20A3C; Tue, 21 Apr 2020 15:54:40 -0700 (PDT) From: Asutosh Das To: cang@codeaurora.org, martin.petersen@oracle.com, Avri.Altman@wdc.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 v2 3/3] ufs-qcom: scsi: configure write booster type Date: Tue, 21 Apr 2020 15:54:18 -0700 Message-Id: <90ee50d5123e7ef4f04fba2ba281bb2e2e9ce1e5.1587509578.git.asutoshd@codeaurora.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: References: In-Reply-To: <6519cd576299d5881129b0e48870a53a0afc7835.1587509578.git.asutoshd@codeaurora.org> References: <6519cd576299d5881129b0e48870a53a0afc7835.1587509578.git.asutoshd@codeaurora.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Configure the WriteBooster type to preserve user-space mode. This would ensure that no user-space capacity is reduced when write booster is enabled. Enable WB for Qualcomm platform. 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 19aa5c4..6e4000d 100644 --- a/drivers/scsi/ufs/ufs-qcom.c +++ b/drivers/scsi/ufs/ufs-qcom.c @@ -1071,6 +1071,7 @@ static void ufs_qcom_set_caps(struct ufs_hba *hba) hba->caps |= UFSHCD_CAP_CLK_GATING | UFSHCD_CAP_HIBERN8_WITH_CLK_GATING; hba->caps |= UFSHCD_CAP_CLK_SCALING; hba->caps |= UFSHCD_CAP_AUTO_BKOPS_SUSPEND; + hba->caps |= UFSHCD_CAP_WB_EN; 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.