public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Eddie James <eajames@linux.ibm.com>
To: linux-hwmon@vger.kernel.org
Cc: linux-kernel@vger.kernel.org, jdelvare@suse.com,
	linux@roeck-us.net, Eddie James <eajames@linux.ibm.com>
Subject: [PATCH v2 0/2] hwmon: (pmbus/core) Add lock and unlock functions
Date: Wed, 12 Apr 2023 11:15:24 -0500	[thread overview]
Message-ID: <20230412161526.252294-1-eajames@linux.ibm.com> (raw)

Debugfs operations may set the page number, which must be done
atomically with the subsequent i2c operation. Lock the update_lock
in the debugfs functions and provide a function for pmbus drivers
to lock and unlock the update_lock.
Use the new lock/unlock functions in the ibm-cffps driver and make
some additional improvements.

Changes since v1:
 - No whitespace change in cffps patch.

Eddie James (2):
  hwmon: (pmbus/core) Add lock and unlock functions
  hwmon: (pmbus/ibm-cffps) Use default debugfs attributes and lock
    function

 drivers/hwmon/pmbus/ibm-cffps.c  | 272 ++++++++++++++-----------------
 drivers/hwmon/pmbus/pmbus.h      |   2 +
 drivers/hwmon/pmbus/pmbus_core.c |  30 ++++
 3 files changed, 150 insertions(+), 154 deletions(-)

-- 
2.31.1


             reply	other threads:[~2023-04-12 16:16 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-12 16:15 Eddie James [this message]
2023-04-12 16:15 ` [PATCH v2 1/2] hwmon: (pmbus/core) Add lock and unlock functions Eddie James
2023-04-16 14:03   ` Guenter Roeck
2023-04-12 16:15 ` [PATCH v2 2/2] hwmon: (pmbus/ibm-cffps) Use default debugfs attributes and lock function Eddie James
2023-04-16 14:05   ` 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=20230412161526.252294-1-eajames@linux.ibm.com \
    --to=eajames@linux.ibm.com \
    --cc=jdelvare@suse.com \
    --cc=linux-hwmon@vger.kernel.org \
    --cc=linux-kernel@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