diff options
author | Adrian Hunter <adrian.hunter@intel.com> | 2020-12-07 09:31:20 +0100 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2020-12-09 17:34:20 +0100 |
commit | dd78bdb6f810bdcb173b42379af558c676c8e0aa (patch) | |
tree | 7fa011fe5abbc9a40e823b0b5c054cd0b0fad91c /drivers/scsi | |
parent | scsi: ufs-pci: Fix recovery from hibernate exit errors for Intel controllers (diff) | |
download | linux-dd78bdb6f810bdcb173b42379af558c676c8e0aa.tar.xz linux-dd78bdb6f810bdcb173b42379af558c676c8e0aa.zip |
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>
Diffstat (limited to 'drivers/scsi')
-rw-r--r-- | drivers/scsi/ufs/ufshcd-pci.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/scsi/ufs/ufshcd-pci.c b/drivers/scsi/ufs/ufshcd-pci.c index 888d8c9ca3a5..fadd566025b8 100644 --- a/drivers/scsi/ufs/ufshcd-pci.c +++ b/drivers/scsi/ufs/ufshcd-pci.c @@ -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; |