]> git.baikalelectronics.ru Git - kernel.git/commit
iio: accel: bmc150: optimize transfers in trigger handler
authorIrina Tirdea <irina.tirdea@intel.com>
Thu, 24 Mar 2016 09:29:27 +0000 (11:29 +0200)
committerJonathan Cameron <jic23@kernel.org>
Sun, 3 Apr 2016 09:27:43 +0000 (10:27 +0100)
commit43219da89e1d739e65f23d792c7ce82d3618a1aa
tree7a016a131df61e4785afe57ad4ee10136413bc1c
parent51ed2f962df17e56c8dc2575140b07f619a6b0ee
iio: accel: bmc150: optimize transfers in trigger handler

Some i2c busses (e.g.: Synopsys DesignWare I2C adapter) need to
enable/disable the bus at each i2c transfer and must wait for
the enable/disable to happen before sending the data.

When reading data in the trigger handler, the bmc150 accel driver does
one bus transfer for each axis. This has an impact on the frequency
of the accelerometer at high sample rates due to additional delays
introduced by the bus at each transfer.

Reading all axis values in one bus transfer reduces the delays
introduced by the bus.

Signed-off-by: Irina Tirdea <irina.tirdea@intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/accel/bmc150-accel-core.c