mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-02 23:27:06 +00:00
scsi: ufs: core: Add UFSHCD_QUIRK_HIBERN_FASTAUTO
Add UFSHCD_QUIRK_HIBERN_FASTAUTO quirk for host controllers which supports auto-hibernate the capability but only FASTAUTO mode. Link: https://lore.kernel.org/r/20220603110524.1997825-4-yoshihiro.shimoda.uh@renesas.com Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
parent
6554400d6f
commit
2f11bbc2c7
2 changed files with 13 additions and 2 deletions
|
@ -4260,8 +4260,13 @@ static int ufshcd_get_max_pwr_mode(struct ufs_hba *hba)
|
||||||
if (hba->max_pwr_info.is_valid)
|
if (hba->max_pwr_info.is_valid)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
if (hba->quirks & UFSHCD_QUIRK_HIBERN_FASTAUTO) {
|
||||||
|
pwr_info->pwr_tx = FASTAUTO_MODE;
|
||||||
|
pwr_info->pwr_rx = FASTAUTO_MODE;
|
||||||
|
} else {
|
||||||
pwr_info->pwr_tx = FAST_MODE;
|
pwr_info->pwr_tx = FAST_MODE;
|
||||||
pwr_info->pwr_rx = FAST_MODE;
|
pwr_info->pwr_rx = FAST_MODE;
|
||||||
|
}
|
||||||
pwr_info->hs_rate = PA_HS_MODE_B;
|
pwr_info->hs_rate = PA_HS_MODE_B;
|
||||||
|
|
||||||
/* Get the connected lane count */
|
/* Get the connected lane count */
|
||||||
|
|
|
@ -583,6 +583,12 @@ enum ufshcd_quirks {
|
||||||
* 64-bit addressing supported capability but it doesn't work.
|
* 64-bit addressing supported capability but it doesn't work.
|
||||||
*/
|
*/
|
||||||
UFSHCD_QUIRK_BROKEN_64BIT_ADDRESS = 1 << 17,
|
UFSHCD_QUIRK_BROKEN_64BIT_ADDRESS = 1 << 17,
|
||||||
|
|
||||||
|
/*
|
||||||
|
* This quirk needs to be enabled if the host controller has
|
||||||
|
* auto-hibernate capability but it's FASTAUTO only.
|
||||||
|
*/
|
||||||
|
UFSHCD_QUIRK_HIBERN_FASTAUTO = 1 << 18,
|
||||||
};
|
};
|
||||||
|
|
||||||
enum ufshcd_caps {
|
enum ufshcd_caps {
|
||||||
|
|
Loading…
Reference in a new issue