Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp54896imn; Thu, 28 Jul 2022 22:22:58 -0700 (PDT) X-Google-Smtp-Source: AA6agR7SRkN8aAHIsGUTWqtCcu+fHP7nOpo3mmsqjlsOjP391avCEeBRyltgQHCTSB15KkhO8z2b X-Received: by 2002:a17:90b:2686:b0:1f2:503c:2472 with SMTP id pl6-20020a17090b268600b001f2503c2472mr2251668pjb.187.1659072176989; Thu, 28 Jul 2022 22:22:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659072176; cv=none; d=google.com; s=arc-20160816; b=Ahz/j9cGT911UqVpc+lcjPBS3uGKzw0M7n6jMRj8OtjFTx3Non6qu4xuTtNXwzd79G DNP9dY4ysFAyJlIluITO2e7aqtzoX+ZOVTfPvgzB9lEEevcqrKwugF9myGRGF+um516q VH2q4HeGaHDin4sYTXJzys/JOpgDEGdaJpsZUctjZvn+sZYeYRqQz14qp5OAbj4BbMcW cKr5W8M6R1tIdXIn7Aydsrgt+yz9lLw77EvH6+qjvmqJQ8kV47gmTIUoW0SrAiKub5pq f0OmdUqQQJHUEJMe0RmM5m0ezC2DMPWqj1IvhRl9/Zb9JqkBNz+uj7Gg36halzBurt9Q MopQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:dlp-filter:cms-type :content-transfer-encoding:date:message-id:to:from:sender:reply-to :subject:mime-version:dkim-signature:dkim-filter; bh=vyeZZJfOSClnlIwgoX4qFgtMQTpokyQF/v6Q12nU+og=; b=CJtUF1XIf0xcw/rrraa/dUS4clfrDufp+mtV8dHZQpu/HJKRdcT+X7c6oWnq+e/qcr i9dCOG9NfRQOGxbYDWoIvcrF2wM/sTDYXp/jEKddrSRI7wyvsfDcxlz/JbXwleFfhCjj cASFJjWP73xkyT1yayo4hSVx+xErLE6T6VhEOK6FW3XoxXbKgeiamHVrCT1u+EHFJhkg OMWweNQHp2p1wHcdK/4sXAiiM1qs1TRTxl/GzB8pODqTVg33SSDxS9OrLMgM7ObxjcK2 NDBnUSw5c+IwemjRGbGlUUwtnGEoXNvXCn3ma7aX8Y5Q/E+vuVW3lLycVA9A/NUM+wxL Mq2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b="KVto/YgJ"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a18-20020a056a000c9200b0052831347555si2830097pfv.325.2022.07.28.22.22.41; Thu, 28 Jul 2022 22:22:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b="KVto/YgJ"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233400AbiG2Eu5 (ORCPT + 99 others); Fri, 29 Jul 2022 00:50:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58794 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231570AbiG2Euz (ORCPT ); Fri, 29 Jul 2022 00:50:55 -0400 Received: from mailout1.samsung.com (mailout1.samsung.com [203.254.224.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 52CCD1EEC3 for ; Thu, 28 Jul 2022 21:50:51 -0700 (PDT) Received: from epcas2p3.samsung.com (unknown [182.195.41.55]) by mailout1.samsung.com (KnoxPortal) with ESMTP id 20220729045046epoutp01a9f1572432fc8d0dc7605ffe82908dbf~GM5ltCiBM0228102281epoutp01X for ; Fri, 29 Jul 2022 04:50:46 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.samsung.com 20220729045046epoutp01a9f1572432fc8d0dc7605ffe82908dbf~GM5ltCiBM0228102281epoutp01X DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1659070246; bh=vyeZZJfOSClnlIwgoX4qFgtMQTpokyQF/v6Q12nU+og=; h=Subject:Reply-To:From:To:Date:References:From; b=KVto/YgJO8AarOHbBj8NKWQYH+6Q4CZkpZqcChAIDPYWuoa0cynPvV+kphhdCKrec J6i8jpl2c2X041K+13mzOMCGc7kVukxqZNtgWt/sveX17SBF4EXeuexPj5RtrAGflY wFtELjxzOtGVpoz8lqUZS2e28/bjTNmT36oxeG3s= Received: from epsnrtp2.localdomain (unknown [182.195.42.163]) by epcas2p3.samsung.com (KnoxPortal) with ESMTP id 20220729045046epcas2p39387f886e27581049b616438043d788d~GM5lbVWnu0418904189epcas2p3d; Fri, 29 Jul 2022 04:50:46 +0000 (GMT) Received: from epsmges2p4.samsung.com (unknown [182.195.36.92]) by epsnrtp2.localdomain (Postfix) with ESMTP id 4LvFT213Jfz4x9QP; Fri, 29 Jul 2022 04:50:46 +0000 (GMT) X-AuditID: b6c32a48-9e1ff700000025be-10-62e36725a0a3 Received: from epcas2p4.samsung.com ( [182.195.41.56]) by epsmges2p4.samsung.com (Symantec Messaging Gateway) with SMTP id 5C.30.09662.52763E26; Fri, 29 Jul 2022 13:50:46 +0900 (KST) Mime-Version: 1.0 Subject: [PATCH v5 0/6] scsi: ufs: wb: Add sysfs attribute 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: <20220729045045epcms2p8caf00317889ed4da8531b7466ec6e368@epcms2p8> Date: Fri, 29 Jul 2022 13:50:45 +0900 X-CMS-MailID: 20220729045045epcms2p8caf00317889ed4da8531b7466ec6e368 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" X-Sendblock-Type: AUTO_CONFIDENTIAL X-CPGSPASS: Y X-CPGSPASS: Y CMS-TYPE: 102P X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprHJsWRmVeSWpSXmKPExsWy7bCmha5a+uMkg+9/GC1OPlnDZvFg3jY2 i5c/r7JZHHzYyWIx7cNPZouXhzQtFt3YxmRxedccNovu6zvYLJYf/8fkwOVx+Yq3x+I9L5k8 Jiw6wOjxfX0Hm8fHp7dYPPq2rGL0+LxJzqP9QDdTAEdUtk1GamJKapFCal5yfkpmXrqtkndw vHO8qZmBoa6hpYW5kkJeYm6qrZKLT4CuW2YO0IlKCmWJOaVAoYDE4mIlfTubovzSklSFjPzi Elul1IKUnALzAr3ixNzi0rx0vbzUEitDAwMjU6DChOyMyZtOsBW0cVXs+r6BpYHxGnsXIyeH hICJxJLPG5m7GLk4hAR2MEos/dTA2MXIwcErICjxd4cwSI2wgJvEr7NrWEBsIQEliXNrZoGV CAsYSNzqNQcJswnoSfxcMoMNZIyIwFlmiYUPpzBBzOeVmNH+lAXClpbYvnwrI4StIfFjWS8z hC0qcXP1W3YY+/2x+VA1IhKt985C1QhKPPi5GyouKXHo0Fc2kBskBPIlNhwIhAjXSLxdfgCq RF/iWsdGsLW8Ar4S2z9cA4uzCKhK9L9cxApR4yKxoQ/iLWYBeYntb+cwg4xkFtCUWL9LH2K6 ssSRWywwjzRs/M2OzmYW4JPoOPwXLr5j3hMmiFY1iUVNRhBhGYmvh+ezQ4Q9JE79NJvAqDgL EcizkFwwC+GCBYzMqxjFUguKc9NTi40KTODxmpyfu4kRnFC1PHYwzn77Qe8QIxMH4yFGCQ5m JRFegYDHSUK8KYmVValF+fFFpTmpxYcYTYF+n8gsJZqcD0zpeSXxhiaWBiZmZobmRqYG5kri vF4pGxKFBNITS1KzU1MLUotg+pg4OKUamEpvuHkmJH87O9lJ9oUk95onjsxy+XObo65aanO+ 7apoe5xyknOxpKLlR/8aLvbrof9Ccp5pvp/nvOzqskvzL1tHlNkreE6Y1C3QOr/EWepCjN0t 50eccyq3L7EI+6z74PyWm6LPfi9tWbCnwLStw01DtSafZccMXam6Cp+bbybs1fk62TLHKElG 43qTUbJWtpRIY57qwqzjy9KCzObXuJ8UuSZhsvyubvWkgKXM5oVCs/i6loVX7bPbevzrPfbD Qeu6Am0Ulv5c9bMvd+IpOSGb+hnb1vkUeH3fuiZ247Ld+qHpqfmf9iVnmDKdXZKmopi2+Kvw tiD9XwydW2d3yG7f3LNV2HHd95mfSl1ilViKMxINtZiLihMBYoq8xzEEAAA= DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20220729045045epcms2p8caf00317889ed4da8531b7466ec6e368 References: X-Spam-Status: No, score=-4.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch series is to clean up UFS's Write Booster code and adds sysfs attribute 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) V4: - split patch (The number of patches from 2 to 7) - modify dev messages - modify commit message V5: - drop (scsi: ufs: wb: Move ufshcd_is_wb_allowed() to callee) - fix condition check - add Document for sysfs attribute - move ufshcd_is_wb_buf_flush_allowed() to ufs-priv.h Jinyoung Choi (6): scsi: ufs: wb: Change wb_enabled condition test scsi: ufs: wb: Change functions name and modify parameter name scsi: ufs: wb: Add explicit flush sysfs attribute scsi: ufs: wb: Add ufshcd_is_wb_buf_flush_allowed() scsi: ufs: wb: Modify messages scsi: ufs: wb: Move the comment to the right position Documentation/ABI/testing/sysfs-driver-ufs | 10 ++++ drivers/ufs/core/ufs-sysfs.c | 46 +++++++++++++++- drivers/ufs/core/ufshcd-priv.h | 6 ++ drivers/ufs/core/ufshcd.c | 64 ++++++++++++---------- include/ufs/ufshcd.h | 1 + 5 files changed, 96 insertions(+), 31 deletions(-) -- 2.25.1