aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjongmin jeong <[email protected]>2021-10-18 21:42:03 +0900
committerMartin K. Petersen <[email protected]>2021-10-27 23:10:10 -0400
commit10fb4f87438d99b2ef06aea38ca2f0454725e8b5 (patch)
treede974abeea40e85e0318f37003ea8f7156dfb504
parenta22bcfdbf10b4182e94ae98a641efa676170feaf (diff)
scsi: ufs: Add quirk to enable host controller without PH configuration
Samsung ExynosAuto v9 SoC virtual hosts do not support device management. Add a quirk to skip the physical host interface configuration part that cannot be performed in the virtual host. Link: https://lore.kernel.org/r/[email protected] Cc: James E.J. Bottomley <[email protected]> Cc: Martin K. Petersen <[email protected]> Cc: Bart Van Assche <[email protected]> Suggested-by: Alim Akhtar <[email protected]> Reviewed-by: Alim Akhtar <[email protected]> Signed-off-by: jongmin jeong <[email protected]> Signed-off-by: Chanho Park <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
-rw-r--r--drivers/scsi/ufs/ufshcd.c3
-rw-r--r--drivers/scsi/ufs/ufshcd.h6
2 files changed, 9 insertions, 0 deletions
diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c
index dc7ce9eef0c7..f5ba8f953b87 100644
--- a/drivers/scsi/ufs/ufshcd.c
+++ b/drivers/scsi/ufs/ufshcd.c
@@ -8031,6 +8031,9 @@ static int ufshcd_probe_hba(struct ufs_hba *hba, bool init_dev_params)
if (ret)
goto out;
+ if (hba->quirks & UFSHCD_QUIRK_SKIP_PH_CONFIGURATION)
+ goto out;
+
/* Debug counters initialization */
ufshcd_clear_dbg_ufs_stats(hba);
diff --git a/drivers/scsi/ufs/ufshcd.h b/drivers/scsi/ufs/ufshcd.h
index e67181a013e3..4ceb3c7e65b4 100644
--- a/drivers/scsi/ufs/ufshcd.h
+++ b/drivers/scsi/ufs/ufshcd.h
@@ -595,6 +595,12 @@ enum ufshcd_quirks {
* support UIC command
*/
UFSHCD_QUIRK_BROKEN_UIC_CMD = 1 << 15,
+
+ /*
+ * This quirk needs to be enabled if the host controller cannot
+ * support physical host configuration.
+ */
+ UFSHCD_QUIRK_SKIP_PH_CONFIGURATION = 1 << 16,
};
enum ufshcd_caps {