Commit 9d61c18
iio: imu: fxos8700: fix ACCEL measurement range selection
When device is in active mode, it fails to set an ACCEL full-scale
range(2g/4g/8g) in FXOS8700_XYZ_DATA_CFG. This is not align with the
datasheet, but it is a fxos8700 chip behavior.
Keep the device in standby mode before setting ACCEL full-scale range
into FXOS8700_XYZ_DATA_CFG in chip initialization phase and setting
scale phase.
Fixes: 84e5ddd ("iio: imu: Add support for the FXOS8700 IMU")
Signed-off-by: Carlos Song <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Cc: <[email protected]>
Signed-off-by: Jonathan Cameron <[email protected]>1 parent a53f945 commit 9d61c18
1 file changed
+34
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
345 | 345 | | |
346 | 346 | | |
347 | 347 | | |
348 | | - | |
| 348 | + | |
| 349 | + | |
349 | 350 | | |
350 | 351 | | |
351 | 352 | | |
| |||
354 | 355 | | |
355 | 356 | | |
356 | 357 | | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
357 | 377 | | |
358 | 378 | | |
359 | 379 | | |
360 | 380 | | |
361 | 381 | | |
362 | 382 | | |
363 | 383 | | |
364 | | - | |
| 384 | + | |
365 | 385 | | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
366 | 390 | | |
367 | 391 | | |
368 | 392 | | |
| |||
631 | 655 | | |
632 | 656 | | |
633 | 657 | | |
634 | | - | |
635 | | - | |
636 | | - | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
637 | 663 | | |
638 | 664 | | |
639 | 665 | | |
640 | | - | |
641 | | - | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
642 | 669 | | |
643 | 670 | | |
644 | 671 | | |
| |||
0 commit comments