Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp3482152pxu; Tue, 8 Dec 2020 13:16:26 -0800 (PST) X-Google-Smtp-Source: ABdhPJzJapsuIzo2Ueo2OBUX5FM81fRMxAGE/DKu4Q6OhWHlSok5uY44sBndK4i7Vj1XwEE/gTpc X-Received: by 2002:aa7:dc5a:: with SMTP id g26mr26497379edu.35.1607462186536; Tue, 08 Dec 2020 13:16:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607462186; cv=none; d=google.com; s=arc-20160816; b=msnoFpQrSZ3Rim3cuo5daW+Fk2bNvcrtppZtfJjomKsZbuSAB85uBOWpguhPtfBbJj /fyR8kHDE0lZdLgIorvN608ajeax8QREMkAWwjEZtyxdsaRJCiCNmcaUshGZvE6O0Rjl lqZrlOzwJMdhvxRj+GLPH2yN2NkNt7N+B+YUri+ID0txhKeEbyK5pJgzuWhaAqmQM4gc DImtFALwZb5dJpP5yhKNEO4hfD4jtJu9O13qdTTZdknzLHaOn6tt+7ly6idR0pzBGZ5K tqBT5VuhC+VUWRyfg13uQkaYWuUXPGAQhzSY00rXIiwz+oUVRTKyk+N+xWflmOqJDvCD ZSwg== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=wNs/3miZJZMRVGd+tONPw5tRmrGF0sc2ymKJoQXU/q8=; b=J2JJgebLJ5Ae/MaYYH6c1RSG2TyifYpFnkFkfZb/kBPPuhcW3oBQg4LBmDUib2KGyc H+ou5fRm3g6FbC7JilKMW/qd1Mo1EHSUDCJ/VGpgVLgMhXfGPiTwqRKT4K8GYEeJxkCY dF+GRkEJ7Fhs4gG6FT5B52RoG0e+YEcTS+bcRAJxtjkr4F2vzCWaEZppFL22Qr3NY7mL 19e4GVegVuT9S5Zb19/drY1vFa0FNaUlyVHJNA8sxXDc3M8apkz4CFOpOVVr707ugf7D tes4HLGYXyrxwRRxpO/sDkAENMMOr9Cl/rb9xkht53W+9IhaV+xQRBdiUTDyQpilB0NL yAmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=NtwAvitu; 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 s2si4346098edw.5.2020.12.08.13.16.00; Tue, 08 Dec 2020 13:16:26 -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=NtwAvitu; 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 S1727702AbgLHVKc (ORCPT + 99 others); Tue, 8 Dec 2020 16:10:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45614 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725766AbgLHVKc (ORCPT ); Tue, 8 Dec 2020 16:10:32 -0500 Received: from mail-ej1-x643.google.com (mail-ej1-x643.google.com [IPv6:2a00:1450:4864:20::643]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 07757C0613D6; Tue, 8 Dec 2020 13:09:52 -0800 (PST) Received: by mail-ej1-x643.google.com with SMTP id x16so26643901ejj.7; Tue, 08 Dec 2020 13:09:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=wNs/3miZJZMRVGd+tONPw5tRmrGF0sc2ymKJoQXU/q8=; b=NtwAvitu0Dgz05kasu9RPNf/EgA1QoLlWEzF65LW6NMQGstFb1Ho4Ix3Y7zaXwtAy3 9zkPGbuDEXl3kOvqpACvCCPpVVaku1DpBwRKvSSPfjbrqe6TmukWn/ec95WLQcgdNqTC qIy1eugiLQU6LJ5BW6qiEPsOACSrIUIb2Po0ZtQo4XBNABypvgL5nUWjARUUzKqca57K iOjRzwXSrSEvB/+l3xiyJwHm/rdwqFuV0YTHMTk6Z33QSXGnJRwIBQllQxXfw68AEfwr fTilrDKF9bmaVauS/1UffKj+cy2Xk9q16OizX5xj+28Ad68ljoV0NEA6skRH8SxXrMoZ T2vA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=wNs/3miZJZMRVGd+tONPw5tRmrGF0sc2ymKJoQXU/q8=; b=OlbG0WjUHa1vqdgcsfLqZ2VTppdn2eYjeiC+oUmcPviLotJbilgqepCAOTEGCL+s37 RODDFQNYoEOrmgQ9zSIfGcf+s/O57IKuWdsDdl0WJ/iw+ti5saLSrCbip/rg9uJw+aeu x4FXHieRGwDIgVYNfS4NjdVYCbjw3RB6Cmu9zMk41TosBBv2MpA0lfEXM5/0Yf3V6a7q nfmHbc/AMBeJcqPH3U2e0Wd/Vfp4GZf13bAShy2hzeWSMcBChCPpWBdbeFqenbOU2UDh SAthnVlgLJ9JbrJ6vEsvfMSUJei53DkkOWt4Yts2IQ8G4Y/NqnSyF/cJyLTnH+4RQpfa zRBw== X-Gm-Message-State: AOAM531T/Z4yA38yx1eUUad8m6nXx6fVCv6xnFfhSyXjFXKFDiuomhvQ zyFL5y6QQMaEvrlaXo1HpY8= X-Received: by 2002:a17:906:3081:: with SMTP id 1mr25895007ejv.162.1607461790800; Tue, 08 Dec 2020 13:09:50 -0800 (PST) Received: from localhost.localdomain (ip5f5bfce9.dynamic.kabel-deutschland.de. [95.91.252.233]) by smtp.gmail.com with ESMTPSA id n22sm17908edr.11.2020.12.08.13.09.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Dec 2020 13:09:50 -0800 (PST) From: Bean Huo To: alim.akhtar@samsung.com, avri.altman@wdc.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: [PATCH v3 0/3] Three changes for UFS WriteBooster Date: Tue, 8 Dec 2020 22:09:38 +0100 Message-Id: <20201208210941.2177-1-huobean@gmail.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Bean Huo Changelog: v2--v3: 1. Change multi-line comments style in patch 1/3 (Can Guo) v1--v2: 1. Take is_hibern8_wb_flush checkup out from function ufshcd_wb_need_flush() in patch 2/3 2. Add UFSHCD_CAP_CLK_SCALING checkup in patch 1/3. that means only for the platform, which doesn't support UFSHCD_CAP_CLK_SCALING, can control WB through "wb_on". Bean Huo (3): scsi: ufs: Add "wb_on" sysfs node to control WB on/off scsi: ufs: Keep device active mode only fWriteBoosterBufferFlushDuringHibernate == 1 scsi: ufs: Changes comment in the function ufshcd_wb_probe() drivers/scsi/ufs/ufs-sysfs.c | 41 ++++++++++++++++++++++++++++++++++++ drivers/scsi/ufs/ufs.h | 2 ++ drivers/scsi/ufs/ufshcd.c | 30 ++++++++++++++++---------- drivers/scsi/ufs/ufshcd.h | 2 ++ 4 files changed, 64 insertions(+), 11 deletions(-) -- 2.17.1