Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp2562207imn; Tue, 2 Aug 2022 07:41:20 -0700 (PDT) X-Google-Smtp-Source: AGRyM1v8LQlEVpGLff9AWuA3iIwnZ5SwuhttCLGJhYNj3e13nBN+at1CS3CL+8LB9ZhcP/ew2cfR X-Received: by 2002:a05:6402:371a:b0:43a:ece9:ab8e with SMTP id ek26-20020a056402371a00b0043aece9ab8emr20938350edb.126.1659451279828; Tue, 02 Aug 2022 07:41:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659451279; cv=none; d=google.com; s=arc-20160816; b=CoUW2rgOAcjIsYovL3PcXrs4Eggx4d1Ex9pMJ7FSYpP2Gw7QjhGYvKwdC6BP4thyuO QtgzVnj/Nmp2TTHNoDWV3J3mZQO+lE3drQHDjezNj4htiDIo1BoDbTWsWMZp6Uu+SR82 5Ctyz5RejMwULUzthJVjiOnf5wr9kCBaxLYHd/eFGzXPUeqZvIH0PURNY+kMwTMcMudI VWyFvMXE9MpM4/xeOXNIRviKnrgtuA1E0hsV6/K66Wz4nxyZpNNz2+qNm9h2YHwmXier 3mQWlTz+5tURu/oJO2Z/k1nQEmFyY3/oJJW8dGFS6tEa8ve4n2N8oRMMPnCs8A3B5FmE MkzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=RDs6awO6VCv+ESUehDACchXulBPRYE1xCdDOQIT00OU=; b=QmBAjuhjOPk5SpR5cq1aEyjRoAq208725UyTqOD6ej2hPtzTNI9goAJ2mnVJtqii+5 JuiPCoHHqs8WMF4KispuDYTA8k1DS778ItMeFtJFx44LMjYQj6NL8/CUqwRw9yKRATcz g0O0hZtc0YnGQ6YH3crr5oEI78FR0FLUPH219CoYO3n54dRLUuVsJ4Dxq5mgEqInCksz YLTla5BK4Cod0pQEyjXLIlJA3d/nIAysr1d9FWjW5PLeiJnEuBV9z7q/xpTRYIInzQDw thgRJkND7iVbralpuBa3MpApwieWwRQzPwrw5doioqh1opXt9HF7mIUnTf7tdB14QJFA zYpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=ilqTGIgI; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n20-20020aa7db54000000b0043ab664c9e7si10935008edt.282.2022.08.02.07.40.54; Tue, 02 Aug 2022 07:41:19 -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=@gmail.com header.s=20210112 header.b=ilqTGIgI; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236694AbiHBOMU (ORCPT + 99 others); Tue, 2 Aug 2022 10:12:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40302 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234097AbiHBOMT (ORCPT ); Tue, 2 Aug 2022 10:12:19 -0400 Received: from mail-lf1-x12f.google.com (mail-lf1-x12f.google.com [IPv6:2a00:1450:4864:20::12f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C47A51B7A1; Tue, 2 Aug 2022 07:12:17 -0700 (PDT) Received: by mail-lf1-x12f.google.com with SMTP id bq11so17028982lfb.5; Tue, 02 Aug 2022 07:12:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc; bh=RDs6awO6VCv+ESUehDACchXulBPRYE1xCdDOQIT00OU=; b=ilqTGIgIgHGQ+3zthdqUAJskTvQ+6/u5bNroSJgRtYecDJ7LkMhgjtk87W1TnWNoxU aIhsMpzaPh1wJbXeCKGIVo8sP+UjMeK3yAJ28NUGLdXjZFASVErUewWisLsoW/6SCr1P tVlFRU/1nU03UybLsg6d14h+2NUvDog7DrWyAl4sht6+eeso9WLpflVxV15vVRl8PGkI J2qEPBpolzJ7CFIt2Yldvo/9AMvS6idj2LGcvlGIyTiPonXBLcdYJfa8N/Hz3GrqTylB 9LBFv2iEzvAPm2oYyCGWeWYLKLFXCK6p6jHT7X7f+7OtBHH0XMrOXNyGJNL6ETYp5rx0 ZoIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc; bh=RDs6awO6VCv+ESUehDACchXulBPRYE1xCdDOQIT00OU=; b=ie0ZGqUb6m9ipgKSNNWjJbzw69ZfhRfKrx0Qa/T8FAaRMpaJlNH+jVk+bqNVzfk6sw mRgJnzwESHO5y4dIcNpWJT8EGqixfjpGLkMAfxnQ5W2kvD1OgbwAMuW7V5cycrw11r4q oFcYEWFWUsr/MrRmdR/YIyHJ9aAUQT1aAx96NbRp0KbxBxbwBhbBitT6tI8sKXhV5xG3 V/mJDSCEKUtBMQS+O7PxcOt/GDThkFsSbWCz16CpCduCxEIxlQF0GdT1lTw5SAM+gQ4P 5V7+VYhleMbgaa8nGctu9lQ+D4P1pP59sEavy7O6hbaPro4YN9s25k6pg2m823JTh+hz QMiw== X-Gm-Message-State: AJIora8K+TnBMopnjR/SdOS807k7/4u/W1Hixlt3cKuth+KmkwCsGGAS iHcx4egYQ3/80NNW/86eLk3SBVAApC5UNCgG/g== X-Received: by 2002:a05:6512:1694:b0:48a:9d45:763f with SMTP id bu20-20020a056512169400b0048a9d45763fmr7228575lfb.662.1659449535538; Tue, 02 Aug 2022 07:12:15 -0700 (PDT) MIME-Version: 1.0 References: <20220802080146epcms2p24b86bfce3d3c09c79b91d861cb3b2cce@epcms2p2> <20220802080927epcms2p1d0d89c32a9bd07c07f233801bb954807@epcms2p1> In-Reply-To: <20220802080927epcms2p1d0d89c32a9bd07c07f233801bb954807@epcms2p1> From: Stanley Chu Date: Tue, 2 Aug 2022 22:12:03 +0800 Message-ID: Subject: Re: [PATCH v6 5/6] scsi: ufs: wb: Modify messages To: j-young.choi@samsung.com Cc: 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" , "stanley.chu@mediatek.com" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,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 Hi, On Tue, Aug 2, 2022 at 4:29 PM Jinyoung CHOI wro= te: > > Messages are modified to fit the format of others. > > Reviewed-by: Avri Altman > Reviewed-by: Bart Van Assche > Signed-off-by: Jinyoung Choi > --- > drivers/ufs/core/ufs-sysfs.c | 2 +- > drivers/ufs/core/ufshcd.c | 23 +++++++++++------------ > 2 files changed, 12 insertions(+), 13 deletions(-) > > diff --git a/drivers/ufs/core/ufs-sysfs.c b/drivers/ufs/core/ufs-sysfs.c > index 2c0b7f45de4b..117272cf7d61 100644 > --- a/drivers/ufs/core/ufs-sysfs.c > +++ b/drivers/ufs/core/ufs-sysfs.c > @@ -230,7 +230,7 @@ static ssize_t wb_on_store(struct device *dev, struct= device_attribute *attr, > * If the platform supports UFSHCD_CAP_CLK_SCALING, turn = WB > * on/off will be done while clock scaling up/down. > */ > - dev_warn(dev, "To control WB through wb_on is not allowed= !\n"); > + dev_warn(dev, "It is not allowed to configure WB!\n"); > return -EOPNOTSUPP; > } > > diff --git a/drivers/ufs/core/ufshcd.c b/drivers/ufs/core/ufshcd.c > index 5099d161f115..dcd7f03db2a2 100644 > --- a/drivers/ufs/core/ufshcd.c > +++ b/drivers/ufs/core/ufshcd.c > @@ -5737,13 +5737,13 @@ int ufshcd_wb_toggle(struct ufs_hba *hba, bool en= able) > > ret =3D __ufshcd_wb_toggle(hba, enable, QUERY_FLAG_IDN_WB_EN); > if (ret) { > - dev_err(hba->dev, "%s Write Booster %s failed %d\n", > - __func__, enable ? "enable" : "disable", ret); > + dev_err(hba->dev, "%s: Write Booster %s failed %d\n", > + __func__, enable ? "enabling" : "disabling", ret)= ; > return ret; > } > > hba->dev_info.wb_enabled =3D enable; > - dev_info(hba->dev, "%s Write Booster %s\n", > + dev_info(hba->dev, "%s: Write Booster %s\n", > __func__, enable ? "enabled" : "disabled"); You need to rebase this patch to follow the latest change as https://lore.kernel.org/all/20220709000027.3929970-1-bjorn.andersson@linaro= .org/ > > return ret; > @@ -5757,11 +5757,11 @@ static void ufshcd_wb_toggle_buf_flush_during_h8(= struct ufs_hba *hba, > ret =3D __ufshcd_wb_toggle(hba, enable, > QUERY_FLAG_IDN_WB_BUFF_FLUSH_DURING_HIBERN8); > if (ret) { > - dev_err(hba->dev, "%s: WB-Buf Flush during H8 %s failed: = %d\n", > - __func__, enable ? "enable" : "disable", ret); > + dev_err(hba->dev, "%s: WB-Buf Flush during H8 %s failed %= d\n", > + __func__, enable ? "enabling" : "disabling", ret)= ; > return; > } > - dev_dbg(hba->dev, "%s WB-Buf Flush during H8 %s\n", > + dev_info(hba->dev, "%s: WB-Buf Flush during H8 %s\n", > __func__, enable ? "enabled" : "disabled"); > } > > @@ -5775,14 +5775,13 @@ int ufshcd_wb_toggle_buf_flush(struct ufs_hba *hb= a, bool enable) > > ret =3D __ufshcd_wb_toggle(hba, enable, QUERY_FLAG_IDN_WB_BUFF_FL= USH_EN); > if (ret) { > - dev_err(hba->dev, "%s WB-Buf Flush %s failed %d\n", __fun= c__, > - enable ? "enable" : "disable", ret); > + dev_err(hba->dev, "%s: WB-Buf Flush %s failed %d\n", > + __func__, enable ? "enabling" : "disabling", ret)= ; > return ret; > } > > hba->dev_info.wb_buf_flush_enabled =3D enable; > - > - dev_dbg(hba->dev, "%s WB-Buf Flush %s\n", > + dev_info(hba->dev, "%s: WB-Buf Flush %s\n", > __func__, enable ? "enabled" : "disabled"); > > return ret; > @@ -5800,7 +5799,7 @@ static bool ufshcd_wb_presrv_usrspc_keep_vcc_on(str= uct ufs_hba *hba, > QUERY_ATTR_IDN_CURR_WB_BUFF= _SIZE, > index, 0, &cur_buf); > if (ret) { > - dev_err(hba->dev, "%s dCurWriteBoosterBufferSize read fai= led %d\n", > + dev_err(hba->dev, "%s: dCurWriteBoosterBufferSize read fa= iled %d\n", > __func__, ret); > return false; > } > @@ -5885,7 +5884,7 @@ static bool ufshcd_wb_need_flush(struct ufs_hba *hb= a) > QUERY_ATTR_IDN_AVAIL_WB_BUFF_SIZE, > index, 0, &avail_buf); > if (ret) { > - dev_warn(hba->dev, "%s dAvailableWriteBoosterBufferSize r= ead failed %d\n", > + dev_warn(hba->dev, "%s: dAvailableWriteBoosterBufferSize = read failed %d\n", > __func__, ret); > return false; > } > -- > 2.25.1 --=20 Yours truly, =E6=9C=B1=E5=8E=9F=E9=99=9E (Stanley Chu)