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

iio: accel: fxls8962af: errata bug only applicable for FXLS8962AF

Remove special errata handling if FXLS8964AF is used.

Fixes: af959b7b96b8 ("iio: accel: fxls8962af: fix errata bug E3 - I2C burst reads")
Signed-off-by: Sean Nyekjaer <sean@geanix.com>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20230605103223.1400980-2-sean@geanix.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Sean Nyekjaer and committed by
Jonathan Cameron
b410a930 d1cfbd52

+3 -2
+3 -2
drivers/iio/accel/fxls8962af-core.c
··· 903 903 int total_length = samples * sample_length; 904 904 int ret; 905 905 906 - if (i2c_verify_client(dev)) 906 + if (i2c_verify_client(dev) && 907 + data->chip_info->chip_id == FXLS8962AF_DEVICE_ID) 907 908 /* 908 - * Due to errata bug: 909 + * Due to errata bug (only applicable on fxls8962af): 909 910 * E3: FIFO burst read operation error using I2C interface 910 911 * We have to avoid burst reads on I2C.. 911 912 */