Received: by 2002:a05:7412:f589:b0:e2:908c:2ebd with SMTP id eh9csp1060642rdb; Wed, 1 Nov 2023 10:08:16 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG+OsyEZP7PpNmlrHdwHVLX4usoWb9c7WJIyKAhzm4OQU8bfbGDcB8+7wBr9Efjy5xF+s5W X-Received: by 2002:a17:902:f908:b0:1cc:4598:6f46 with SMTP id kw8-20020a170902f90800b001cc45986f46mr8046994plb.57.1698858495775; Wed, 01 Nov 2023 10:08:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698858495; cv=none; d=google.com; s=arc-20160816; b=ZTkWScKb6PinfeQoDzjBJfJYekea7mK7MFdTK/b3D1VFE0vduagVNi/ED7k8wSfCjD ZNWK97zIUaQqRZ8DJMyJA++vjyDljWQraanCEJHHNJ5UEXGqqJMwDsNHwe+XcPYe9Zkt q9xoT34YXqt6qJMJTncqezOYI9ZuHHiXX0t4FH5tUL88ICC8njzlWZ1ZV7MPqqTwwbJd UOg685aeNdEA8674Dv60BPi+wvg5KV90/kYQJLvA25qkLMl9WkKYr9r5ijkQgYX9Pkiu fvfz8UHlC93FrxIYNG6zndM+CDGfxwMYsnUYfS5KcoKAe6I7EHjUJw5GWTA+xuqY2x6T bZbQ== 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 :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=M+sNYo+81K509h19TdC0judu7XiMCvCmL9yTeAeh1N0=; fh=rNY2lR1XXs0gT7JfZUYbB9pooCQZPK86sGsM+AjeyE8=; b=EjNA7DFU69fEH/yLYYDSwToteduFZuCKZmpOXR0FNy5lTyNBTRIrD1cHi7rvjVQSIx R1kInhQsCcsAwKgsks53w9P4x9Q2f3yNm7zpKPoYUvFQAHucXmdzdJggwWJLvHR2smNA bOSkI2HtUEuvhgHklPo9hBYBlPt2WyqhgXtRF2oOQNZuNrIeems+wuxdvBnFOBzBf87I xrv462vcYsxzJiQJYRXnsi3iFPxpVLaCHxlR8OSJztXzZO5KxNnt9syYDf2cvrOk2qoU fRZiDPQa1s3z83dXTD2Qm1+Sq+QbtoyHP/LeOOqxKkHub1ZeDGiaPL7a7cKRQuCcetBw tJhg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=acm.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id iz11-20020a170902ef8b00b001c62d93585csi3225834plb.611.2023.11.01.10.07.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Nov 2023 10:08:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=acm.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id E471B80CCD1B; Wed, 1 Nov 2023 10:07:51 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344561AbjKARHh (ORCPT + 99 others); Wed, 1 Nov 2023 13:07:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38716 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231974AbjKARHg (ORCPT ); Wed, 1 Nov 2023 13:07:36 -0400 Received: from mail-pl1-f177.google.com (mail-pl1-f177.google.com [209.85.214.177]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7AD27A6; Wed, 1 Nov 2023 10:07:34 -0700 (PDT) Received: by mail-pl1-f177.google.com with SMTP id d9443c01a7336-1c434c33ec0so56528565ad.3; Wed, 01 Nov 2023 10:07:34 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698858454; x=1699463254; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=M+sNYo+81K509h19TdC0judu7XiMCvCmL9yTeAeh1N0=; b=ty3nUvPBVEthjThwugAOIgg59HqNOinNwZvm2LMNaavOJhk629QgikgTe/LUYr+W3h M4h/c206i1lPIXse6BG5Yoo/n0ZbNyWco4nkhhA0lAzT1n3V1XT4PGbYkKJOb76oX7qx wAP1FsDKk6kWES7dCyWD3zkLCfNTzhtH9tUOyk7JQ+3chT1HpA6BSshI340HbY30LvRs 4Azp6x9v1IkgmLQV6VkL0yQP4ctFSQ5JvkJr4TdqIft0OdcoZKXsMWKugAo71bYlMalq M1w5VdzcOPgZni1+1wl7AwO4sB+1rmtPShMYETlvuexXQvaGIkXI6xnTWGjIkay1/PI1 cGcw== X-Gm-Message-State: AOJu0YyLxfj1LCwvPtM7reTsOD1gtMoCAqTBX746KZBDGXYIMOOQtz4r pOe1g7aMyxVt3yM5puLkgvc= X-Received: by 2002:a17:903:294b:b0:1cc:641a:9bf1 with SMTP id li11-20020a170903294b00b001cc641a9bf1mr5042840plb.5.1698858453773; Wed, 01 Nov 2023 10:07:33 -0700 (PDT) Received: from ?IPV6:2620:15c:211:201:2312:f48f:8e12:6623? ([2620:15c:211:201:2312:f48f:8e12:6623]) by smtp.gmail.com with ESMTPSA id iz15-20020a170902ef8f00b001bbb7af4963sm1573118plb.68.2023.11.01.10.07.32 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 01 Nov 2023 10:07:33 -0700 (PDT) Message-ID: Date: Wed, 1 Nov 2023 10:07:31 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3] scsi: ufs: ufs-sysfs: Expose UFS power info Content-Language: en-US To: Can Guo , mani@kernel.org, stanley.chu@mediatek.com, adrian.hunter@intel.com, beanhuo@micron.com, avri.altman@wdc.com, junwoo80.lee@samsung.com, martin.petersen@oracle.com Cc: linux-scsi@vger.kernel.org, Alim Akhtar , "James E.J. Bottomley" , Lu Hongfei , open list References: <1698811243-5024-1-git-send-email-quic_cang@quicinc.com> From: Bart Van Assche In-Reply-To: <1698811243-5024-1-git-send-email-quic_cang@quicinc.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.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 (agentk.vger.email [0.0.0.0]); Wed, 01 Nov 2023 10:07:52 -0700 (PDT) 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