linux-hwmon.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] hwmon: (pmbus/core) Add lock and unlock functions
@ 2023-04-05 14:52 Eddie James
  2023-04-05 14:52 ` [PATCH 1/2] " Eddie James
  2023-04-05 14:52 ` [PATCH 2/2] hwmon: (pmbus/ibm-cffps) Use default debugfs attributes and lock function Eddie James
  0 siblings, 2 replies; 5+ messages in thread
From: Eddie James @ 2023-04-05 14:52 UTC (permalink / raw)
  To: linux-hwmon; +Cc: linux-kernel, jdelvare, linux, Eddie James

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.

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  | 273 +++++++++++++------------------
 drivers/hwmon/pmbus/pmbus.h      |   2 +
 drivers/hwmon/pmbus/pmbus_core.c |  30 ++++
 3 files changed, 150 insertions(+), 155 deletions(-)

-- 
2.31.1


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-04-12 15:25 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-05 14:52 [PATCH 0/2] hwmon: (pmbus/core) Add lock and unlock functions Eddie James
2023-04-05 14:52 ` [PATCH 1/2] " Eddie James
2023-04-05 14:52 ` [PATCH 2/2] hwmon: (pmbus/ibm-cffps) Use default debugfs attributes and lock function Eddie James
2023-04-07 16:10   ` Guenter Roeck
2023-04-12 15:24     ` Eddie James

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).