]> 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)
commit919e318b45d62af14d9cde2cf0f6e602ef8656b2
tree7a016a131df61e4785afe57ad4ee10136413bc1c
parent63fca60acbb3d851615ba0ea678ff397fb75ae6d
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