OpenCloudOS-Kernel/drivers/iio/imu/inv_mpu6050
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
..
Kconfig iio:imu:mpu6050: icm20608 initial support 2016-07-03 12:39:57 +01:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
inv_mpu_acpi.c iio: imu: inv_mpu6050: Remove duplicate NULL check 2017-12-02 10:40:11 +00:00
inv_mpu_core.c iio: imu: inv_mpu6050: Fix probe() failure on older ACPI based machines 2018-06-24 14:50:52 +01:00
inv_mpu_i2c.c iio: imu: inv_mpu6050: minor wording fixes 2018-05-06 18:05:51 +01:00
inv_mpu_iio.h iio: imu: inv_mpu6050: fix user_ctrl register overwritten 2018-05-06 18:01:20 +01:00
inv_mpu_ring.c iio: imu: inv_mpu6050: make loop a do-while 2018-05-12 10:01:41 +01:00
inv_mpu_spi.c iio: imu: inv_mpu6050: fix user_ctrl register overwritten 2018-05-06 18:01:20 +01:00
inv_mpu_trigger.c iio: imu: inv_mpu6050: fix user_ctrl register overwritten 2018-05-06 18:01:20 +01:00