]> git.ipfire.org Git - thirdparty/linux.git/commit
staging: iio: addac: adt7316: document SPI interface switching sequence
authorHungyu Lin <dennylin0707@gmail.com>
Mon, 11 May 2026 14:06:41 +0000 (14:06 +0000)
committerJonathan Cameron <jic23@kernel.org>
Sun, 31 May 2026 09:59:40 +0000 (10:59 +0100)
commit8bf3e7a9defcfa889976258919d99fa2e8465189
treebe5fec0a04cb7b0019850bbc9f788d07c3bb1d3e
parent79ab48ae4f9e06512263377c81fad1ab1adace4c
staging: iio: addac: adt7316: document SPI interface switching sequence

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 therefore ignored.

Add a comment to clarify this behavior.

Datasheet: https://www.analog.com/en/products/adt7316.html
Reviewed-by: Maxwell Doose <m32285159@gmail.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>
Signed-off-by: Hungyu Lin <dennylin0707@gmail.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/staging/iio/addac/adt7316-spi.c