summaryrefslogtreecommitdiffstats
path: root/drivers/ufs/host/ufs-qcom.h
diff options
context:
space:
mode:
authorCan Guo <quic_cang@quicinc.com>2023-12-02 04:36:09 -0800
committerMartin K. Petersen <martin.petersen@oracle.com>2023-12-13 22:37:21 -0500
commit55820a7f2cb9b9a4b603cc22dcf0ca5331f86d25 (patch)
tree38630f8b38ecba4748c69794e21d7b6f571f4fa5 /drivers/ufs/host/ufs-qcom.h
parentdc604b4c9d6007c0a03ad90296e849bc38c0d2cc (diff)
downloadlinux-55820a7f2cb9b9a4b603cc22dcf0ca5331f86d25.tar.gz
linux-55820a7f2cb9b9a4b603cc22dcf0ca5331f86d25.tar.bz2
linux-55820a7f2cb9b9a4b603cc22dcf0ca5331f86d25.zip
scsi: ufs: ufs-qcom: Setup host power mode during init
Setup host power mode and its limitations during UFS host driver init to avoid repetitive work during every power mode change. Acked-by: Andrew Halaney <ahalaney@redhat.com> Reviewed-by: Nitin Rawat <quic_nitirawa@quicinc.com> Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> Co-developed-by: Bao D. Nguyen <quic_nguyenb@quicinc.com> Signed-off-by: Bao D. Nguyen <quic_nguyenb@quicinc.com> Signed-off-by: Can Guo <quic_cang@quicinc.com> Link: https://lore.kernel.org/r/1701520577-31163-4-git-send-email-quic_cang@quicinc.com Tested-by: Neil Armstrong <neil.armstrong@linaro.org> # on SM8550-QRD Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/ufs/host/ufs-qcom.h')
-rw-r--r--drivers/ufs/host/ufs-qcom.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/ufs/host/ufs-qcom.h b/drivers/ufs/host/ufs-qcom.h
index 82cd1436f42d..11419ebd2082 100644
--- a/drivers/ufs/host/ufs-qcom.h
+++ b/drivers/ufs/host/ufs-qcom.h
@@ -238,6 +238,7 @@ struct ufs_qcom_host {
struct gpio_desc *device_reset;
+ struct ufs_host_params host_params;
u32 phy_gear;
bool esi_enabled;