]> www.infradead.org Git - users/jedix/linux-maple.git/commit
iio: adc: ads1119: Fix IRQ flags
authorFrancesco Dolcini <francesco.dolcini@toradex.com>
Wed, 31 Jul 2024 14:06:57 +0000 (16:06 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 3 Aug 2024 15:47:13 +0000 (16:47 +0100)
commitde80af5c2ffd9c3f02792f6979296cb6f74e82e5
treede53aa1191ed4b21cae65895129a37721ce7e775
parent8a3dcc970dc57b358c8db2702447bf0af4e0d83a
iio: adc: ads1119: Fix IRQ flags

Remove IRQF_TRIGGER_FALLING flag from irq request, this should come from
the platform firmware and should not be hard-coded into the driver.

Add IRQF_ONESHOT flag to the irq request, the interrupt should not be
re-activated in interrupt context, it should be done only after the
device irq handler run.

Fixes: a9306887eba4 ("iio: adc: ti-ads1119: Add driver")
Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com>
Reviwed-by: João Paulo Gonçalves <jpaulo.silvagoncalves@gmail.com>
Link: https://patch.msgid.link/20240731140657.88265-1-francesco@dolcini.it
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/ti-ads1119.c