From patchwork Wed Jul 27 07:12:49 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jinyoung Choi X-Patchwork-Id: 12930204 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 9E5E5C04A68 for ; Wed, 27 Jul 2022 07:12:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230029AbiG0HMy (ORCPT ); Wed, 27 Jul 2022 03:12:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51578 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229506AbiG0HMx (ORCPT ); Wed, 27 Jul 2022 03:12:53 -0400 Received: from mailout2.samsung.com (mailout2.samsung.com [203.254.224.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 97B371BEB1 for ; Wed, 27 Jul 2022 00:12:52 -0700 (PDT) Received: from epcas2p3.samsung.com (unknown [182.195.41.55]) by mailout2.samsung.com (KnoxPortal) with ESMTP id 20220727071250epoutp02e44e46bd24a9421469b303942648d5eb~FnjDxzTUh3132831328epoutp02t for ; Wed, 27 Jul 2022 07:12:50 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.samsung.com 20220727071250epoutp02e44e46bd24a9421469b303942648d5eb~FnjDxzTUh3132831328epoutp02t DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1658905970; bh=l0Bgpxh4TlvdrkA1gLCilMGgdoJi0qUAAhSNhvZnPXg=; h=Subject:Reply-To:From:To:In-Reply-To:Date:References:From; b=nStfzfYopHWZ6rbznG4J3lV8gkZX0KVeFxtRgJ6QD63vjyis0isTWp7WQ2p6J8+EV gCDaiQKJWm3NWNbe2vW1h7ibI5feoceTEzZczmbiEGH4I+4bJ65xYME9JLdUlmX4Ey 51JYO1eVqZCx8ysbX1sqVIKYDUHUmvgIh4XJoHzQ= Received: from epsnrtp2.localdomain (unknown [182.195.42.163]) by epcas2p3.samsung.com (KnoxPortal) with ESMTP id 20220727071250epcas2p3778c09190e5c5250eeac8e237aa36882~FnjDLMhmf2750027500epcas2p3G; Wed, 27 Jul 2022 07:12:50 +0000 (GMT) Received: from epsmges2p3.samsung.com (unknown [182.195.36.68]) by epsnrtp2.localdomain (Postfix) with ESMTP id 4Lt4js5lQ1z4x9Q1; Wed, 27 Jul 2022 07:12:49 +0000 (GMT) X-AuditID: b6c32a47-5f7ff700000025aa-98-62e0e571d589 Received: from epcas2p2.samsung.com ( [182.195.41.54]) by epsmges2p3.samsung.com (Symantec Messaging Gateway) with SMTP id E2.87.09642.175E0E26; Wed, 27 Jul 2022 16:12:49 +0900 (KST) Mime-Version: 1.0 Subject: [PATCH v4 7/7] scsi: ufs: wb: Move the comment to the right position 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 In-Reply-To: <20220727071143epcms2p4936513ee2d020b914db53f438445801a@epcms2p4> 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: <20220727071249epcms2p4f014deb4b3eef7d37f810bc26b1160e7@epcms2p4> Date: Wed, 27 Jul 2022 16:12:49 +0900 X-CMS-MailID: 20220727071249epcms2p4f014deb4b3eef7d37f810bc26b1160e7 X-Sendblock-Type: AUTO_CONFIDENTIAL X-CPGSPASS: Y X-CPGSPASS: Y CMS-TY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/33RSIvYte02Pe9ChPb+3qPed2L3a511S8S ruqc1tkbKL1AI9J5/SRdRS+7oN4XDa9edzStXbiHe1HnigDzuyz/rNx/ON/T9BG8av1D9Vfe BMGkfTl/Nzr2Xb2wjyt6ZvnO5Vzr72Vpm68Q6bR98Det/4mb9H0P49XbXzQG7qwztJicetrk xNZjGqGxD34wCtVE/Klzvf3JYTeP5x3lCOvZZkosxRmJhlrMRcWJAF0fKEAyBAAA DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20220727065904epcms2p60a7a56101785ddefa55c82b3cc25116d References: <20220727071143epcms2p4936513ee2d020b914db53f438445801a@epcms2p4> <20220727071024epcms2p70366b54ac8eca3758b7cf4336e0d457c@epcms2p7> <20220727070841epcms2p5e212d617dd0f985555fa052f099013f0@epcms2p5> <20220727070724epcms2p8e449d0c89b52f03a9d3dc254df0ec547@epcms2p8> <20220727070410epcms2p5206785e4d960b32dcbb6729710dab535@epcms2p5> <20220727065904epcms2p60a7a56101785ddefa55c82b3cc25116d@epcms2p6> Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org The location of the comment is wrong. so fix it. Reviewed-by: Avri Altman Signed-off-by: Jinyoung Choi --- drivers/ufs/core/ufshcd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/ufs/core/ufshcd.c b/drivers/ufs/core/ufshcd.c index c91010fb2105..cc149f78f38f 100644 --- a/drivers/ufs/core/ufshcd.c +++ b/drivers/ufs/core/ufshcd.c @@ -1298,9 +1298,10 @@ static int ufshcd_devfreq_scale(struct ufs_hba *hba, bool scale_up) } } - /* Enable Write Booster if we have scaled up else disable it */ downgrade_write(&hba->clk_scaling_lock); is_writelock = false; + + /* Enable Write Booster if we have scaled up else disable it */ ufshcd_wb_toggle(hba, scale_up); out_unprepare: