diff options
author | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2021-04-02 21:45:43 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-01-14 12:15:58 +0300 |
commit | 8eb2a679c603a59c7caa3611906597a090001622 (patch) | |
tree | c8e476e5540ae8b038ad69d4e9613b6f3e790b12 /include | |
parent | 50aaa6b1742cb26f718bc72f4196aaf6a4efa7a7 (diff) | |
download | linux-8eb2a679c603a59c7caa3611906597a090001622.tar.xz |
iio:imu:adis: Use IRQF_NO_AUTOEN instead of irq request then disable
[ Upstream commit 30f6a542b7d39b1ba990a28a3891bc03691d8d41 ]
This is a bit involved as the adis library code already has some
sanity checking of the flags of the requested irq that we need
to ensure is happy to pass through the IRQF_NO_AUTOEN flag untouched.
Using this flag avoids us autoenabling the irq in the adis16460 and
adis16475 drivers which cover parts that don't have any means of
masking the interrupt on the device end.
Note, compile tested only!
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Cc: Alexandru Ardelean <ardeleanalex@gmail.com>
Reviewed-by: Nuno Sa <nuno.sa@analog.com>
Reviewed-by: Barry Song <song.bao.hua@hisilicon.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Reviewed-by: Lars-Peter Clausen <lars@metafoo.de>
Link: https://lore.kernel.org/r/20210402184544.488862-7-jic23@kernel.org
Stable-dep-of: 99c05e4283a1 ("iio: adis: add '__adis_enable_irq()' implementation")
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions