mirror of https://gitee.com/openkylin/linux.git
scsi: ufs-pci: Enable UFSHCD_CAP_RPM_AUTOSUSPEND for Intel controllers
Enable runtime PM auto-suspend by default for Intel host controllers. Link: https://lore.kernel.org/r/20201207083120.26732-5-adrian.hunter@intel.com Signed-off-by: Adrian Hunter <adrian.hunter@intel.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
parent
044d5bda71
commit
dd78bdb6f8
|
@ -148,6 +148,8 @@ static int ufs_intel_common_init(struct ufs_hba *hba)
|
|||
{
|
||||
struct intel_host *host;
|
||||
|
||||
hba->caps |= UFSHCD_CAP_RPM_AUTOSUSPEND;
|
||||
|
||||
host = devm_kzalloc(hba->dev, sizeof(*host), GFP_KERNEL);
|
||||
if (!host)
|
||||
return -ENOMEM;
|
||||
|
|
Loading…
Reference in New Issue