Re: [PATCH] hwmon: pmbus: protect read-modify-write with lock

2019-06-10 Thread Wolfram Sang
Hi Krzysztof, > patch and send it to the wrong list of people. You can ignore this > patchset, it was resent to the proper mailing list instead. Thanks for the heads up. Regards, Wolfram signature.asc Description: PGP signature

Re: [PATCH] hwmon: pmbus: protect read-modify-write with lock

2019-06-10 Thread Adamski, Krzysztof (Nokia - PL/Wroclaw)
On Sat, Jun 08, 2019 at 12:32:18AM +0200, Wolfram Sang wrote: >On Tue, May 28, 2019 at 09:08:21AM +, Adamski, Krzysztof (Nokia - >PL/Wroclaw) wrote: >> The operation done in the pmbus_update_fan() function is a >> read-modify-write operation but it lacks any kind of lock protection >> which

Re: [PATCH] hwmon: pmbus: protect read-modify-write with lock

2019-06-07 Thread Wolfram Sang
On Tue, May 28, 2019 at 09:08:21AM +, Adamski, Krzysztof (Nokia - PL/Wroclaw) wrote: > The operation done in the pmbus_update_fan() function is a > read-modify-write operation but it lacks any kind of lock protection > which may cause problems if run more than once simultaneously. This >

[PATCH] hwmon: pmbus: protect read-modify-write with lock

2019-05-28 Thread Adamski, Krzysztof (Nokia - PL/Wroclaw)
The operation done in the pmbus_update_fan() function is a read-modify-write operation but it lacks any kind of lock protection which may cause problems if run more than once simultaneously. This patch uses an existing update_lock mutex to fix this problem. Signed-off-by: Krzysztof Adamski ---