summaryrefslogtreecommitdiffstats
path: root/drivers/iio/industrialio-trigger.c
diff options
context:
space:
mode:
authorCrestez Dan Leonard2016-05-13 20:43:34 +0200
committerJonathan Cameron2016-05-29 21:27:16 +0200
commit99147606155f09feccac67c65387dc62260b749b (patch)
treec3150c481f141675816479713a48016137038eea /drivers/iio/industrialio-trigger.c
parentiio: st_sensors: Init trigger before irq request (diff)
downloadkernel-qcow2-linux-99147606155f09feccac67c65387dc62260b749b.tar.gz
kernel-qcow2-linux-99147606155f09feccac67c65387dc62260b749b.tar.xz
kernel-qcow2-linux-99147606155f09feccac67c65387dc62260b749b.zip
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>
Diffstat (limited to 'drivers/iio/industrialio-trigger.c')
0 files changed, 0 insertions, 0 deletions