]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
iio: accel: fxls8962af: errata bug only applicable for FXLS8962AF
authorSean Nyekjaer <sean@geanix.com>
Mon, 5 Jun 2023 10:32:22 +0000 (12:32 +0200)
committerRoxana Nicolescu <roxana.nicolescu@canonical.com>
Mon, 2 Oct 2023 15:19:53 +0000 (17:19 +0200)
BugLink: https://bugs.launchpad.net/bugs/2034469
commit b410a9307bc3a7cdee3c930c98f6fc9cf1d2c484 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/iio/accel/fxls8962af-core.c

index 0d672b1469e8d1798bfe739f81394432a2ad1ef2..9d257121e102b2bfd05e351cdb17893643e2a676 100644 (file)
@@ -904,9 +904,10 @@ static int fxls8962af_fifo_transfer(struct fxls8962af_data *data,
        int total_length = samples * sample_length;
        int ret;
 
-       if (i2c_verify_client(dev))
+       if (i2c_verify_client(dev) &&
+           data->chip_info->chip_id == FXLS8962AF_DEVICE_ID)
                /*
-                * Due to errata bug:
+                * Due to errata bug (only applicable on fxls8962af):
                 * E3: FIFO burst read operation error using I2C interface
                 * We have to avoid burst reads on I2C..
                 */