Re: [PATCH v3] staging: iio: addac: adt7316: document SPI interface switching sequence
From: Maxwell Doose
Date: Sun May 10 2026 - 23:00:30 EST
On Sun, May 10, 2026 at 9:31 PM Hungyu Lin <dennylin0707@xxxxxxxxx> wrote:
>
> The device powers up in I2C mode. Switching to SPI mode
> requires sending a sequence of SPI writes as described in
> the datasheet.
>
> During this sequence, the device may still be in I2C mode,
> so SPI transactions may not be recognized and can fail.
> Such errors are expected and are ignored.
>
> Add a comment to clarify this behavior.
>
> Datasheet: https://www.analog.com/en/products/adt7316.html
> Signed-off-by: Hungyu Lin <dennylin0707@xxxxxxxxx>
> ---
> Changes in v3:
> - Add Datasheet tag
> - Use datasheet name in code comment
>
> Changes in v2:
> - Add datasheet reference
> - Add TL;DR note
>
> drivers/staging/iio/addac/adt7316-spi.c | 12 +++++++++++-
> 1 file changed, 11 insertions(+), 1 deletion(-)
>
[snip]
Reviewed-by: Maxwell Doose <m32285159@xxxxxxxxx>
best regards,
max