Re: [PATCH] hwmon: da9052: Synchronize access with mfd

2020-05-13 Thread Guenter Roeck
On Mon, May 11, 2020 at 01:02:19PM +0200, Sebastian Reichel wrote: > From: Samu Nuutamo > > When tsi-as-adc is configured it is possible for in7[0123]_input read to > return an incorrect value if a concurrent read to in[456]_input is > performed. This is caused by a concurrent manipulation of the

Re: [PATCH] hwmon: da9052: Synchronize access with mfd

2020-05-12 Thread Sebastian Reichel
Hi Guenter, On Mon, May 11, 2020 at 09:51:25AM -0700, Guenter Roeck wrote: > On 5/11/20 4:02 AM, Sebastian Reichel wrote: > > From: Samu Nuutamo > > > > When tsi-as-adc is configured it is possible for in7[0123]_input read to > > return an incorrect value if a concurrent read to in[456]_input is

Re: [PATCH] hwmon: da9052: Synchronize access with mfd

2020-05-11 Thread Guenter Roeck
On 5/11/20 4:02 AM, Sebastian Reichel wrote: > From: Samu Nuutamo > > When tsi-as-adc is configured it is possible for in7[0123]_input read to > return an incorrect value if a concurrent read to in[456]_input is > performed. This is caused by a concurrent manipulation of the mux > channel without

[PATCH] hwmon: da9052: Synchronize access with mfd

2020-05-11 Thread Sebastian Reichel
From: Samu Nuutamo When tsi-as-adc is configured it is possible for in7[0123]_input read to return an incorrect value if a concurrent read to in[456]_input is performed. This is caused by a concurrent manipulation of the mux channel without proper locking as hwmon and mfd use different locks for