]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iio: light: cm3232: Reset before reading HW ID
authorCibil Pankiras <cibil.pankiras@aerq.com>
Thu, 14 Nov 2024 09:13:23 +0000 (10:13 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 7 Dec 2024 17:47:58 +0000 (17:47 +0000)
commitdf81f90c500b018e4793e9f4be3c6966930f8417
tree67e42fcfecd42f839297ea97a66c095cbbfb4ea4
parent2d6941932974005867e7f02f113edac63b598b45
iio: light: cm3232: Reset before reading HW ID

According to the datasheet, the chip requires a reset before any data
can be read. This commit moves the device identification logic to
occur after the reset to ensure proper initialization.

Cc: Kevin Tsai <ktsai@capellamicro.com>
Signed-off-by: Cibil Pankiras <cibil.pankiras@aerq.com>
Link: https://patch.msgid.link/20241114091323.7415-1-cibil.pankiras@aerq.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/light/cm3232.c