From 7342df160f3eacf5c0da62b99cbe310c10b35225 Mon Sep 17 00:00:00 2001 From: Asutosh Das Date: Thu, 13 Feb 2020 18:13:18 -0800 Subject: [PATCH] scsi: ufshcd-qti: enable runtime-pm Enable runtime power-management with an idle time of 3seconds. Change-Id: I0716a5eca20e24cc626422b6f7f3d8f0242a50d2 Signed-off-by: Asutosh Das Signed-off-by: Can Guo --- drivers/scsi/ufs/ufshcd-qti.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/scsi/ufs/ufshcd-qti.c b/drivers/scsi/ufs/ufshcd-qti.c index ef655d3bd0cb..2405844354d7 100644 --- a/drivers/scsi/ufs/ufshcd-qti.c +++ b/drivers/scsi/ufs/ufshcd-qti.c @@ -5582,6 +5582,7 @@ static int ufshcd_slave_configure(struct scsi_device *sdev) if (hba->scsi_cmd_timeout) blk_queue_rq_timeout(q, hba->scsi_cmd_timeout * HZ); + sdev->rpm_autosuspend = 1; ufshcd_crypto_setup_rq_keyslot_manager(hba, q); return 0; } @@ -8427,6 +8428,7 @@ static struct scsi_host_template ufshcd_driver_template = { .track_queue_depth = 1, .max_segment_size = PRDT_DATA_BYTE_COUNT_MAX, .dma_boundary = PAGE_SIZE - 1, + .rpm_autosuspend_delay = UFSHCD_AUTO_SUSPEND_DELAY_MS, }; static int ufshcd_config_vreg_load(struct device *dev, struct ufs_vreg *vreg,