Skip to content

Commit

Permalink
iio: accel: fxls8962af: errata bug only applicable for FXLS8962AF
Browse files Browse the repository at this point in the history
Remove special errata handling if FXLS8964AF is used.

Fixes: af959b7 ("iio: accel: fxls8962af: fix errata bug E3 - I2C burst reads")
Signed-off-by: Sean Nyekjaer <[email protected]>
Cc: [email protected]
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jonathan Cameron <[email protected]>
  • Loading branch information
sknsean authored and jic23 committed Jun 5, 2023
1 parent d1cfbd5 commit b410a93
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions drivers/iio/accel/fxls8962af-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -903,9 +903,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..
*/
Expand Down

0 comments on commit b410a93

Please sign in to comment.