Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp4325791pxu; Wed, 9 Dec 2020 14:14:25 -0800 (PST) X-Google-Smtp-Source: ABdhPJytR1nKFGyP0Wlxp4zGDWWQRD4T00MpUJw1+yPUovX3HjMx/kD3CKrZvwzzoCntlfu0CxDR X-Received: by 2002:a17:906:34ca:: with SMTP id h10mr3946568ejb.417.1607552065467; Wed, 09 Dec 2020 14:14:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607552065; cv=none; d=google.com; s=arc-20160816; b=QLHCQBQ+31yx0BKlRnpxG6Oxtur9e6lrCKAaUIn8Ow5KLvHeq6q9oTj9BnDEC5pa6C dlTApNcg1sYDqYK6YJKuAV+L9fS918syaxtMDRNTAKY8wt2HepfRmARzToU/hLidcyGO XxqUcbIA4+38M2KqZHCzPlTblQVsxdRawbKGWqQCTxPsoef2hKq81BQ5GylWCrcrLft3 S9PQQi7ePkGE9IbLIcrdaO0VkXEbUQHw1fvmWd+P88yfJ/ad/awH/Di+BFoLh9KiePz1 sPN7ta5/67ZBjGayaqWiDddqxMMhdCqlfnJNfDTI+tTRHDVEYo4x0H3AXEvl8Xgednu4 kgdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :dkim-signature; bh=gTPM8owPg4KHLk7mw/dSVPYEe8lfzBgm5ehHl0CdL3k=; b=ZHMWrAG1NkcdeRTnsxk/dEeQlCalsYgBlD2qi4sYQwVcYmWgc90V+riEYf6WYYj3KV 3yszdKCcPuD/HV6NWBy7ZIJph3Arkrjey/EZSKS2mIdoMODSSEBZMjWLJnvYUQXEt1/3 BNCMzW6l1SEVRDqtdgs1YzHOovtFTJXm849Oy1MfULlt5Jx9Eb4zHHhU29atxCkUVTbM +47tXYXrCCf8SzRz3dECjQwS58s7jA4JYPg7EXP6kEGm06w85nIaMtaSFuYuOx4Wf+kP VWA+WAyLcEOkdvAxxg5zCbkVoWpesZBeKasu8rXAanVv+CCEIUtvtyex1MNY3hZ9Pgct Q6Xw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="TUrf/f7C"; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g12si1421884ejd.532.2020.12.09.14.13.55; Wed, 09 Dec 2020 14:14:25 -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=pass header.i=@gmail.com header.s=20161025 header.b="TUrf/f7C"; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388415AbgLIWJc (ORCPT + 99 others); Wed, 9 Dec 2020 17:09:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51152 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388292AbgLIWJc (ORCPT ); Wed, 9 Dec 2020 17:09:32 -0500 Received: from mail-ed1-x544.google.com (mail-ed1-x544.google.com [IPv6:2a00:1450:4864:20::544]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 99A76C0613CF; Wed, 9 Dec 2020 14:08:51 -0800 (PST) Received: by mail-ed1-x544.google.com with SMTP id h16so3306301edt.7; Wed, 09 Dec 2020 14:08:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:subject:from:to:cc:date:in-reply-to:references :mime-version:content-transfer-encoding; bh=gTPM8owPg4KHLk7mw/dSVPYEe8lfzBgm5ehHl0CdL3k=; b=TUrf/f7C2p1tLXtCa0MBWz0IOriWcbgsJ5mkf/v4ovUrWYfxJ/kgphXXbBUucEnFcD n0TRTslG9RXB05aDskvYpZEtWTUIBypRb7UsQLVEKEn5Qrx2Bzstop6YtaNsHbAqIt/I 5zIpJNloR8pUEm8/DLw6nIUloitsDTOjs9jrgs0Ls4FIo0aFc6Boc1ibc1yjYCsEg90i TLe+gPvf01qeNxWjpwi20at5FnO6t8Sys+VN3O8cPt0xZ3PohvLrXtz80JRJwJ5iey6j iwnzUEg3f3n3iDeX7pz/TPNOhrPjBsAJlJSUkeCudY0Ziq8FCFPT3wihvaT3l1zgmr3T 4r7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:mime-version:content-transfer-encoding; bh=gTPM8owPg4KHLk7mw/dSVPYEe8lfzBgm5ehHl0CdL3k=; b=rwumGhXwj8fZnbfdyIQbQYZ68N1bsf54pjeVMojyREiZHyi7KTwDFTufZG2eRFdX7D o07kkZxbeskZsdbSeALutmHsb6qWsqD3EhzMfbo7fxc4HE87YIWAHb6KlDZx2MWqeYzq jYMfTRRcLBpwVEO4CxQoUfreNK31HJatfSixvIgQM3ZDjBCWGfhu0GTC9zW3wbHEf3bE M4vuUPfEe8PD82esd0X96Gn3y72uGR9wwGDSQnLKEHJAJOtRVUF398xJ2AhoEwhT5QwT 7hagZWBlD93C8dMTlf4ACJi2a770OaQJ6c9Mfk/Gqr41hzXBZIP/R6j4JkhQauVXVhgF aI/Q== X-Gm-Message-State: AOAM530ErEnbI3EYLd1tYEVKOgfJ8KiJYRdaT1fgQTPMIVqCnCDE0aJ5 Hcxr44VMxf6B4w+OjQ0ReWY= X-Received: by 2002:a50:9e8b:: with SMTP id a11mr3901460edf.276.1607551730377; Wed, 09 Dec 2020 14:08:50 -0800 (PST) Received: from ubuntu-laptop (ip5f5bfce9.dynamic.kabel-deutschland.de. [95.91.252.233]) by smtp.googlemail.com with ESMTPSA id z10sm2597154ejl.30.2020.12.09.14.08.49 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 09 Dec 2020 14:08:49 -0800 (PST) Message-ID: <9fedcb0301c44e03a21bc5deba83c09e1d64b3f4.camel@gmail.com> Subject: Re: [PATCH v3 2/3] scsi: ufs: Keep device active mode only fWriteBoosterBufferFlushDuringHibernate == 1 From: Bean Huo To: Avri Altman , "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" Date: Wed, 09 Dec 2020 23:08:48 +0100 In-Reply-To: References: <20201208210941.2177-1-huobean@gmail.com> <20201208210941.2177-3-huobean@gmail.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5-0ubuntu0.18.04.2 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2020-12-09 at 07:40 +0000, Avri Altman wrote: > > From: Bean Huo > > > > According to the JEDEC UFS 3.1 Spec, If > > fWriteBoosterBufferFlushDuringHibernate > > is set to one, the device flushes the WriteBooster Buffer data > > automatically > > whenever the link enters the hibernate (HIBERN8) state. While the > > flushing > > operation is in progress, the device should be kept in Active power > > mode. > > Currently, we set this flag during the UFSHCD probe stage, but we > > didn't deal > > with its programming failure. Even this failure is less likely to > > occur, but > > still it is possible. Hi, Can and Stanley Please review this patch, and leave your comments. or if you look good, leave your review-tag, in order that Martin can accept this series patch easily. Thanks, Bean