From patchwork Fri Jul 1 07:44:20 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jinyoung CHOI X-Patchwork-Id: 586488 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id BF7FDC43334 for ; Fri, 1 Jul 2022 07:44:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235242AbiGAHo1 (ORCPT ); Fri, 1 Jul 2022 03:44:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41470 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229966AbiGAHo0 (ORCPT ); Fri, 1 Jul 2022 03:44:26 -0400 Received: from mailout4.samsung.com (mailout4.samsung.com [203.254.224.34]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7EF6E39685 for ; Fri, 1 Jul 2022 00:44:24 -0700 (PDT) Received: from epcas2p1.samsung.com (unknown [182.195.41.53]) by mailout4.samsung.com (KnoxPortal) with ESMTP id 20220701074422epoutp04e7b8c0ed0076aabd969939648c7cf437~9pNKWIAdS3108731087epoutp04v for ; Fri, 1 Jul 2022 07:44:22 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout4.samsung.com 20220701074422epoutp04e7b8c0ed0076aabd969939648c7cf437~9pNKWIAdS3108731087epoutp04v DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1656661462; bh=xfYOrQ+4hivqp2gEfSionOxsv4wOOKujiLYahF+aDNA=; h=Subject:Reply-To:From:To:Date:References:From; b=JR8aHrBHXW8nEJfr0zNkor1H+7IANrNFTS9zTsUWcslq/U2kIyY1Cy1ykX5Pg7Wzf XqN4ZAleVmgWRHURg67gh0UEkfzy+r3oVglowwyESmUIpRbfh4EjGRF8sdkusgciii lxHhbDUuZgWMXfmWw/7rTAK7PLTde1RpQAT4/efg= Received: from epsnrtp2.localdomain (unknown [182.195.42.163]) by epcas2p3.samsung.com (KnoxPortal) with ESMTP id 20220701074421epcas2p3efeff3c5c6f4296c36b34c0868ae9627~9pNJq4IIM1390113901epcas2p3G; Fri, 1 Jul 2022 07:44:21 +0000 (GMT) Received: from epsmges2p4.samsung.com (unknown [182.195.36.100]) by epsnrtp2.localdomain (Postfix) with ESMTP id 4LZ6fF1MmLz4x9Pt; Fri, 1 Jul 2022 07:44:21 +0000 (GMT) X-AuditID: b6c32a48-9e1ff700000025be-e1-62bea5d4dd4b Received: from epcas2p4.samsung.com ( [182.195.41.56]) by epsmges2p4.samsung.com (Symantec Messaging Gateway) with SMTP id 50.E2.09662.4D5AEB26; Fri, 1 Jul 2022 16:44:20 +0900 (KST) Mime-Version: 1.0 Subject: [PATCH v3 0/2] scsi: ufs: wb: Add sysfs and cleanup Reply-To: j-young.choi@samsung.com Sender: Jinyoung CHOI From: Jinyoung CHOI To: ALIM AKHTAR , "avri.altman@wdc.com" , "bvanassche@acm.org" , "jejb@linux.ibm.com" , "martin.petersen@oracle.com" , "beanhuo@micron.com" , "adrian.hunter@intel.com" , "linux-scsi@vger.kernel.org" , "linux-kernel@vger.kernel.org" X-Priority: 3 X-Content-Kind-Code: NORMAL X-CPGS-Detection: blocking_info_exchange X-Drm-Type: N,general X-Msg-Generator: Mail X-Msg-Type: PERSONAL X-Reply-Demand: N Message-ID: <20220701074420epcms2p4c4a6a016c7070d5dfa279fc4607caa95@epcms2p4> Date: Fri, 01 Jul 2022 16:44:20 +0900 X-CMS-MailID: 20220701074420epcms2p4c4a6a016c7070d5dfa279fc4607caa95 X-Sendblock-Type: AUTO_CONFIDENTIAL X-CPGSPASS: Y X-CPGSPASS: Y CMS-TYPE: 102P X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrCJsWRmVeS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DiHnemqQ77HB4c+114ybDvZ8D7loaqXfs3XZpY8z6sSc3i49Qlbhf9Px1dIr+wJDPU SS+Y40/5pvOrDX24VJPfzO/jsS/avM2yZK72XB/xwI/Rtn/Vrfes6juU1rDa4pSmZSfbu5/3 N4kvYvZY3RfGraqxxPuXRlSXWIv0pqg+9hnxDo4XlViKMxINtZiLihMBLS9xnjcEAAA= DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20220701074420epcms2p4c4a6a016c7070d5dfa279fc4607caa95 References: Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org This patch series is to clean up UFS's Write Booster code and adds sysfs which can control the specific feature of it. V2: - modify commit message - move & modify err messages - remove unnesscessary debug messages V3: - split patch (functional, non-functional) Jinyoung Choi (2): scsi: ufs: wb: renaming & cleanups functions scsi: ufs: wb: Add Manual Flush sysfs drivers/ufs/core/ufs-sysfs.c | 46 +++++++++++++++++++++++- drivers/ufs/core/ufshcd.c | 69 +++++++++++++++++------------------- include/ufs/ufshcd.h | 7 ++++ 3 files changed, 84 insertions(+), 38 deletions(-)