From: Eddie James <eajames@linux.vnet.ibm.com>
To: openbmc@lists.ozlabs.org
Cc: "Edward A. James" <eajames@us.ibm.com>
Subject: [RFC linux dev-4.10 0/3] drivers/hwmon/pmbus: core extensions
Date: Mon, 7 Aug 2017 18:04:42 -0500 [thread overview]
Message-ID: <1502147085-437-1-git-send-email-eajames@linux.vnet.ibm.com> (raw)
From: "Edward A. James" <eajames@us.ibm.com>
This series adds some functionality to the pmbus core.
The first two patches are fixes to enable the use of the STATUS_WORD register
which was completely unused in existing pmbus. This allows the use of more
default alarm/fault attributes for default pmbus sensors.
The third patch adds "status" attributes to each class of hwmon sensor created
by pmbus. For example, in1_status and temp1_status. These will display the
associated raw status register (STATUS_INPUT and STATUS_TEMPERATURE). These
will probably be essential for the UCD driver, and certainly very convenient
for the power supply driver.
An alternative I considered was breaking all the status registers out into
bits, but some bits seem to be device-dependent and therefore couldn't be named
correctly or at all in the pmbus core. This would also really make the hwmon
directory messy, unless you have a separate directory for that, either in the
device directory or under the hwmon directory (not sure if that's even
possible).
Edward A. James (3):
drivers/hwmon/pmbus: Use STATUS_WORD by default and do correct access
drivers/hmwon/pmbus: store STATUS_WORD in status registers
drivers/hwmon/pmbus: Add sensor status to pmbus attributes
drivers/hwmon/pmbus/pmbus_core.c | 153 +++++++++++++++++++++++++++++++++------
1 file changed, 130 insertions(+), 23 deletions(-)
--
1.8.3.1
next reply other threads:[~2017-08-07 23:04 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-07 23:04 Eddie James [this message]
2017-08-07 23:04 ` [RFC linux dev-4.10 1/3] drivers/hwmon/pmbus: Use STATUS_WORD by default and do correct access Eddie James
2017-08-07 23:04 ` [RFC linux dev-4.10 2/3] drivers/hmwon/pmbus: store STATUS_WORD in status registers Eddie James
2017-08-07 23:04 ` [RFC linux dev-4.10 3/3] drivers/hwmon/pmbus: Add sensor status to pmbus attributes Eddie James
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=1502147085-437-1-git-send-email-eajames@linux.vnet.ibm.com \
--to=eajames@linux.vnet.ibm.com \
--cc=eajames@us.ibm.com \
--cc=openbmc@lists.ozlabs.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.