Re: [PATCH] iio: bu27034: Ensure reset is written

From: Vaittinen, Matti
Date: Wed May 03 2023 - 05:19:33 EST


On 5/2/23 19:00, Matti Vaittinen wrote:
> The reset bit must be always written to the hardware no matter what value
> is in a cache or register. Ensure this by using regmap_write_bits()
> instead of the regmap_update_bits(). Furthermore, the RESET bit may be
> self-clearing, so mark the SYSTEM_CONTROL register volatile to guarantee
> we do also read the right state - should we ever need to read it.
>
> Signed-off by: Matti Vaittinen <mazziesaccount@xxxxxxxxx>

I misspelled the Signed-off-by. Sorry folks. I'll re-spin.

Yours,
-- Matti

--
Matti Vaittinen
Linux kernel developer at ROHM Semiconductors
Oulu Finland

~~ When things go utterly wrong vim users can always type :help! ~~