Skip to content

Commit dae01ec

Browse files
author
Bartosz Golaszewski
committed
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]>
1 parent 7b92509 commit dae01ec

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/gpio/gpiolib-cdev.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2275,7 +2275,6 @@ static void gpio_desc_to_lineinfo(struct gpio_desc *desc,
22752275
*/
22762276
if (test_bit(FLAG_REQUESTED, &dflags) ||
22772277
test_bit(FLAG_IS_HOGGED, &dflags) ||
2278-
test_bit(FLAG_USED_AS_IRQ, &dflags) ||
22792278
test_bit(FLAG_EXPORT, &dflags) ||
22802279
test_bit(FLAG_SYSFS, &dflags) ||
22812280
!gpiochip_line_is_valid(guard.gc, info->offset)) {

0 commit comments

Comments
 (0)