Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp3283422pxy; Sun, 25 Apr 2021 20:18:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxISHxZuKa8bL3+/7KpUZqUa+X2qmnrJKPgwSQ/4Y13/o7KE8UjHcLzZFT5vlfn9nRXSmIB X-Received: by 2002:aa7:8d84:0:b029:1f8:3449:1bc6 with SMTP id i4-20020aa78d840000b02901f834491bc6mr15129610pfr.76.1619407094086; Sun, 25 Apr 2021 20:18:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619407094; cv=none; d=google.com; s=arc-20160816; b=s//rkPlVpUmuEaEwMZRqKmyrELigkh9YUfF8W0dx1KbM6W6GRYJtvpnssUeiX2TpiV hm6ntXyu3Yz087WuQTVVFROp6chSpvl+69ACGFD/KJyXI4XGTL6WZaRoKShsQFOIZPaU fyNrmV2xc/kB8X0o73ClSnEhbsZAtgJiAMFuCM/iEgjlTTpTEq24qLOtVOzYeB7wSag2 V2+J0AIsTcfG7qaRrNJxqH4ehHxL4dNm03Lez/SoNk4Z4qCJeQSb3vFbR1JsLb+/7L18 5ON51bwDfFHW/QYLUrSMzleBiMsXjrddC//akfPnHAdpHpqsdt3w5M4qL0jbnu301Skc smQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:dlp-filter:cms-type :content-transfer-encoding:date:message-id:in-reply-to:cc:to:from :sender:reply-to:subject:mime-version:dkim-signature:dkim-filter; bh=jetcUXmyBIvfGxke4lcV/g8Ksv9OTamwlbKq7aTUCGk=; b=m/PKjK+hON3v9bmH4ytFyBEsllOQsb2yNUNAIbYeYgHG9agXcryMhMpSRot9i/MU13 4ECV+b4/NTfRStB6pmkgvi+V2CrbKaYLrMVj+Mivr1nZiYiZf7N8qeeBhw4uPvaqcZQg hMjDoI0IOSQyDfHW3hUENMIqaKuCI741CEdpi9V1mpq6h6l9rDIt7i1AqBns2HbPJhlW JtqJZGBJsH9errdwvCxg15yJ69W8bcbI8ZWmFoWvwjxZTbmLEc15FaQJgC1PtrHwR957 KA2HP6tZtIRE3Kv17BOi4PlLhkeeU4DO2rtr54tCdlGA4KAU8p1+95VdgaQlC3KQgU1G vHOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=smj0KJNc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d184si14137813pga.273.2021.04.25.20.17.59; Sun, 25 Apr 2021 20:18:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=smj0KJNc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231502AbhDZDR5 (ORCPT + 99 others); Sun, 25 Apr 2021 23:17:57 -0400 Received: from mailout2.samsung.com ([203.254.224.25]:39563 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231583AbhDZDR5 (ORCPT ); Sun, 25 Apr 2021 23:17:57 -0400 Received: from epcas2p1.samsung.com (unknown [182.195.41.53]) by mailout2.samsung.com (KnoxPortal) with ESMTP id 20210426031714epoutp0264db66d7df8da255c835133bce01e957~5Sh4UOw5l2868728687epoutp02V for ; Mon, 26 Apr 2021 03:17:14 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.samsung.com 20210426031714epoutp0264db66d7df8da255c835133bce01e957~5Sh4UOw5l2868728687epoutp02V DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1619407034; bh=jetcUXmyBIvfGxke4lcV/g8Ksv9OTamwlbKq7aTUCGk=; h=Subject:Reply-To:From:To:CC:In-Reply-To:Date:References:From; b=smj0KJNcglSlCFETHIHw/7hKtIVS4kEXt1ekna5t0K1o/0MExK1xcq5D6kyrMyJWj gisTKe/VtRlux45mvGAk+FVftFrqtoorZNw+BfVJS/wYNIRsQ0ZoYFnKBJtkKolQLT E5eDi7axN2kyAQ4C9jVPhfnd7lyj0AZvRePFIpjk= Received: from epsnrtp1.localdomain (unknown [182.195.42.162]) by epcas2p2.samsung.com (KnoxPortal) with ESMTP id 20210426031713epcas2p25c9798e3d2dbcdbcb95c84e2de4dce05~5Sh3zpnbC2133921339epcas2p2F; Mon, 26 Apr 2021 03:17:13 +0000 (GMT) Received: from epsmges2p2.samsung.com (unknown [182.195.40.184]) by epsnrtp1.localdomain (Postfix) with ESMTP id 4FT96w3Fhgz4x9Pp; Mon, 26 Apr 2021 03:17:12 +0000 (GMT) X-AuditID: b6c32a46-e01ff700000025de-ac-608630b804b1 Received: from epcas2p4.samsung.com ( [182.195.41.56]) by epsmges2p2.samsung.com (Symantec Messaging Gateway) with SMTP id 45.57.09694.8B036806; Mon, 26 Apr 2021 12:17:12 +0900 (KST) Mime-Version: 1.0 Subject: RE: [PATCH v1 2/3] scsi: ufs: Cancel rpm_dev_flush_recheck_work during system suspend Reply-To: daejun7.park@samsung.com Sender: Daejun Park From: Daejun Park To: "asutoshd@codeaurora.org" , "ziqichen@codeaurora.org" , "nguyenb@codeaurora.org" , "hongwus@codeaurora.org" , "linux-scsi@vger.kernel.org" , "kernel-team@android.com" , "cang@codeaurora.org" , Daejun Park CC: ALIM AKHTAR , Avri Altman , "James E.J. Bottomley" , "Martin K. Petersen" , Stanley Chu , Bean Huo , Jaegeuk Kim , Chaotian Jing , open list X-Priority: 3 X-Content-Kind-Code: NORMAL In-Reply-To: <1619403878-28330-3-git-send-email-cang@codeaurora.org> X-CPGS-Detection: blocking_info_exchange X-Drm-Type: N,general X-Msg-Generator: Mail X-Msg-Type: PERSONAL X-Reply-Demand: N Message-ID: <20210426031711epcms2p2b64c07ab98332429204dac7ba920abf2@epcms2p2> Date: Mon, 26 Apr 2021 12:17:11 +0900 X-CMS-MailID: 20210426031711epcms2p2b64c07ab98332429204dac7ba920abf2 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" X-Sendblock-Type: AUTO_CONFIDENTIAL X-CPGSPASS: Y X-CPGSPASS: Y CMS-TYPE: 102P X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrMJsWRmVeSWpSXmKPExsWy7bCmhe4Og7YEg55zQhYP5m1js9jbdoLd 4uXPq2wWBx92slh8Wr+M1eLarflsFi8PaVqsehBucfrZO3aLJ+tnMVssurGNyWLHdhGLy7vm sFl0X9/BZrH8+D8mi49dsxktlm69CSRuPmd3EPLYtnsbq8flvl4mj02rOtk8Jiw6wOjRcnI/ i8f39R1sHh+f3mLx6NuyitHj8yY5j/YD3UwBXFE5NhmpiSmpRQqpecn5KZl56bZK3sHxzvGm ZgaGuoaWFuZKCnmJuam2Si4+AbpumTlAPykplCXmlAKFAhKLi5X07WyK8ktLUhUy8otLbJVS C1JyCgwNC/SKE3OLS/PS9ZLzc60MDQyMTIEqE3Iyrv6fy1qwkq1i48EfLA2MH1m6GDk5JARM JG7/2QRkc3EICexglOic38HWxcjBwSsgKPF3hzCIKSyQIHHsqRRIuZCAksT6i7PYQWxhAT2J Ww/XMILYbAI6EtNP3AeLiwgsZpaY9tIExGYW+MokcaFVEWIVr8SM9qdQa6Ulti/fCtbLKeAi 0ftuNhtEXEPix7JeZghbVOLm6rfsMPb7Y/MZIWwRidZ7Z6FqBCUe/NwNFZeUOLb7AxOEXS+x 9c4vRpC3JAR6GCUO77zFCpHQl7jWsRHsCF4BX4kfPRALWARUJbZ82Q21zEXicNN2FogH5CW2 v53DDAoHZgFNifW79EFMCQFliSO3WGDeatj4mx2dzSzAJ9Fx+C9cfMe8J1CnqUms+7meaQKj 8ixEOM9CsmsWwq4FjMyrGMVSC4pz01OLjQqMkKN2EyM4dWu57WCc8vaD3iFGJg7GQ4wSHMxK Irxsu1oThHhTEiurUovy44tKc1KLDzGaAn05kVlKNDkfmD3ySuINTY3MzAwsTS1MzYwslMR5 f6bWJQgJpCeWpGanphakFsH0MXFwSjUwOfrJiNRNjEg31H0W9HjexYlzC28UKR6+GlF3+Vh7 9pxDDHG/maKzt03L85yg2berhPN80ZYjnAvYpztHr10SNvtNw6112vddzed16Is4/k5bErnP 1SHks/USluJ3RssF+k44L1C6Xc5w+cyX/1PW8s/ZYTIxIerIR+uJCWIneV5/Mb4o9fSkeuq6 WF4ZjkOq1/UTUxq3vbP5uOMF477Wd686mUy1uDIP7dV3tTuS3qt9kdW+4pm0UoSAAG/tqr2G yyqOn+iZoCy1/qn/iUUz+S/myhwuXvo2+jPDpMg0868XrKonVnJ5bO3/u7Pz0e9o75On/+pH 7ZAK2Tw77VrKJp70Oz7fpBjmy7oHzG7aocRSnJFoqMVcVJwIAA4uq/xmBAAA DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20210426022700epcas2p298d2b9e6dd30781db9bf1e998f80eca1 References: <1619403878-28330-3-git-send-email-cang@codeaurora.org> <1619403878-28330-1-git-send-email-cang@codeaurora.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Can Guo, >diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c >index 7ab6b12..090b654 100644 >--- a/drivers/scsi/ufs/ufshcd.c >+++ b/drivers/scsi/ufs/ufshcd.c >@@ -9058,11 +9058,12 @@ int ufshcd_system_suspend(struct ufs_hba *hba) > if (!hba->is_powered) > return 0; > >+ cancel_delayed_work_sync(&hba->rpm_dev_flush_recheck_work); >+ > if ((ufs_get_pm_lvl_to_dev_pwr_mode(hba->spm_lvl) == > hba->curr_dev_pwr_mode) && > (ufs_get_pm_lvl_to_link_pwr_state(hba->spm_lvl) == >- hba->uic_link_state) && >- !hba->dev_info.b_rpm_dev_flush_capable) I think it should not be removed. It prevents power drain when runtime suspend and system suspend have same power mode. Thanks, Daejun