linux-stable/drivers/iio
Hans de Goede 2a221c0422 iio: imu: inv_mpu6050: Fix probe() failure on older ACPI based machines
Commit 5ec6486daa ("iio:imu: inv_mpu6050: support more interrupt types")
causes inv_mpu_core_probe() to fail if the IRQ does not have a
trigger-type setup.

This happens on machines where the mpu6050 is enumerated through ACPI and
an older Interrupt type ACPI resource is used for the interrupt, rather
then a GpioInt type type, causing the mpu6050 driver to no longer work
there. This happens on e.g. the Asus T100TA.

This commits makes the mpu6050 fallback to the old IRQF_TRIGGER_RISING
default if the irq-type is not setup, fixing this.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Fixes: 5ec6486daa ("iio:imu: inv_mpu6050: support more interrupt types")
Reviewed-by: Martin Kelly <mkelly@xevo.com>
Reviewed-by: Jean-Baptiste Maneyrol <jmaneyrol@invensense.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2018-06-24 14:50:52 +01:00
..
accel iio: mma8452: Fix ignoring MMA8452_INT_DRDY 2018-06-24 14:22:41 +01:00
adc treewide: devm_kzalloc() -> devm_kcalloc() 2018-06-12 16:19:22 -07:00
afe
amplifiers
buffer
chemical
common Staging/IIO patches for 4.18-rc1 2018-06-09 10:32:39 -07:00
counter
dac treewide: devm_kzalloc() -> devm_kcalloc() 2018-06-12 16:19:22 -07:00
dummy
frequency
gyro
health
humidity
imu iio: imu: inv_mpu6050: Fix probe() failure on older ACPI based machines 2018-06-24 14:50:52 +01:00
light iio: tsl2x7x/tsl2772: avoid potential division by zero 2018-06-24 14:22:38 +01:00
magnetometer
multiplexer treewide: devm_kzalloc() -> devm_kcalloc() 2018-06-12 16:19:22 -07:00
orientation
potentiometer
potentiostat
pressure iio: pressure: bmp280: fix relative humidity unit 2018-06-24 14:22:35 +01:00
proximity
resolver
temperature
trigger
iio_core.h
iio_core_trigger.h
industrialio-buffer.c
industrialio-configfs.c
industrialio-core.c
industrialio-event.c
industrialio-sw-device.c
industrialio-sw-trigger.c
industrialio-trigger.c
industrialio-triggered-event.c
inkern.c treewide: kzalloc() -> kcalloc() 2018-06-12 16:19:22 -07:00
Kconfig
Makefile