Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp59750pxu; Tue, 15 Dec 2020 16:05:54 -0800 (PST) X-Google-Smtp-Source: ABdhPJx0wt3n9mo3aWw54RZZbbP8wTsF5JMcn9/j1mV8BAbw6GefCRbOiRAdMrIRCPVR9XARVEjO X-Received: by 2002:a17:906:4d8d:: with SMTP id s13mr9118671eju.305.1608077154220; Tue, 15 Dec 2020 16:05:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608077154; cv=none; d=google.com; s=arc-20160816; b=rFXTwVp6mQ25V8dzIJTob6U/SaHeIkCOFSucURTzg26qyIe+ZtfHVdoHUH8eevj7AS p3pblAQm7hXQMB4Mn7M3R9Gu7898Q0MiN4UOqg1fT+m1+6lqfKXyIrWSQi53Qzga3Jfu duhT2V/mpMqDqiQjVbTWIVEAFrncfLnl2iK7N9Tfq/fWWwc/RZvIHyToWefWpjxYb7l3 9YAjVS7FQXYEwsCAygPCvnkgDX3rPRxC4r61kXuH5DbFqIwJoyFKaqNx+lWOrWGvSqRz 1ZtuiWOzcjCaG4TiK3Y1IB0IKi4VRbS7tPn0JefQHJQJhPv0I87UdLlstqrrF0ifDpR2 BmbA== 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=f7i9PtN45U0UcFrfF4C9zZcvaiZJrrBU8O2nLkXVNNY=; b=zLZCmmuUhNySF3LPeUcEv+Ysa6BBlNHpN7e10Tvfavf/hZspy0Qmh9KCeO7ch707Vs XKhZf3rjgMrf/czOnZK53T8ccE6M81XF1lrm4N+scwCQlsMqeNsSLvTil3YmVLrvFG7p li4EAK7C9j9BKulHfsVXstHwQqLjbZUicGt3JrKRAihPT06IS38dXk9rZoe3IMogKB0M gopXS78KMX0Bx46ziO+qzVnkKtbyurDzJcTOxKF0459Cbazn4QB3LBSJCNyzz87FsSLe MNhFfUkRWSaw8Ig7UZoXujPpAA4KqIpAwj91w7Zb37H1VWIuev8DrphrPSTrb3E1GDrr uHLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=vaEJrBae; 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 r19si41954ejz.538.2020.12.15.16.05.05; Tue, 15 Dec 2020 16:05:54 -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=vaEJrBae; 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 S1727039AbgLPAAP (ORCPT + 99 others); Tue, 15 Dec 2020 19:00:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38800 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730231AbgLOXGM (ORCPT ); Tue, 15 Dec 2020 18:06:12 -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 35F22C061793; Tue, 15 Dec 2020 15:05:32 -0800 (PST) Received: by mail-ed1-x544.google.com with SMTP id u19so22858617edx.2; Tue, 15 Dec 2020 15:05:32 -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=f7i9PtN45U0UcFrfF4C9zZcvaiZJrrBU8O2nLkXVNNY=; b=vaEJrBaeXVXGjz/7marcrAvcGt+pNp8wFg3xnAEXbXFvrltLW4kVon8tyspPKjRg6B HAq1OkTZKKL0W6D+iU3cOkjuk5waXM6DwT2Cd2C1k5EFYnWjuvnMUJbmtXYjWhHjJiHh qAm3jojaIhzV2R5NPXfaizMMYu6NoRlUbF+0olmuX4f9aaXYf3tTHt2iESYs1xkHacLr t1tXs4lTmOvxZ5KrhhDTuDOAGjRfdXk4gsN/rbnlFSVlE00pRoVgHm8yIGoMzPw9hAXx t44klwYbhsNzDpWsFG2ZrKbkFOOJpEV728dt3rUzQ6ZU/9x8Xn58MAncBm3mfuC9Nt9/ VP7Q== 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=f7i9PtN45U0UcFrfF4C9zZcvaiZJrrBU8O2nLkXVNNY=; b=mMYa2wssNq66V6ol1nzismmX3YBuyGaTWpYAtW+sVjVYbNVrzhIdqbKCAAIfYg5FZi gadC/FSP++8JsSWYpFQcO1chHAmOQhxy6VMbR1c7qvNlon+t0wyH3XAZepPePhIWNNNE A3hhZZdY5BRfXbiQVbOmY8SU2gjdw8ep++S/YPtj5uChf0T5zh6c4lGCL5nLz5Vh85mL OSeaAWW97+DnZI8CV0adzqnz+LE4LjWuorKhQuGet0rzxZKEPKx8rAGKSJCtR7oFAXRt SaWl2zsEoomiHXHSHI3qGcum89jgWSt9j8UCBUYsCwFQ/1HwEvcx7JcmG84XCJv2vQf1 tEAg== X-Gm-Message-State: AOAM530ntMjzTEh7QZRD2JIEcXUDfSzA18BzwLUF3d5bv9HS/3NGmwUP cUQgwb+jl0fdsvIthDLKMXc= X-Received: by 2002:a50:ec18:: with SMTP id g24mr4299005edr.6.1608073530937; Tue, 15 Dec 2020 15:05:30 -0800 (PST) Received: from localhost.localdomain (ip5f5bfce9.dynamic.kabel-deutschland.de. [95.91.252.233]) by smtp.gmail.com with ESMTPSA id e11sm19280455edj.44.2020.12.15.15.05.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Dec 2020 15:05:30 -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 v5 0/7] Several changes for UFS WriteBooster Date: Wed, 16 Dec 2020 00:05:12 +0100 Message-Id: <20201215230519.15158-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: V--V5: 1. Add patch "docs: ABI: Add wb_on documentation for UFS sysfs" 2. Unify WB related flags with wb_* prefix (Stanley Chu) 3. Delete d_ext_ufs_feature_sup (Stanley Chu) 4. Incorporate Stanley's suggestion to patch 6/7 5. Replace scnprintf() with sysfs_emit() in 1/7 (Greg KH) v3--v4: 1. Rebase patch on 5.11/scsi-staging 2. Add WB cleanup patches 3/6, 4/6 adn 5/6 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 (7): scsi: ufs: Add "wb_on" sysfs node to control WB on/off docs: ABI: Add wb_on documentation for UFS sysfs scsi: ufs: Changes comment in the function ufshcd_wb_probe() scsi: ufs: Remove two WB related fields from struct ufs_dev_info scsi: ufs: Group UFS WB related flags to struct ufs_dev_info scsi: ufs: Cleanup WB buffer flush toggle implementation scsi: ufs: Keep device active mode only fWriteBoosterBufferFlushDuringHibernate == 1 Documentation/ABI/testing/sysfs-driver-ufs | 8 ++ drivers/scsi/ufs/ufs-sysfs.c | 41 +++++++ drivers/scsi/ufs/ufs.h | 30 ++--- drivers/scsi/ufs/ufshcd.c | 124 +++++++++------------ drivers/scsi/ufs/ufshcd.h | 6 +- 5 files changed, 122 insertions(+), 87 deletions(-) -- 2.17.1