linux-hwmon.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: zlukwins <zbigniew.lukwinski@linux.intel.com>
To: Guenter Roeck <linux@roeck-us.net>
Cc: linux-hwmon@vger.kernel.org
Subject: Energy counters for PMBUS
Date: Fri, 2 Apr 2021 15:19:40 +0200	[thread overview]
Message-ID: <ea24de03-1ef8-fdb8-f4cb-9e06a0090dcf@linux.intel.com> (raw)

Hi,


I am OpenBMC FW developer. We have a use cases which require PSU devices 
energy counters reading. Looks like hwmon:pmbus does not support that 
right now.

Hwmon sysfs 
(https://www.kernel.org/doc/Documentation/hwmon/sysfs-interface) already 
supports energy counter (energy[1-*]_input).

PMBus standard (revision 1.3.1) provides API for getting energy - 
READ_EIN/READ_EOUT commands.

So I am wondering whether we could just add this implementation to the 
hwmon/pmbus/pmbus_core.c? Or maybe there are some constraints?


Thanks

Zbigniew



             reply	other threads:[~2021-04-02 13:24 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-02 13:19 zlukwins [this message]
2021-04-03  3:16 ` Energy counters for PMBUS Guenter Roeck

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=ea24de03-1ef8-fdb8-f4cb-9e06a0090dcf@linux.intel.com \
    --to=zbigniew.lukwinski@linux.intel.com \
    --cc=linux-hwmon@vger.kernel.org \
    --cc=linux@roeck-us.net \
    /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;
as well as URLs for NNTP newsgroup(s).