Commit a7ac371
hwmon: (pmbus/core) Add lock and unlock functions
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.
Signed-off-by: Eddie James <eajames@linux.ibm.com>
Link: https://lore.kernel.org/r/20230412161526.252294-2-eajames@linux.ibm.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>1 parent ab3e004 commit a7ac371
2 files changed
Lines changed: 32 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
505 | 505 | | |
506 | 506 | | |
507 | 507 | | |
| 508 | + | |
| 509 | + | |
508 | 510 | | |
509 | 511 | | |
510 | 512 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3263 | 3263 | | |
3264 | 3264 | | |
3265 | 3265 | | |
| 3266 | + | |
3266 | 3267 | | |
| 3268 | + | |
| 3269 | + | |
| 3270 | + | |
3267 | 3271 | | |
| 3272 | + | |
3268 | 3273 | | |
3269 | 3274 | | |
3270 | 3275 | | |
| |||
3281 | 3286 | | |
3282 | 3287 | | |
3283 | 3288 | | |
| 3289 | + | |
| 3290 | + | |
| 3291 | + | |
3284 | 3292 | | |
| 3293 | + | |
3285 | 3294 | | |
3286 | 3295 | | |
3287 | 3296 | | |
| |||
3297 | 3306 | | |
3298 | 3307 | | |
3299 | 3308 | | |
| 3309 | + | |
3300 | 3310 | | |
3301 | 3311 | | |
| 3312 | + | |
| 3313 | + | |
| 3314 | + | |
3302 | 3315 | | |
3303 | 3316 | | |
| 3317 | + | |
3304 | 3318 | | |
3305 | 3319 | | |
3306 | 3320 | | |
| |||
3638 | 3652 | | |
3639 | 3653 | | |
3640 | 3654 | | |
| 3655 | + | |
| 3656 | + | |
| 3657 | + | |
| 3658 | + | |
| 3659 | + | |
| 3660 | + | |
| 3661 | + | |
| 3662 | + | |
| 3663 | + | |
| 3664 | + | |
| 3665 | + | |
| 3666 | + | |
| 3667 | + | |
| 3668 | + | |
| 3669 | + | |
| 3670 | + | |
3641 | 3671 | | |
3642 | 3672 | | |
3643 | 3673 | | |
| |||
0 commit comments