Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp290454pxu; Wed, 2 Dec 2020 23:30:19 -0800 (PST) X-Google-Smtp-Source: ABdhPJxf5kKvMigCSydn7kFj6iQsn+xM3yRwBd4vyq3QsAHLWUMX4AVr14FeT5NubTFsSxe/T8+e X-Received: by 2002:a17:906:17d1:: with SMTP id u17mr1387976eje.229.1606980619659; Wed, 02 Dec 2020 23:30:19 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1606980619; cv=pass; d=google.com; s=arc-20160816; b=fN5w8rvIjl0bqvlFBQQYQlmS9vodzHzlgDZ3gmqg/eCB9YEMJAyEkEZuuJHP1Fqy23 o015ijIemcc5SlAjvg5c1ZpPz5g8YmxhbbM/oZVnM+dN/w+qUXeU5K2XyJ+574adPicl XT74PMsAQaCWMfe6kXjDzV0qCDirEBzBFnZ6ueNc1z8A9dYEP0foG8kkqH82n/6wl4Qc tv+q6Lrx8jQGrIGPW/oUir4kMRNQPg2hddutGVPd7iQbT1ehPGCCCBva7rD3OXgWvH+x fAy//Hnldy1JMciwDcouYGMFHLzumcyC+bRa5vRUQ+EjubwdNk0CP1sojDb3Y74ZrZ5u yM3w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :wdcipoutbound:content-language:accept-language:in-reply-to :references:message-id:date:thread-index:thread-topic:subject:cc:to :from:dkim-signature:ironport-sdr:dkim-signature; bh=xns4Y9pHSsoPS1zlMGhe8Kd07vxUDPf2MdOfyN/HrVQ=; b=H4XbtsVQPzu5W1J4eCkEgX6IdJh1BTj0i+1ub//Fza9AIO+0rE3DoLkr6GMl/OMCtm iw/o4APvSWPm5SYQ3a+jAVNOUUac4vlP1JdPkhYJRaQ6X1pzzXOdZB/XQ2WVx7mcNeQA l6bopCPjgZP276bF3/I8Aegf2MDmRnnQEUv2wEZzLSfqPsOkZQ2Faa/lU+8KRTbVTcZC qVNkGSNjR0Q3MZCHg8Slljugb+8tJWW762VyRUVhqW6ypEOKp5PvoGLnBhvKHxlXWyJ1 d4JAVoIGBV5UViG4ANoS//9OKLQez0ZmgP/6fa+dbS9DjLUnhjfgEwTTpH9Dc6RJo3zZ VIVA== ARC-Authentication-Results: i=2; mx.google.com; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=OD4PZqzd; dkim=pass header.i=@sharedspace.onmicrosoft.com header.s=selector2-sharedspace-onmicrosoft-com header.b=kuIONMoB; arc=pass (i=1 spf=pass spfdomain=wdc.com dkim=pass dkdomain=wdc.com dmarc=pass fromdomain=wdc.com); 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=fail (p=NONE sp=NONE dis=NONE) header.from=wdc.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y12si638539ejw.561.2020.12.02.23.29.57; Wed, 02 Dec 2020 23:30:19 -0800 (PST) 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=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=OD4PZqzd; dkim=pass header.i=@sharedspace.onmicrosoft.com header.s=selector2-sharedspace-onmicrosoft-com header.b=kuIONMoB; arc=pass (i=1 spf=pass spfdomain=wdc.com dkim=pass dkdomain=wdc.com dmarc=pass fromdomain=wdc.com); 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=fail (p=NONE sp=NONE dis=NONE) header.from=wdc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388147AbgLCH2j (ORCPT + 99 others); Thu, 3 Dec 2020 02:28:39 -0500 Received: from esa4.hgst.iphmx.com ([216.71.154.42]:39916 "EHLO esa4.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388202AbgLCH2i (ORCPT ); Thu, 3 Dec 2020 02:28:38 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1606980517; x=1638516517; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=xns4Y9pHSsoPS1zlMGhe8Kd07vxUDPf2MdOfyN/HrVQ=; b=OD4PZqzdUPIjUmho3LKGbiUWVQ4h/gCPGM4Oy+JYm5a3pHhX4MKdvNlq 4Ib+vaQvcq8lr7zuQ4DNJ/Rrptuh98Rv6ur6FLeSH7zhoMh7jdhJMW2gp qMWf+jPdh3usKS+H5/yWlqIfmVku21aRvsnAM+0mAOS+atangALLYA0/k sxtbHGOM7ZcPmQqg/kuWqPJRFAiDkFG/mbkHFJvx6kfVHlF09RC6oiskN pMPYkfS7e7OlW1lqs0ldqkiwz/4QnL261ktP1nHsgo9I3EtkLEjX4bFRc A5G9CCZyxlQ6QTE5lnJCGH3Nhg5h7xUky9en2i3mcdNID/v9mMxqxm4eI g==; IronPort-SDR: lzEJgRdXxaU4aFViYLSgbqSfRMyi/DcqpbB5vSreNJrnALSmHPGw1+bHCTCojsmFuptdOKEzNL g5wL6xxuY488Qbt+2QXNE33HR50C0H05WGg98x7EpCkrH/QLFHjT+KvDJAlPOmksJe8DG5/+t+ ujMfLEs44cdbTi+otexMhtjd/Dm1p8Yicm5oEo2ANgvAcQuaKq50MKMOeWdx1tebI81cCXt6vy nB4l9D6OTcm6we08YSCQXw10tXWv0W5VfyJrow/lONd5xe5mBO+pzannZtMgRkFDaTHaP4pTGE KlA= X-IronPort-AV: E=Sophos;i="5.78,388,1599494400"; d="scan'208";a="154181850" Received: from mail-bn8nam12lp2173.outbound.protection.outlook.com (HELO NAM12-BN8-obe.outbound.protection.outlook.com) ([104.47.55.173]) by ob1.hgst.iphmx.com with ESMTP; 03 Dec 2020 15:27:29 +0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ipkiK5xKwePG3IErYNGla0ywYP7dDYa9f1mcyFStHU98iQPw7ymT8cAZZB55wOTHUrFYYtJn8AtkGrgB1wc3iBsnJPg2RtdsrA/9g5Ob2swptNJ6sOUb6rcmqnCXVUCv8sOBXixHJHhPq30sbUEBKoDjY0MyBapxcsBvj/JVJmPuLZD9KHYtd8BGuYB4OEyeUg5/eiCFNJJQBzLAuSQyIYfuDD6YyytKco/fqviBWEeIyuMhCaqaBWUEujjYi5UzMpKBs6WwwJG1XnhpgPU4wOvm1bodLkKHzB8Ge3QFoo1mdbicPoOQay9maRMOEZ3T6WChqW7Zuq5KCGprzIJPkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=xns4Y9pHSsoPS1zlMGhe8Kd07vxUDPf2MdOfyN/HrVQ=; b=ob6YxjizqkrdlVwA90zM8CqnSSNVUgJk2VorAyWxPlVcQ5kJgGINvfan4qKbbJiB98yS7WDJv4Qq5ln0sEu9aNnjw1gf79ASCuP0E4IVUxsRiwZFJtDJloHBFy3Xgz4j7x5Xy+xtw9K/yvgiY86p3i4wK66b4eF3yPiVXQ16v6oyGTnuGAlaY65EjU0dHbDJdI8OLVXfzkjm6Uv285K2KGBvoPplMJd+uY4I7dUng+joCPjG54MbbfYq2VOeScD3iQDMU3+BNJM8W2OG+y7Mo8zSNUxXZgcDmHfqt6MVoRZiPmXIyc6MeZxGUp+dA+mge6zJlpAsrEUQKz/3uAohEQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=wdc.com; dmarc=pass action=none header.from=wdc.com; dkim=pass header.d=wdc.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sharedspace.onmicrosoft.com; s=selector2-sharedspace-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=xns4Y9pHSsoPS1zlMGhe8Kd07vxUDPf2MdOfyN/HrVQ=; b=kuIONMoBukAKIAL1hp4o+OJL2lGuz4927uWECdcmnCPRt8KbxkGXedYS6GQogRoM6EhOBc2Q62wA20RU19tu7GWFGa8gdFwdbv+z+kBOvYdIsv86OCAS9SCnWsx9uXXSTnjByZXRG98DiyIvSxlQB7cSe7O3i3sDvQ4Cecug7us= Received: from DM6PR04MB6575.namprd04.prod.outlook.com (2603:10b6:5:1b7::7) by DM6PR04MB4025.namprd04.prod.outlook.com (2603:10b6:5:b0::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3589.21; Thu, 3 Dec 2020 07:27:28 +0000 Received: from DM6PR04MB6575.namprd04.prod.outlook.com ([fe80::a564:c676:b866:34f6]) by DM6PR04MB6575.namprd04.prod.outlook.com ([fe80::a564:c676:b866:34f6%8]) with mapi id 15.20.3632.019; Thu, 3 Dec 2020 07:27:28 +0000 From: Avri Altman To: "alim.akhtar@samsung.com" , "asutoshd@codeaurora.org" , "jejb@linux.ibm.com" , "martin.petersen@oracle.com" , "stanley.chu@mediatek.com" , "beanhuo@micron.com" , "bvanassche@acm.org" , "tomas.winkler@intel.com" , "cang@codeaurora.org" CC: "linux-scsi@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: RE: [PATCH 2/3] scsi: ufs: Keep device power on only fWriteBoosterBufferFlushDuringHibernate == 1 Thread-Topic: [PATCH 2/3] scsi: ufs: Keep device power on only fWriteBoosterBufferFlushDuringHibernate == 1 Thread-Index: AQHWx0S43WodiAJh60uyT+kBS7g50qnkYW5wgACaOBA= Date: Thu, 3 Dec 2020 07:27:28 +0000 Message-ID: References: <20201130181143.5739-1-huobean@gmail.com> <20201130181143.5739-3-huobean@gmail.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: samsung.com; dkim=none (message not signed) header.d=none;samsung.com; dmarc=none action=none header.from=wdc.com; x-originating-ip: [212.25.79.133] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: ca50db9a-901a-432d-8981-08d8975ce3af x-ms-traffictypediagnostic: DM6PR04MB4025: x-microsoft-antispam-prvs: wdcipoutbound: EOP-TRUE x-ms-oob-tlc-oobclassifiers: OLM:2803; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: xWgpa9mT6qTJnX3mYjyk1RGGNzUKV94vb7H268F+AvhCuPylJZGP1sdCXFjZcLgmTtw6TDl0o5UByNu5wucGgc+K+qWy1NK+1R3X/yYtemM0vWuQtLPRxuFVpP0+FTEcAwHJ4CDlai5Cn4S8UjddEqPgMJNpl9nqx0qQUwXhTDoHlCaQrxSJ6xpEbegRGEJ8J4UX1pwTsSJ/KW+Wlv2N/eiiNv947asnWUFn91v54t3XAhTKZ68fHa8LXYH0IAEHLQXPeL8Rqma/4meMlQ20QAt0EG5BIKhqxJi8ce6Y9ovBwhTpVI45DbepoITIiVZlBPKMGKzOjNy9Uh9CIDUopEVGAPsACJG+3J7adxoZWvMABmg1dUcfrDk3ha8jhQZRl56aazFMXc8Y2fQqPzsfzQ== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM6PR04MB6575.namprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(39860400002)(376002)(396003)(346002)(136003)(366004)(66946007)(66556008)(54906003)(66476007)(55016002)(76116006)(9686003)(2906002)(316002)(71200400001)(86362001)(8676002)(110136005)(4326008)(8936002)(33656002)(5660300002)(64756008)(186003)(66446008)(7696005)(26005)(7416002)(52536014)(4744005)(6506007)(478600001)(145543001)(213903007);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata: =?us-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4frO4OR3YknNr0WX92i9HnwrKJQCM?= =?us-ascii?Q?DuYTd79FdeJ2VN+8kKo9EEb/z8hvETkCrVY75ifdTpdxZVYRxSJfRg88rw9Q?= =?us-ascii?Q?isJSTyrhDaoB8mI8G0iFMwV5GoZip1D30oQXZMYHHCU=3D?= x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: wdc.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM6PR04MB6575.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: ca50db9a-901a-432d-8981-08d8975ce3af X-MS-Exchange-CrossTenant-originalarrivaltime: 03 Dec 2020 07:27:28.5075 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: b61c8803-16f3-4c35-9b17-6f65f441df86 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: fLvHSglSlBUf3TUlc5XiPzJNY8a4elRp0TaoDQ/6I1ruxNxvzBMZ2Hi3AQufBZhpSWAnNI7RpItEKjc5gI0Cpw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR04MB4025 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org >=20 > From: Bean Huo >=20 > Keep device power mode as active power mode and VCC supply only if > fWriteBoosterBufferFlushDuringHibernate setting 1 is successful. Why would it fail? Since UFSHCD_CAP_WB_EN is toggled off on ufshcd_wb_probe If the device does= n't support wb, The check ufshcd_is_wb_allowed should suffice, isn't it? Thanks, Avri