linux-iio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/4] iio: imu: fxos8700: fix few bug in reading raw data and configuring register
@ 2022-12-02 10:35 Carlos Song
  2022-12-02 10:35 ` [PATCH 1/4] iio: imu: fxos8700: fix get data function error Carlos Song
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Carlos Song @ 2022-12-02 10:35 UTC (permalink / raw)
  To: jic23, lars
  Cc: rjones, Jonathan.Cameron, haibo.chen, carlos.song, linux-imx,
	linux-iio

Because of illegal use of raw data register and configuration error
of raw data base address, fix data acquisition function error. When the
device is in active mode, any change of the other fields within CTRL_REG1
will lead an invalid configuration. Set the device in standby mode before
configuring CTRL_REG1 register in chip initialization phase and setting
scale phase. Give the correct offset to value when configuring odr bit and
reading ODR data from CTRL_REG1 register. Set magnetometer scale and
available magnetometer a legal scale and rectify iio channel type to get
a correct magnetometer scale.

Carlos Song (4):
  iio: imu: fxos8700: fix get data function error
  iio: imu: fxos8700: fix CTRL_REG1 register configuration error
  iio: imu: fxos8700: fix ODR offset error
  iio: imu: fxos8700: fix magnetometer scale getting error

 drivers/iio/imu/fxos8700_core.c | 88 +++++++++++++++++++++++----------
 1 file changed, 63 insertions(+), 25 deletions(-)

-- 
2.34.1


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2022-12-04 15:14 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-02 10:35 [PATCH 0/4] iio: imu: fxos8700: fix few bug in reading raw data and configuring register Carlos Song
2022-12-02 10:35 ` [PATCH 1/4] iio: imu: fxos8700: fix get data function error Carlos Song
2022-12-04 15:03   ` Jonathan Cameron
2022-12-02 10:35 ` [PATCH 2/4] iio: imu: fxos8700: fix CTRL_REG1 register configuration error Carlos Song
2022-12-04 15:12   ` Jonathan Cameron
2022-12-02 10:35 ` [PATCH 3/4] iio: imu: fxos8700: fix ODR offset error Carlos Song
2022-12-04 15:15   ` Jonathan Cameron
2022-12-02 10:35 ` [PATCH 4/4] iio: imu: fxos8700: fix magnetometer scale getting error Carlos Song
2022-12-04 15:27   ` Jonathan Cameron

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).