Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

iio: st_sensors: relax WhoAmI check in st_sensors_verify_id()

Hard matching against the WhoAmI values isn't ideal for using devices
which are compatible with existing ones. Instead of raising an error,
issue a warning instead, thus allowing the driver to continue probing.

Suggested-by: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Kaustabh Chakraborty <kauschluss@disroot.org>
Link: https://patch.msgid.link/20240625082800.62305-1-kauschluss@disroot.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Kaustabh Chakraborty and committed by
Jonathan Cameron
a3c2c5c9 fd2adf37

+1 -2
+1 -2
drivers/iio/common/st_sensors/st_sensors_core.c
··· 606 606 } 607 607 608 608 if (sdata->sensor_settings->wai != wai) { 609 - dev_err(&indio_dev->dev, 609 + dev_warn(&indio_dev->dev, 610 610 "%s: WhoAmI mismatch (0x%x).\n", 611 611 indio_dev->name, wai); 612 - return -EINVAL; 613 612 } 614 613 } 615 614