summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAsutosh Das <quic_asutoshd@quicinc.com>2023-01-13 12:48:40 -0800
committerMartin K. Petersen <martin.petersen@oracle.com>2023-01-13 21:03:36 -0500
commit0cab4023ec7b49b18145f74ab8389678d6d58878 (patch)
treefbfc78705a6b83c29a252dd4209c9f5b42cc494a /include
parent305a357d3595d39be7c001f72e135bc94cbd85da (diff)
downloadlinux-stable-0cab4023ec7b49b18145f74ab8389678d6d58878.tar.gz
linux-stable-0cab4023ec7b49b18145f74ab8389678d6d58878.tar.bz2
linux-stable-0cab4023ec7b49b18145f74ab8389678d6d58878.zip
scsi: ufs: core: Defer adding host to SCSI if MCQ is supported
If MCQ support is present, enabling it after MCQ support has been configured would require reallocating tags and memory. It would also free up the already allocated memory in Single Doorbell Mode. So defer invoking scsi_add_host() until MCQ is configured. Co-developed-by: Can Guo <quic_cang@quicinc.com> Signed-off-by: Can Guo <quic_cang@quicinc.com> Signed-off-by: Asutosh Das <quic_asutoshd@quicinc.com> Reviewed-by: Bart Van Assche <bvanassche@acm.org> Reviewed-by: Manivannan Sadhasivam <mani@kernel.org> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'include')
-rw-r--r--include/ufs/ufshcd.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/ufs/ufshcd.h b/include/ufs/ufshcd.h
index 514687d2de54..a343bd4bc0eb 100644
--- a/include/ufs/ufshcd.h
+++ b/include/ufs/ufshcd.h
@@ -996,6 +996,7 @@ struct ufs_hba {
u32 luns_avail;
bool complete_put;
bool ext_iid_sup;
+ bool scsi_host_added;
bool mcq_sup;
};