From 2970efd18df41906171682f4880a48252f927a62 Mon Sep 17 00:00:00 2001 From: Vincent Palomares Date: Tue, 11 Jun 2019 17:53:15 -0700 Subject: [PATCH] scsi:ufs Async suspend/resume callbacks. The UFS callback is the most time consuming callback in the dpm_resume section of kernel resumes, taking around 30 ms. Making it async improves resume latency by around 20 ms, and helps with decreasing suspend times as well. Bug: 134704391 Change-Id: I708c8a7bc8f2250d6b2365971ccc394c7fbf8896 Signed-off-by: Vincent Palomares --- drivers/scsi/ufs/ufshcd.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c index 61d8ed871024..2a461f989f0b 100755 --- a/drivers/scsi/ufs/ufshcd.c +++ b/drivers/scsi/ufs/ufshcd.c @@ -13185,6 +13185,8 @@ int ufshcd_init(struct ufs_hba *hba, void __iomem *mmio_base, unsigned int irq) ufshcd_add_sysfs_nodes(hba); + device_enable_async_suspend(dev); + return 0; out_remove_scsi_host: