From: Avri Altman <Avri.Altman@wdc.com>
To: Guenter Roeck <linux@roeck-us.net>,
"Martin K . Petersen" <martin.petersen@oracle.com>
Cc: "linux-scsi@vger.kernel.org" <linux-scsi@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
Bart Van Assche <bvanassche@acm.org>
Subject: RE: [PATCH 2/2] scsi: ufs: hwmon: Add missing ABI documentation
Date: Tue, 14 Jan 2025 15:01:24 +0000 [thread overview]
Message-ID: <DM6PR04MB6575F5273B102C74DD3AD96EFC182@DM6PR04MB6575.namprd04.prod.outlook.com> (raw)
In-Reply-To: <2f2fe6f6-cc10-48fc-8df6-b82e4ba22247@roeck-us.net>
> On 1/14/25 01:35, Avri Altman wrote:
> > This commit adds ABI documentation for the UFS hwmon driver, detailing
> > the sysfs attributes exposed by the driver. It includes the missing
> > temperature notification entries, that were added back in 2021.
> >
> > The following sysfs attributes are documented:
> > - /sys/class/hwmon/hwmon*/temp*_input
> > - /sys/class/hwmon/hwmon*/temp*_crit
> > - /sys/class/hwmon/hwmon*/temp*_lcrit
> > - /sys/class/hwmon/hwmon*/temp*_enable
> >
> > While at it, update a missing reference to the ufs ABI doc in the
> > MAINTAINERS file.
> >
> > Fixes: e88e2d32200a ("scsi: ufs: core: Probe for temperature
> > notification support")
> > Signed-off-by: Avri Altman <avri.altman@wdc.com>
> > ---
> > .../ABI/testing/sysfs-driver-ufs-hwmon | 31 +++++++++++++++++++
>
> The hardware monitoring ABI is documented in ABI/testing/sysfs-class-
> hwmon.
> It does not make sense to document hwmon driver sysfs attributes per driver
> unless there are non-standard attributes.
Thanks. Will drop it.
Thanks,
Avri
>
> Guenter
>
> > MAINTAINERS | 2 ++
> > 2 files changed, 33 insertions(+)
> > create mode 100644 Documentation/ABI/testing/sysfs-driver-ufs-hwmon
> >
> > diff --git a/Documentation/ABI/testing/sysfs-driver-ufs-hwmon
> > b/Documentation/ABI/testing/sysfs-driver-ufs-hwmon
> > new file mode 100644
> > index 000000000000..a27a108ffd28
> > --- /dev/null
> > +++ b/Documentation/ABI/testing/sysfs-driver-ufs-hwmon
> > @@ -0,0 +1,31 @@
> > +What: /sys/class/hwmon/hwmon*/temp*_input
> > +Date: September 2021
> > +KernelVersion: 5.16
> > +Contact: avri.altman@wdc.com
> > +Description:
> > + Temperature input value in millidegrees Celsius.
> > + Read-only.
> > +
> > +What: /sys/class/hwmon/hwmon*/temp*_crit
> > +Date: September 2021
> > +KernelVersion: 5.16
> > +Contact: avri.altman@wdc.com
> > +Description:
> > + Critical temperature value in millidegrees Celsius.
> > + Read-only.
> > +
> > +What: /sys/class/hwmon/hwmon*/temp*_lcrit
> > +Date: September 2021
> > +KernelVersion: 5.16
> > +Contact: avri.altman@wdc.com
> > +Description:
> > + Lower critical temperature value in millidegrees Celsius.
> > + Read-only.
> > +
> > +What: /sys/class/hwmon/hwmon*/temp*_enable
> > +Date: September 2021
> > +KernelVersion: 5.16
> > +Contact: avri.altman@wdc.com
> > +Description:
> > + Enable (1) or disable (0) this temperature sensor.
> > + Read-write.
> > diff --git a/MAINTAINERS b/MAINTAINERS index
> > 838d3038e1ea..71a69551aee2 100644
> > --- a/MAINTAINERS
> > +++ b/MAINTAINERS
> > @@ -24070,6 +24070,8 @@ R: Avri Altman <avri.altman@wdc.com>
> > R: Bart Van Assche <bvanassche@acm.org>
> > L: linux-scsi@vger.kernel.org
> > S: Supported
> > +F: Documentation/ABI/testing/sysfs-driver-ufs
> > +F: Documentation/ABI/testing/sysfs-driver-ufs-hwmon
> > F: Documentation/devicetree/bindings/ufs/
> > F: Documentation/scsi/ufs.rst
> > F: drivers/ufs/core/
prev parent reply other threads:[~2025-01-14 15:01 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-14 9:35 [PATCH 0/2] scsi: ufs: Temperature notification fixes Avri Altman
2025-01-14 9:35 ` [PATCH 1/2] scsi: ufs: core: Simplify temperature exception event handling Avri Altman
2025-01-14 9:35 ` [PATCH 2/2] scsi: ufs: hwmon: Add missing ABI documentation Avri Altman
2025-01-14 14:49 ` Guenter Roeck
2025-01-14 15:01 ` Avri Altman [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=DM6PR04MB6575F5273B102C74DD3AD96EFC182@DM6PR04MB6575.namprd04.prod.outlook.com \
--to=avri.altman@wdc.com \
--cc=bvanassche@acm.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=linux@roeck-us.net \
--cc=martin.petersen@oracle.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®