Message ID | 20210709065711.25195-3-chanho61.park@samsung.com |
---|---|
State | New |
Headers | show |
Series | [01/15] scsi: ufs: add quirk to handle broken UIC command | expand |
> > + /* > > + * This quirk needs to be enabled if the host controller cannot > > + * support interface configuration. > > + */ > > + UFSHCD_QUIRK_SKIP_INTERFACE_CONFIGURATION = 1 << 16, > May be UFSHCD_QUIRK_SKIP_PH_CONFIGURATION This can explain more specific meaning. I'll apply your review v2 patchset. Thanks. Best Regards, Chanho Park
diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c index 9702086e9860..3451b335f2b4 100644 --- a/drivers/scsi/ufs/ufshcd.c +++ b/drivers/scsi/ufs/ufshcd.c @@ -7988,6 +7988,9 @@ static int ufshcd_probe_hba(struct ufs_hba *hba, bool async) if (ret) goto out; + if (hba->quirks & UFSHCD_QUIRK_SKIP_INTERFACE_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 e67b1fcfe1a2..fe523cbd68dd 100644 --- a/drivers/scsi/ufs/ufshcd.h +++ b/drivers/scsi/ufs/ufshcd.h @@ -573,6 +573,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 interface configuration. + */ + UFSHCD_QUIRK_SKIP_INTERFACE_CONFIGURATION = 1 << 16, }; enum ufshcd_caps {