zephyr/drivers
Marcin Niestroj 74fc8fe071 sensor: lis2dh: fix SPI burst transfers
After switching to new SPI API there is no need to reserve first dummy
byte in buffer and ignore that in application later on. Instead two
buffers can be specified, which is how it is done already in lis2dh
driver. The problem is that dummy byte is still part of the buffer, but
it clearly should no longer be. As an example we write 0x7 (bits to
enable XYZ axes) into CTRL2 instead of CTRL1 register. When reading
measurements on the other hand we have filled buffer starting from 0,
instead of 1 as the driver code has expected.

Fix driver in all places that use burst transfers by removing first
dummy byte from input/output buffer.

Fixes: 2f7e6b6d42 ("drivers/sensors: Switch lis2dh driver to new SPI
  API")
Signed-off-by: Marcin Niestroj <m.niestroj@grinn-global.com>
2019-10-14 17:16:03 -05:00
..
adc boards: arm: stm32: fix out of bounds access 2019-10-08 15:51:14 -05:00
audio drivers: audio: tlv320dac310x: Explicitly set GPIO_DIR_OUT 2019-09-11 05:16:09 -05:00
bluetooth coccinelle: standardize k_sleep calls with integer timeouts 2019-10-09 08:38:10 -04:00
can drivers: CAN: MCP2515: Move OSC frequency definition to device-tree 2019-10-09 06:27:53 -05:00
clock_control drivers: clock_control: nrf_power_clock: Make isr function global 2019-10-08 16:23:14 +02:00
console drivers: fix k_thread_create timeout argument 2019-09-19 17:35:53 +02:00
counter drivers: counter: nrf_rtc: Fix wrapping with PPI 2019-10-09 13:25:36 +02:00
crypto cleanup: include/: move misc/util.h to sys/util.h 2019-06-27 22:55:49 -04:00
display coccinelle: standardize k_sleep calls with integer timeouts 2019-10-09 08:38:10 -04:00
dma drivers: dma: remove qmsi DMA driver 2019-09-18 11:06:18 -05:00
entropy drivers: entropy: Add STM32G4X RNG support 2019-10-04 18:44:24 -07:00
espi drivers: espi: xec: Report espi reset correctly to app 2019-10-14 14:15:26 -07:00
ethernet coccinelle: standardize k_sleep calls with integer timeouts 2019-10-09 08:38:10 -04:00
flash drivers: flash: nrfx: Modify flash address validation 2019-10-14 21:05:23 +02:00
gpio drivers: gpio: Add STM32G4X gpio support 2019-10-04 18:44:24 -07:00
hwinfo drivers: hwinfo: Add LiteX DNA driver 2019-09-21 21:36:00 +02:00
i2c drivers: i2c: xec: Handle additional I2C flags for read 2019-10-11 14:44:03 -07:00
i2s coccinelle: standardize k_sleep calls with integer timeouts 2019-10-09 08:38:10 -04:00
ieee802154 coccinelle: standardize kernel API timeout arguments 2019-10-03 11:55:44 -07:00
interrupt_controller drivers/interrupt_controller/ioapic_intr.c: broadcast interrupts 2019-10-07 19:46:55 -04:00
ipm kernel: Port remaining syscalls to new API 2019-09-12 11:31:50 +08:00
led coccinelle: standardize k_sleep calls with integer timeouts 2019-10-09 08:38:10 -04:00
led_strip dts: Make instance defines consistent 2019-07-30 17:10:31 -05:00
modem driver: modem: add simple power management to modem receiver 2019-09-08 12:41:29 +02:00
net net: Add CONFIG_NET_NATIVE option for selecting native IP 2019-09-10 12:45:38 +03:00
neural_net cleanup: include/: move gna.h to drivers/gna.h 2019-06-27 22:55:49 -04:00
pcie
pinmux drivers: pinmux: Add STM32G4X pinmux support 2019-10-04 18:44:24 -07:00
ps2 drivers: ps2: Add driver for Microchip XEC family 2019-09-18 13:23:52 +08:00
ptp_clock userspace: Support for split 64 bit arguments 2019-09-12 11:31:50 +08:00
pwm coccinelle: standardize k_sleep calls with integer timeouts 2019-10-09 08:38:10 -04:00
sensor sensor: lis2dh: fix SPI burst transfers 2019-10-14 17:16:03 -05:00
serial stm32: Fix uart_irq_tx_complete() to output correct status 2019-10-09 06:30:14 -05:00
spi drivers: spi: Add STM32G4X SPI support 2019-10-04 18:44:24 -07:00
timer drivers: hpet: fix includes 2019-10-09 09:14:18 -04:00
usb coccinelle: standardize k_sleep calls with integer timeouts 2019-10-09 08:38:10 -04:00
watchdog drivers: watchdog: remove qmsi watchdog driver 2019-09-18 11:06:18 -05:00
wifi coccinelle: standardize k_sleep calls with integer timeouts 2019-10-09 08:38:10 -04:00
CMakeLists.txt drivers: ps2: Add Kconfig for PS/2 driver 2019-09-18 13:23:52 +08:00
Kconfig drivers: ps2: Add Kconfig for PS/2 driver 2019-09-18 13:23:52 +08:00