Re: [PATCH v2 2/5] hwmon: (sch5627) Disallow write access if virtual registers are locked

From: Guenter Roeck
Date: Sun Sep 10 2023 - 20:49:32 EST


On Thu, Sep 07, 2023 at 07:26:36AM +0200, Armin Wolf wrote:
> When the lock bit inside SCH5627_REG_CTRL is set, then the virtual
> registers become read-only until the next power cycle.
> Disallow write access to those registers in such a case.
>
> Tested on a Fujitsu Esprimo P720.
>
> Fixes: aa9f833dfc12 ("hwmon: (sch5627) Add pwmX_auto_channels_temp support")
> Signed-off-by: Armin Wolf <W_Armin@xxxxxx>

Applied.

Thanks,
Guenter