Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2499660pxb; Mon, 18 Jan 2021 21:17:42 -0800 (PST) X-Google-Smtp-Source: ABdhPJykr79H8ZAJ9yJG1Dl8/BJZoMRU8lgl45KT35pf6XUDE6ixHCtFkb3cUPw6W2xogN2w+3mq X-Received: by 2002:a17:906:99c5:: with SMTP id s5mr1889075ejn.236.1611033461983; Mon, 18 Jan 2021 21:17:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611033461; cv=none; d=google.com; s=arc-20160816; b=CXa33UkPd7iqUzTRfteOPX+MxH8gGN2iXIZH5/4sNHVEmpCs3zHzsw+k1/85Dmc6hf AB8IK7+yFfxfQGpvfVZynsJF0JreljVz0hwXp0PWsX+sjpycj9uskc4OMpiOFe8CLtSq oiBlDi/YY7u8O4Y66E9qONQD5Wtow4YaQbI8uwGEE1pI9VwIslOFjs+69EeOcwfkU5rR HMMTflM+7KOZBLoyht/VUUFCbhFSj6AgoYacBFtwaPy4U78QqAcqSF9M0KvSQAsCequi rkGz8QoBHtsCDtjLZm6W8Y1UtUStEBNV5eo4a64LuxCnVOnOgj1bTZS49MFcpC0mwWlU +f8w== 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=J2lGSje/t96HRnhu7U2uaaKspvjeI4RxTKrY+0OroNo=; b=WU/j1jwmHqfavbXTPrc9VNFYTW0GhV6wRugewYKJwzIZYc4BH+emLpC5ztskGJ6Xcm hqOkZmFBqX54An+zXvHbnnNifv7s473fsubMnCC1GYqFBZC9C5+zxlOSmpQ95ITt7py5 Mwkzep4apA5c3jFDmjH7sH8igGCrXkCB1/or5R7VN2rapIDX1JNgYmA8Uz6s2rE9wE4P RV9clnlcyDwFgFoFsO4wwhlUqNk19I9/cYxdb9kYjRQ+LqcWYEZjUHLqDMx6mLc0L69S 8CEh4cKt1ZjNa0oG2Q27JUz/6MUu8hx/2NFesHISb16d/BCpXBVzLgM3b+i8UShWL/5D HfsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=HCo5aaSU; 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 v13si7664552ejf.621.2021.01.18.21.17.15; Mon, 18 Jan 2021 21:17:41 -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=HCo5aaSU; 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 S2394217AbhARULw (ORCPT + 99 others); Mon, 18 Jan 2021 15:11:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43070 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2437857AbhARULa (ORCPT ); Mon, 18 Jan 2021 15:11:30 -0500 Received: from mail-ed1-x52e.google.com (mail-ed1-x52e.google.com [IPv6:2a00:1450:4864:20::52e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0EAE6C061573; Mon, 18 Jan 2021 12:10:50 -0800 (PST) Received: by mail-ed1-x52e.google.com with SMTP id s11so11670823edd.5; Mon, 18 Jan 2021 12:10:49 -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=J2lGSje/t96HRnhu7U2uaaKspvjeI4RxTKrY+0OroNo=; b=HCo5aaSUvJDkL5g8BT99WGeWQTYwt9Km77uI5q1/PdWgXrDRWwCHXPmS2oYb5lGgkP xV3QFvYD4JiZUPpMFqGmsduB9yg+GfwiJl/FurnaWhdmjKZPDVT0wiNGDak4gr0EdLSE 0NS5RAhptwI5CzeWIRoOzku8t5D70rOevZMcbjnjRAEFiWsUiCJrB/+yHas0/eptmTj2 v/MJ1yG2VvPAthHjsqsuImzuS8aKeESsSoLdvEBEDe/Y7GewcgmlvwH8YC3N/S0DdgJJ lWSSfJOPF2Yk8HVqiq241CPtK5CHBY+pUmIFftt3b4YnlkrsypgCbPt3xHzpp2odhNx8 JWyQ== 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=J2lGSje/t96HRnhu7U2uaaKspvjeI4RxTKrY+0OroNo=; b=sx2InV28uLcN3+NbAMX3PH4V2EJLI8DoY3CV3Q8PpJTrUxyCn1+uNCHX2i2gunQUK2 TZSl2oPgoq3bs93LZ7JX5ZN5KX55SyxpUDjBIZOhM7LnhTutk9N/aZ3ca8KlE/Qm4DVj K8rarAszdDRRnKs1nsFjD11+D11Uv4pXcMRTCiYGzgrMeW7E3bEYhCSqfhVaUhJJXhnA OQCygXIMk4m17uOOrHx1AjzwuR6U/Sh4fwrqCy4MzIrf64xQUYHiaPFoT18vVF6rmszA COx+L92Cbaa612y4J79rAvM9YtVsgrCSRjMaRWeEUCQnYTA5FpO0v/QMT8xcxAn+b+7n eTUg== X-Gm-Message-State: AOAM532DmGlF74yLFfzMxxCeiV9Ip7I0thRK0yn4GWScQRXYo+SdBNCh PVlG9rLR+PkQmRZHK51AS9Q= X-Received: by 2002:a05:6402:70a:: with SMTP id w10mr878192edx.184.1611000648770; Mon, 18 Jan 2021 12:10:48 -0800 (PST) Received: from localhost.localdomain (ip5f5bee1b.dynamic.kabel-deutschland.de. [95.91.238.27]) by smtp.gmail.com with ESMTPSA id qh13sm3972543ejb.33.2021.01.18.12.10.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Jan 2021 12:10:48 -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 v6 0/6] Several changes for UFS WriteBooster Date: Mon, 18 Jan 2021 21:10:33 +0100 Message-Id: <20210118201039.2398-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: v5--v6: 1. Remove original patch 7/7: "scsi: ufs: Keep device active mode only fWriteBoosterBufferFlushDuringHibernate == 1" 2. Rebased patch onto 5.12/scsi-staging 3. Add protection of PM ops and err_handler for the wb_on entry access V4--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 (6): 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 Documentation/ABI/testing/sysfs-driver-ufs | 8 ++ drivers/scsi/ufs/ufs-sysfs.c | 46 +++++++++ drivers/scsi/ufs/ufs.h | 29 +++--- drivers/scsi/ufs/ufshcd.c | 103 ++++++++------------- drivers/scsi/ufs/ufshcd.h | 6 +- 5 files changed, 110 insertions(+), 82 deletions(-) -- 2.17.1