Received: by 2002:a05:7412:b795:b0:e2:908c:2ebd with SMTP id iv21csp95515rdb; Wed, 1 Nov 2023 18:49:57 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFYPDEnjblKfzy+HVNXJpWz8+7MQE9cgFPd5bMHtFK0SgynTa+SgQFIlBrdXgRIXSJCxzaJ X-Received: by 2002:a05:6a00:1593:b0:6be:2901:2cd with SMTP id u19-20020a056a00159300b006be290102cdmr17465744pfk.10.1698889797504; Wed, 01 Nov 2023 18:49:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698889797; cv=none; d=google.com; s=arc-20160816; b=s00PuQJi+OtVPq6MtOEHSWu/oPCDcX3iLDhAl/vj2g9mg9uMfbiDfTe8Jru2GQ45an kEnFehSnzEexx4hBhx53/BNPZtTd8EWNZy/V3FC2x+UAZuVgYMAcd2UsNFDYs5qEbAk9 5iPzUpJXHgBIWPPhQAq+b/0ONmndHgLgNq83iktCIUw3xtUpKBuDoWyiOQgrA4W8pHsk ZWOFQK6+RLD+WIBe6IYFbjclYMCvatroYRrQtcoX7INW75ehfMyZX3RL56FBHr9W5goT WQb6nZ6kViQPG0TuyAhKBzle0U3dfiR2bWX25i3tC6UGoISDESiIKRE+g+CgXGNZyuYq ItKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=DNmtD1Fyx0xLwPw+8zOcJX13mv4B2aavfM2aRPNcGZU=; fh=zEhn7upYS44JZyiLXgmc5cG3OH5+Wnmrsrx1hLR9Nlg=; b=McdCAhSxNuQ9qkTH2uGOp10G1zfPXo6aL7B25ngLvG+qx60Jr5yyswUTZUhDsF8AYK LJQRx6QxpM+sJBdhRyn5uJumbKN9dV5bRaOZuyJ+JTKBk7WwyQ9Px4ezUZwAHdsoMrAS ag+WL9Vi1370fYyuD7G5r/FiTqh8wtTS0MIM3+Qbq7C5Vm6eN0MCnGgVFMeVOk7QEN0N nr8QKP0bfVqTG/unvQ4ldylCg+2DhEHgm33u9nVrvaj4e1P+0Bp/WGqKgwHS7MN5JO+c GlXnTp08qj08p58mAhvnnutbR4oaeOa4o4BnT2YmQ89TjWcZA2YyRuCSORTJ0YQPpg7M cqbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=O+T6YT9E; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id by20-20020a056a02059400b0058afac51c12si1171428pgb.545.2023.11.01.18.49.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Nov 2023 18:49:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=O+T6YT9E; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 4B7358022680; Wed, 1 Nov 2023 18:49:51 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232993AbjKBBtc (ORCPT + 99 others); Wed, 1 Nov 2023 21:49:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33824 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232035AbjKBBtb (ORCPT ); Wed, 1 Nov 2023 21:49:31 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2F15A110; Wed, 1 Nov 2023 18:49:26 -0700 (PDT) Received: from pps.filterd (m0279873.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3A20vYpB025132; Thu, 2 Nov 2023 01:49:06 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=qcppdkim1; bh=DNmtD1Fyx0xLwPw+8zOcJX13mv4B2aavfM2aRPNcGZU=; b=O+T6YT9EjTajZinTmphRzXYdyeFQpdJw4pNO9spo1lHGKPqEQWuIcE2PJh1AG7Q/t3Qv QruS9CzCJUs+F9zJmZ6EwHpuevCe0EaeUvoFPvuZZf44h3lYtr3uWsuvcNnpXGJurnp7 W++Vr5RMSWkqK7hpHD4bc0vDnUY3X4evnolOGBXddfy0rY1WsJaI2AXDXiqsR0d5/HgI Y0Ck0OkDglXD7Se2FkbZrvPq5h6//pkrm0gzXkqhEvXMMivD1HZP0xTSmkm/fNdjI53Z bKDBK8qxMDLiGy75RZVjfxdIuta88Iv7ltveHXJngFVpsxUPlpyoO2P/N2S42MxPPGoP dQ== Received: from nalasppmta02.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3u3a5ekyxc-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 02 Nov 2023 01:49:05 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA02.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 3A21n49Q002371 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 2 Nov 2023 01:49:04 GMT Received: from [10.253.74.76] (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.39; Wed, 1 Nov 2023 18:49:01 -0700 Message-ID: Date: Thu, 2 Nov 2023 09:48:58 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Subject: Re: [PATCH v3] scsi: ufs: ufs-sysfs: Expose UFS power info To: Bart Van Assche , , , , , , , CC: , Alim Akhtar , "James E.J. Bottomley" , Lu Hongfei , open list References: <1698811243-5024-1-git-send-email-quic_cang@quicinc.com> Content-Language: en-US From: Can Guo In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: B7oJ4lXpztjDpjji8uCVxKjctiTVRV37 X-Proofpoint-ORIG-GUID: B7oJ4lXpztjDpjji8uCVxKjctiTVRV37 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.987,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-11-01_23,2023-11-01_02,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 priorityscore=1501 bulkscore=0 adultscore=0 spamscore=0 lowpriorityscore=0 malwarescore=0 phishscore=0 impostorscore=0 mlxscore=0 mlxlogscore=892 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2310240000 definitions=main-2311020013 X-Spam-Status: No, score=-4.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Wed, 01 Nov 2023 18:49:51 -0700 (PDT) Hi Bart, On 11/2/2023 1:07 AM, Bart Van Assche wrote: > On 10/31/23 21:00, Can Guo wrote: >> +    return sysfs_emit(buf, "%s\n", hba->pwr_info.hs_rate ? >> + ufshcd_ufs_hs_gear_to_string(hba->pwr_info.gear_rx) : >> + ufshcd_ufs_pwm_gear_to_string(hba->pwr_info.gear_rx)); >> +} > > A nit: this is not how kernel code should be indented. I think that > "ufshcd_..." should be aligned with "buf,". > > Anyway: > > Reviewed-by: Bart Van Assche Will address it in next version. Thanks, Can Guo.