Re: [PATCH 2/6] iio: adc: ad7173: fix buffers enablement for ad7176-2
From: Jonathan Cameron
Date: Sat Apr 13 2024 - 06:51:20 EST
On Mon, 8 Apr 2024 19:40:26 +0300
"Ceclan, Dumitru" <mitrutzceclan@xxxxxxxxx> wrote:
> On 06/04/2024 17:56, Jonathan Cameron wrote:
> > On Mon, 01 Apr 2024 18:32:20 +0300
> > Dumitru Ceclan via B4 Relay <devnull+dumitru.ceclan.analog.com@xxxxxxxxxx> wrote:
> >
> >> From: Dumitru Ceclan <dumitru.ceclan@xxxxxxxxxx>
> >>
> >> AD7176-2 does not feature input buffers, enable buffers only on
> >> supported models.
> >>
> >> Fixes: cff259bf7274 ("iio: adc: ad7173: fix buffers enablement for ad7176-2")
> >> Signed-off-by: Dumitru Ceclan <dumitru.ceclan@xxxxxxxxxx>
> > How bad is this? If you can find out if writing those bits does anything
> > harmful (they are reserved and datasheet says should be written 0 I think)
> > That will help people decide whether to backport the fix?
>
> The bits are marked as read-only and there does not seem to be any effect on the ADC.
> So drop this one?
Patch is good as makes the driver more consistent, just drop the Fixes tag so we
don't end up backporting this. That is basically treat it as code improvement
rather than a fix. Add a note on the bits being read only so this not fixing
a bug, just an inconsistency.
Thanks,
Jonathan