scsi: ufs: core: Add support for reinitializing the UFS device
authorManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Thu, 22 Dec 2022 14:09:57 +0000 (19:39 +0530)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 12 Jan 2023 02:49:34 +0000 (21:49 -0500)
commit96a7141da33207672d7a354c885d65af4f0f9b6c
tree48cefb7e7d3d0ceb1f30d4b4d5270f4a05049522
parentc2c38c573a2e6184f9acd10e98305d3cb5f1c62b
scsi: ufs: core: Add support for reinitializing the UFS device

Some platforms like Qcom, requires the UFS device to be reinitialized after
switching to maximum gear speed. So add support for that in UFS core by
introducing a new quirk (UFSHCD_CAP_REINIT_AFTER_MAX_GEAR_SWITCH) and doing
the reinitialization, if the quirk is enabled by the controller driver.

Suggested-by: Can Guo <quic_cang@quicinc.com>
Tested-by: Andrew Halaney <ahalaney@redhat.com> # Qdrive3/sa8540p-ride
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/ufs/core/ufshcd.c
include/ufs/ufshcd.h