]> asedeno.scripts.mit.edu Git - linux.git/commit
iio: st_sensors: Disable DRDY at init time
authorCrestez Dan Leonard <leonard.crestez@intel.com>
Fri, 13 May 2016 18:43:34 +0000 (21:43 +0300)
committerJonathan Cameron <jic23@kernel.org>
Sun, 29 May 2016 19:27:16 +0000 (20:27 +0100)
commit99147606155f09feccac67c65387dc62260b749b
treec3150c481f141675816479713a48016137038eea
parentff05916f94f912b25e8efcf9b02c10d481977bab
iio: st_sensors: Disable DRDY at init time

This fixes odd behavior after reboot.

The fact that we set the device to powerdown mode is not sufficient to
prevent DRDY being active because we might still have an unread sample.

Even if powerdown was sufficient keeping DRDY disabled while trigger is
not active is a good idea.

Cc: Giuseppe Barba <giuseppe.barba@st.com>
Cc: Denis Ciocca <denis.ciocca@st.com>
Signed-off-by: Crestez Dan Leonard <leonard.crestez@intel.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/common/st_sensors/st_sensors_core.c