summaryrefslogtreecommitdiffstats
path: root/drivers/scsi
diff options
context:
space:
mode:
authorAdrian Hunter <adrian.hunter@intel.com>2020-12-07 09:31:20 +0100
committerMartin K. Petersen <martin.petersen@oracle.com>2020-12-09 17:34:20 +0100
commitdd78bdb6f810bdcb173b42379af558c676c8e0aa (patch)
tree7fa011fe5abbc9a40e823b0b5c054cd0b0fad91c /drivers/scsi
parentscsi: ufs-pci: Fix recovery from hibernate exit errors for Intel controllers (diff)
downloadlinux-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.c2
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;