lkml.org 
[lkml]   [2023]   [Apr]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH v2 0/2] hwmon: (pmbus/core) Add lock and unlock functions
Date
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

\
 
 \ /
  Last update: 2023-04-12 18:16    [W:0.089 / U:0.400 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site