Skip to content

Commit de80af5

Browse files
dolcinijic23
authored andcommitted
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: a930688 ("iio: adc: ti-ads1119: Add driver") Signed-off-by: Francesco Dolcini <[email protected]> Reviwed-by: João Paulo Gonçalves <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jonathan Cameron <[email protected]>
1 parent 8a3dcc9 commit de80af5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/iio/adc/ti-ads1119.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -735,7 +735,7 @@ static int ads1119_probe(struct i2c_client *client)
735735
if (client->irq > 0) {
736736
ret = devm_request_threaded_irq(dev, client->irq,
737737
ads1119_irq_handler,
738-
NULL, IRQF_TRIGGER_FALLING,
738+
NULL, IRQF_ONESHOT,
739739
"ads1119", indio_dev);
740740
if (ret)
741741
return dev_err_probe(dev, ret,

0 commit comments

Comments
 (0)