linux-stable/drivers/iio/cdc
Matti Vaittinen b20f5801ec iio: cdc: ad7150: relax return value check for IRQ get
fwnode_irq_get[_byname]() were changed to not return 0 anymore. The
special error case where device-tree based IRQ mapping fails can't no
longer be reliably detected from this return value. This yields a
functional change in the driver where the mapping failure is treated as
an error.

The mapping failure can occur for example when the device-tree IRQ
information translation call-back(s) (xlate) fail, IRQ domain is not
found, IRQ type conflicts, etc. In most cases this indicates an error in
the device-tree and special handling is not really required.

One more thing to note is that ACPI APIs do not return zero for any
failures so this special handling did only apply on device-tree based
systems.

Drop the special handling for DT mapping failures as these can no longer
be separated from other errors at driver side. Change all failures in
IRQ getting to be handled by continuing without the events instead of
aborting the probe upon certain errors.

Signed-off-by: Matti Vaittinen <mazziesaccount@gmail.com>
Link: https://lore.kernel.org/r/3ad1c6f195ead3dfa8711235e1dead139d27f700.1690890774.git.mazziesaccount@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2023-08-01 18:55:55 +01:00
..
Kconfig iio: cdc: ad7746: Move driver out of staging. 2022-08-15 22:30:01 +01:00
Makefile iio: cdc: ad7746: Move driver out of staging. 2022-08-15 22:30:01 +01:00
ad7150.c iio: cdc: ad7150: relax return value check for IRQ get 2023-08-01 18:55:55 +01:00
ad7746.c iio: Switch i2c drivers back to use .probe() 2023-05-21 18:54:53 +01:00