Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp2443199pxb; Fri, 8 Oct 2021 07:57:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyr3OeRbhR+p5+4pWLVokRhDhDQkmlSqUz9uPxurAthhIV7SxqQc2WWfGClSg0mVdxDVe+U X-Received: by 2002:a05:6402:21d6:: with SMTP id bi22mr15644696edb.40.1633705028813; Fri, 08 Oct 2021 07:57:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633705028; cv=none; d=google.com; s=arc-20160816; b=ClZEFWO9PwVYnvPF/LQn8SCMNftYZoVPocFtr3m38Zt8yIwItlBK7WKmu3jWdZGmjW qTrIeW1dzh52hWZPR9dPWBAbKMQ/VJXhnghULkWv0ME1Uw2mpC7lBcEYecMqzMhCPbkS TbCu/VNbdmRwU+sOae0aE3nkVEEwwy06KkAa14jSD1OnThbLjUdHjfLL9vmTMB41MPgo zGvbvuCO6sUGp/mBvmO0DuEF8Tc+QOJWFBnWnoeqY3qr6W3phTNZEME/9fxMfMHheEdY oGtfjkBjOw24JKJgjStXzHcrCb7Gx9wxN5Tn8TKGKgqk7r3Bj92ddNi0dzVm5jHmJTre 2jdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:subject:from :references:cc:to:sender:dkim-signature; bh=foYn8H7q3UIU7Of1c0FoDcVDC713rvA1GWkczdQekyI=; b=SzI/UIsHWJjcXeTHu9ADsn/3V7i/VPUQICa5x82dWyWy2+vbQVUngi1jszTyDsopDJ gydAZnyRw0rjzks1naD6VazqK9Mcag2CdtHDgMgPGDhxahfY4wLQMlUSHwbljXazTaFW ZDttcCpEIBKZ7fnVhyEEA9pqcmk46RZ/eQD1iXOfbd8k5uvXOr3HLHpVzSWsU1/mzclK P/S9sKr6KsEXjK2tGfPSSpFicB7d1bWxcnUrFCKOBcAqqQFi8YAe6DbMkUGpJGR+3PJT LSxS3ltRxorvsi7KL4hMxvfygxfz9pcCkAV1tuMTW3WU1Fbo4YnggvPr/mLRrlvq7G/X 5tHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="T/o++cVB"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l17si3522101ejn.343.2021.10.08.07.56.44; Fri, 08 Oct 2021 07:57:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="T/o++cVB"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242602AbhJHOzC (ORCPT + 99 others); Fri, 8 Oct 2021 10:55:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52506 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232200AbhJHOy7 (ORCPT ); Fri, 8 Oct 2021 10:54:59 -0400 Received: from mail-oi1-x22e.google.com (mail-oi1-x22e.google.com [IPv6:2607:f8b0:4864:20::22e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 689C1C061570; Fri, 8 Oct 2021 07:53:04 -0700 (PDT) Received: by mail-oi1-x22e.google.com with SMTP id 24so14196946oix.0; Fri, 08 Oct 2021 07:53:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:to:cc:references:from:subject:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=foYn8H7q3UIU7Of1c0FoDcVDC713rvA1GWkczdQekyI=; b=T/o++cVBomAjw5uW/ulvoVFPzEyUBZ7/bSHSLnGv3znmS3lyRV2xnll/7QK6O8xtBn DJgQerKW9BxIbH3IfmB7B7kqb/KnEsk0P0MPEmKIWCD92yfDN2KxT825JpLFreU/18tH 6z28nYb4xIFV5GANFPFYZdqZqYkBSMR7ckyI7Kr9VBud2CO5pszCxcdDyt0mgOBakJc3 V66mbBLNgKSn9lR1YfH1mxZOTg8tq3I+eedxRINClbWFFDWK1KYGTXFB9N1BzMiHWo9D rwv4SCdyFBc8yuF6vsVWVldftbePJWv/70IuX2Jq/K3Ew4hUjutHxThJQydjR2y+03i/ Hxow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:to:cc:references:from:subject:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=foYn8H7q3UIU7Of1c0FoDcVDC713rvA1GWkczdQekyI=; b=FmVJiIGJg+AX0Iv3eOu/eDJCLhwoIZnl35Xda+SpvBOFBe1IDWnP1GvHe1lYobgWSA 1n6KHoMexi/Nn3TfnEXjCl04p5fEYVGwl1mMEF6Jc/bcTMGemNWdQn396qJbZ8NfYPiC dZYqQgbsH4zclXPfSOPkaR8uQEL1gv78SrOfe9GC73AP61UUXCtncSVSIUgXYOAlzadW OVjDEnYczWce1voTqG0YWAnD96m3rLj7+SOXngAmH5UGPiDrK4PFsF10keDvWq2HgmJ1 xiP9NSneVsWssTnwelwqRbHqfMQlJ+DpFtNXYH1s7aWnhp4BJp6DPZ4qrM92CkLsq5fP Rf0g== X-Gm-Message-State: AOAM532e/PAjbjOmtw3ILKX7P3zXSegrLMK9vQ6uFsEU1woVvmEA6NtH M9uKNSNXNDsdc4Sq3n2Y8COndUCjeRo= X-Received: by 2002:a05:6808:2107:: with SMTP id r7mr7557160oiw.153.1633704783489; Fri, 08 Oct 2021 07:53:03 -0700 (PDT) Received: from server.roeck-us.net ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id d14sm584747otq.65.2021.10.08.07.53.01 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 08 Oct 2021 07:53:02 -0700 (PDT) Sender: Guenter Roeck To: Mauro Carvalho Chehab , Linux Doc Mailing List , Greg Kroah-Hartman Cc: Jonathan Corbet , Jean Delvare , linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org References: From: Guenter Roeck Subject: Re: [PATCH v2 3/7] ABI: sysfs-class-hwmon: add a description for tempY_crit_alarm Message-ID: <3ae66959-1bc0-09ed-b772-079030bc1c1f@roeck-us.net> Date: Fri, 8 Oct 2021 07:53:01 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 9/30/21 2:44 AM, Mauro Carvalho Chehab wrote: > Such ABI symbol is currently not described. Document it. > > Signed-off-by: Mauro Carvalho Chehab > --- > > See [PATCH v2 0/7] at: https://lore.kernel.org/all/cover.1632994837.git.mchehab+huawei@kernel.org/ > > Documentation/ABI/testing/sysfs-class-hwmon | 14 ++++++++++++++ > 1 file changed, 14 insertions(+) > > diff --git a/Documentation/ABI/testing/sysfs-class-hwmon b/Documentation/ABI/testing/sysfs-class-hwmon > index ea5a129ae082..1f20687def44 100644 > --- a/Documentation/ABI/testing/sysfs-class-hwmon > +++ b/Documentation/ABI/testing/sysfs-class-hwmon > @@ -410,6 +410,20 @@ Description: > > RW > > +What: /sys/class/hwmon/hwmonX/tempY_crit_alarm > +Description: > + Critical high temperature alarm flag. > + > + - 0: OK > + - 1: temperature has reached tempY_crit > + > + RW > + > + Contrary to regular alarm flags which clear themselves > + automatically when read, this one sticks until cleared by > + the user. This is done by writing 0 to the file. Writing > + other values is unsupported. > + That is not really correct. It _may_ be current implementation for some drivers, but such an implementation would not be correct. The proper implementation would be to auto-clear the flag after it was read unless the condition persists. > What: /sys/class/hwmon/hwmonX/tempY_crit_hyst > Description: > Temperature hysteresis value for critical limit. > This should be documented as part of the previous patch, together with all other alarm attributes. Guenter