From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-dy1-f182.google.com (mail-dy1-f182.google.com [74.125.82.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AFFA730AAA9 for ; Sat, 16 May 2026 17:43:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.82.182 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778953436; cv=none; b=PGaWFRyGCf6bHE433i64Bv3A0Ccbq5Iwq0RzZOGv6EvWsKkllsrvqEovV9hvShKwqLqmPIrdetsQ5Lhku65i+Rb5cg48X8dx7a55A7ABbrcPphHYaFz4sl0xaNSF7APsnER7/gLVLsu6QZUeGU4oqj/Raa/C8fZI121Hd7FnkJg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778953436; c=relaxed/simple; bh=csTK/HbKKC6v2Ikk6PQp3X4XP1MiazJHTn4tijrsTPw=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=gUXM5rTaxqsAtBKqwQQzteL0MhJOCXYAMUSFN0R7FZSvMAOjEYbbhE0guXk4tEUbPU83iwX3+DzpUEVL91lEUx+U812LiLERVqqC6NYUdiTAmR15i93roAAd9W1fqoUqa3jkxBS6BmpzQc7bEP0GGknR21FjDmQS4/2gyJc5/pY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=roeck-us.net; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=RNmU0SOd; arc=none smtp.client-ip=74.125.82.182 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=roeck-us.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="RNmU0SOd" Received: by mail-dy1-f182.google.com with SMTP id 5a478bee46e88-2f36da5c8fbso756380eec.0 for ; Sat, 16 May 2026 10:43:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1778953433; x=1779558233; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:from:to:cc:subject:date:message-id :reply-to; bh=2bT/ht7TDh8ru/ZEga5H1yY/vbnW0GAOum+ohG5JvRE=; b=RNmU0SOdWPxyof+7z+kaI70mFusT5cVhRHh3tQlcZiySf7HjdkVeF0wyRiTWkpsihE BLfC6l8hpgvetgSQaWN3b/yL0YqTSz1JKGcWOqL79cuvEkNGk6Hj68aD66BxAG43qhJF 9Cu+tw1F4bqKA5s+SgWE3lTnTXp+s1Crv+ncUUxhCXx7BdkLTSfatS/WpzeK0e5WVYzG k+WSIG518cojlBTDEYWQDwqrIFGRAQENB9grQ02E3CzmiR4bFGBgRQ+ZQFcyptM/Ra4U N1GI0dIVlO3WFE8fba4Tu7zZzrM5bicp9lCdqfuD/mxAGHkT8d50Ki9dsXDLqIdZgqbC KPXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1778953433; x=1779558233; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=2bT/ht7TDh8ru/ZEga5H1yY/vbnW0GAOum+ohG5JvRE=; b=UtF2FSt26GLcjqM20GeLy43PpxR3X8J/yNjILPgUJ+xROVQ1kHobWyLZfP4q+WWq03 l9HTYH7ArhR0W+vpiZa8mjAawtex9NeOHbwhGJ/lwwWms2UBzi8gn2AuWll6tHUB/Hed ftdgLg2UXn8BRfLu/dKb57BJKuIXHusAdfeIRzY99XndETR8xHX13amCNnSRBjYeg5l6 dbRYZtKPfhwVMmMQBaC1/uJwg5qmeJubuatwgQiqcxBHUMBJA12pNojqy2KEDCKh3HGD +RkPRpB3vwzX3wWwQkUNZccaIUv65FVkO4H4xyKIyDSTA0lKMopU85yB2JPujuTcZtjD Kdiw== X-Forwarded-Encrypted: i=1; AFNElJ/GbjoFdgW+4iCSxrU7SauG+0Jl1laiqNnNhtJ8ZD4tHVLK40zVUL0sAYO0V2zuDrMrdBqvo+YyLud2liQ=@vger.kernel.org X-Gm-Message-State: AOJu0Yy3xy09vBWATP/rRLGMM40IHBEtLfiBRqERnIhrm1f3wM/42QWd A37VAZ7KuFFDNXlFhGzu+BrSG17jqMDRJEqotfw5gvIWmOZ202YgWlP3 X-Gm-Gg: Acq92OGBSLF5fPAD7QZf6Pm40zUmw5/ctMrkzJHI3fw5oOq5RlVmh3xwuvZgApTFttG ym4JHv9N9z4WAq6a6qdN0xr3VlGzJdNS5Xa7jGxYjC7rQzW80DK2xT/Yuk+EL1rHnN09w5KYEED rJEutK6/ZPXLcgTbgiuHuOGh0boa+MmmqdGQv7gUYrEpd0AuSnZx3/TO4m2Um9qEH0BXpQ8utSe XegRDPFBRth7M+W5LxUnOb1pkFfVmI5GSGM1bZaYExE1IIXRQIP62YXMfTuJql0uSPWsfwfsMkX evy9XBj6HNxJTmwZLcGmUton4wUqhX2bhokvyCHFvYMtJfr6PSd2IASl8sy7dUKf9sGv6oyK010 7sl+6NWEHCP2wPLGeOskAkB9S2cjOV2e/IM379AqCm8OTXRWugPZYRJoo5TjWw+zcPJ9CajjR2U t5hOKyvwA1qivC+u/kxeFisQsjLe9/E5ud3YnxCI+WODEi58I= X-Received: by 2002:a05:7300:b209:b0:2d0:239a:23cb with SMTP id 5a478bee46e88-30398655ecemr3889054eec.16.1778953432798; Sat, 16 May 2026 10:43:52 -0700 (PDT) Received: from server.roeck-us.net ([2600:1700:e321:62f0:da43:aeff:fecc:bfd5]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-302973bcd0csm10467417eec.24.2026.05.16.10.43.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 16 May 2026 10:43:52 -0700 (PDT) Sender: Guenter Roeck Date: Sat, 16 May 2026 10:43:51 -0700 From: Guenter Roeck To: Chen-Shi-Hong Cc: corbet@lwn.net, skhan@linuxfoundation.org, linux-hwmon@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3] Documentation: hwmon: lm75: document sysfs interface Message-ID: <9882b9cf-7b10-411d-be41-2da298500db2@roeck-us.net> References: <20260516160823.1461-1-eric039eric@gmail.com> <20260516170728.2066-1-eric039eric@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260516170728.2066-1-eric039eric@gmail.com> On Sun, May 17, 2026 at 01:07:27AM +0800, Chen-Shi-Hong wrote: > Document the sysfs attributes supported by the lm75 driver. > > The driver exposes temp1_input, temp1_max, temp1_max_hyst, and the > standard update_interval attribute. Some chips also expose temp1_alarm, > and temp1_label is available if a label is provided for the device. > > Add a sysfs-Interface section to Documentation/hwmon/lm75.rst to > describe the supported attributes and clarify that temp1_alarm, > temp1_label, and the write permissions of update_interval depend on the > chip. > > Signed-off-by: Chen-Shi-Hong When I tried to apply this patch, I noticed that a similar patch is already queued in hwmon-next. Sorry that I didn't realize this earlier. Guenter > --- > Changes in v2: > - Document temp1_label as conditionally available when a device label is > provided. > > Changes in v3: > - Add changelog requested during review. > > Documentation/hwmon/lm75.rst | 25 +++++++++++++++++++++++++ > 1 file changed, 25 insertions(+) > > diff --git a/Documentation/hwmon/lm75.rst b/Documentation/hwmon/lm75.rst > index 4269da04508e..fa8ddcaa0c2b 100644 > --- a/Documentation/hwmon/lm75.rst > +++ b/Documentation/hwmon/lm75.rst > @@ -181,3 +181,28 @@ is supported by this driver, other specific enhancements are not. > > The LM77 is not supported, contrary to what we pretended for a long time. > Both chips are simply not compatible, value encoding differs. > + > +sysfs-Interface > +--------------- > + > +================ ============================================ > +temp1_input temperature input > +temp1_max maximum temperature > +temp1_max_hyst maximum temperature hysteresis > +================ ============================================ > + > +If a label is provided for the device, the following attribute is also > +available: > + > +================ ============================================ > +temp1_label temperature channel label > +================ ============================================ > + > +If supported by the chip, the following attribute is also available: > + > +================ ============================================ > +temp1_alarm temperature alarm > +================ ============================================ > + > +The standard update_interval attribute is also supported. Its write > +permissions depend on the chip.