diff options
| author | Bartosz Golaszewski <[email protected]> | 2024-10-31 20:08:41 +0000 |
|---|---|---|
| committer | Bartosz Golaszewski <[email protected]> | 2024-11-04 08:08:11 +0000 |
| commit | dae01ec714fbbf3a71947668cb61cee4cc320647 (patch) | |
| tree | 0bdd376249306608c91e2101eaaa14d8f2fdd7a2 /drivers/gpio/gpiolib-cdev.c | |
| parent | gpio: sysfs: emit chardev line-state events on edge store (diff) | |
| download | kernel-dae01ec714fbbf3a71947668cb61cee4cc320647.tar.gz kernel-dae01ec714fbbf3a71947668cb61cee4cc320647.zip | |
gpio: cdev: don't report GPIOs requested as interrupts as used
GPIOs used as shared irqs can still be requested by user-space (or
kernel drivers for that matter) yet we report them as used over the
chardev ABI. Drop the test for FLAG_USED_AS_IRQ from
gpio_desc_to_lineinfo().
Reviewed-by: Kent Gibson <[email protected]>
Reviewed-by: Linus Walleij <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Bartosz Golaszewski <[email protected]>
Diffstat (limited to 'drivers/gpio/gpiolib-cdev.c')
| -rw-r--r-- | drivers/gpio/gpiolib-cdev.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/gpio/gpiolib-cdev.c b/drivers/gpio/gpiolib-cdev.c index 088201de9627..83ebcc8c83eb 100644 --- a/drivers/gpio/gpiolib-cdev.c +++ b/drivers/gpio/gpiolib-cdev.c @@ -2275,7 +2275,6 @@ static void gpio_desc_to_lineinfo(struct gpio_desc *desc, */ if (test_bit(FLAG_REQUESTED, &dflags) || test_bit(FLAG_IS_HOGGED, &dflags) || - test_bit(FLAG_USED_AS_IRQ, &dflags) || test_bit(FLAG_EXPORT, &dflags) || test_bit(FLAG_SYSFS, &dflags) || !gpiochip_line_is_valid(guard.gc, info->offset)) { |
