aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpio/gpiolib-cdev.c
AgeCommit message (Expand)AuthorFilesLines
9 daysgpiolib: cdev: fix uninitialised kfifoKent Gibson1-0/+14
10 daysgpiolib: cdev: Fix use after free in lineinfo_changed_notifyZhongqiu Han1-1/+1
10 daysgpiolib: use a single SRCU struct for all GPIO descriptorsBartosz Golaszewski1-1/+1
2024-04-04gpio: cdev: fix missed label sanitizing in debounce_setup()Kent Gibson1-21/+28
2024-04-04gpio: cdev: check for NULL labels when sanitizing them for irqsBartosz Golaszewski1-5/+14
2024-03-26gpio: cdev: sanitize the label before requesting the interruptBartosz Golaszewski1-6/+32
2024-02-16gpio: cdev: fix a NULL-pointer dereference with DEBUG enabledBartosz Golaszewski1-2/+2
2024-02-15gpio: cdev: use correct pointer accessors with SRCUBartosz Golaszewski1-13/+12
2024-02-12gpio: protect the pointer to gpio_chip in gpio_device with SRCUBartosz Golaszewski1-28/+36
2024-02-12gpio: cdev: don't access gdev->chip if it's not neededBartosz Golaszewski1-1/+1
2024-02-12gpio: cdev: replace gpiochip_get_desc() with gpio_device_get_desc()Bartosz Golaszewski1-5/+5
2024-02-12gpio: remove gpio_lockBartosz Golaszewski1-11/+9
2024-02-12gpio: protect the descriptor label with SRCUBartosz Golaszewski1-3/+7
2024-02-12gpio: provide and use gpiod_get_label()Bartosz Golaszewski1-2/+2
2024-01-29gpio: cdev: remove leftover function pointer typedefsBartosz Golaszewski1-5/+0
2023-12-27gpiolib: cdev: replace locking wrappers for gpio_device with guardsKent Gibson1-158/+47
2023-12-27gpiolib: cdev: replace locking wrappers for config_mutex with guardsKent Gibson1-39/+24
2023-12-27gpiolib: cdev: allocate linereq using kvzalloc()Kent Gibson1-2/+2
2023-12-27gpiolib: cdev: include overflow.hKent Gibson1-0/+1
2023-12-27Merge tag 'v6.7-rc7' into gpio/for-nextBartosz Golaszewski1-4/+12
2023-12-21gpiolib: cdev: add gpio_device locking wrapper around gpio_ioctl()Kent Gibson1-4/+12
2023-12-19gpiolib: cdev: reduce locking in gpio_desc_to_lineinfo()Kent Gibson1-38/+36
2023-12-19gpiolib: cdev: improve documentation of get/set valuesKent Gibson1-1/+23
2023-12-19gpiolib: cdev: fully adopt guard() and scoped_guard()Kent Gibson1-86/+57
2023-12-19gpiolib: cdev: relocate debounce_period_us from struct gpio_descKent Gibson1-23/+142
2023-11-04treewide: rename pinctrl_gpio_can_use_line_new()Bartosz Golaszewski1-1/+1
2023-11-04gpio: cdev: use pinctrl_gpio_can_use_line_new()Bartosz Golaszewski1-2/+1
2023-09-25gpiolib: cdev: annotate struct linereq with __counted_byKees Cook1-2/+2
2023-08-22gpiolib: provide and use gpiod_line_state_notify()Bartosz Golaszewski1-12/+5
2023-08-21gpio: cdev: wake up lineevent poll() on device unbindBartosz Golaszewski1-0/+22
2023-08-21gpio: cdev: wake up linereq poll() on device unbindBartosz Golaszewski1-0/+23
2023-08-21gpio: cdev: wake up chardev poll() on device unbindBartosz Golaszewski1-2/+27
2023-08-21gpiolib: add a second blocking notifier to struct gpio_deviceBartosz Golaszewski1-0/+1
2023-08-21gpio: cdev: open-code to_gpio_chardev_data()Bartosz Golaszewski1-7/+2
2023-08-21gpiolib: rename the gpio_device notifierBartosz Golaszewski1-8/+8
2023-01-30gpiolib: Introduce gpio_device_get() and gpio_device_put()Andy Shevchenko1-12/+9
2022-12-15Merge tag 'gpio-updates-for-v6.2' of git://git.kernel.org/pub/scm/linux/kerne...Linus Torvalds1-26/+180
2022-12-07gpiolib: protect the GPIO device against being dropped while in use by user-s...Bartosz Golaszewski1-25/+152
2022-12-07gpiolib: cdev: fix NULL-pointer dereferencesBartosz Golaszewski1-0/+27
2022-10-25gpiolib: cdev: Fix typo in kernel doc for struct lineAndy Shevchenko1-1/+1
2022-10-24gpiolib: cdev: Add missing header(s)Andy Shevchenko1-1/+3
2022-10-08Merge tag 'gpio-updates-for-v6.1-rc1' of git://git.kernel.org/pub/scm/linux/k...Linus Torvalds1-0/+18
2022-09-26gpiolib: cdev: add fdinfo output for line request file descriptorsBartosz Golaszewski1-0/+18
2022-09-21gpiolib: cdev: Set lineevent_state::irq after IRQ register successfullyMeng Li1-2/+3
2022-08-04Merge tag 'gpio-updates-for-v6.0-rc1' of git://git.kernel.org/pub/scm/linux/k...Linus Torvalds1-140/+151
2022-07-19gpiolib: cdev: compile out HTE unless CONFIG_HTE selectedKent Gibson1-35/+63
2022-07-19gpiolib: cdev: consolidate edge detector configuration flagsKent Gibson1-66/+60
2022-07-19gpiolib: cdev: simplify line event identificationKent Gibson1-29/+15
2022-07-19gpiolib: cdev: replace if-else chains with switchesKent Gibson1-13/+18
2022-07-19gpiolib: cdev: simplify parameter in call to hte_edge_setupKent Gibson1-3/+1
2022-07-19gpiolib: cdev: simplify linereq_freeKent Gibson1-4/+4
2022-07-18Merge tag 'hte/for-5.19' of git://git.kernel.org/pub/scm/linux/kernel/git/teg...Linus Torvalds1-0/+4
2022-07-07gpiolib: cdev: fix null pointer dereference in linereq_free()Kent Gibson1-3/+4
2022-06-17gpiolib: cdev: Fix kernel doc for struct lineAndy Shevchenko1-0/+4
2022-06-05Merge tag 'hte/for-5.19-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git...Linus Torvalds1-33/+219
2022-05-04gpiolib: cdev: Add hardware timestamp clock typeDipen Patel1-33/+219
2022-04-05gpiolib: Get rid of redundant 'else'Andy Shevchenko1-31/+35
2022-02-08gpiolib: Never return internal error codes to user spaceAndy Shevchenko1-3/+3
2021-06-22gpiolib: cdev: zero padding during conversion to gpioline_info_changedGabriel Knezek1-0/+1
2021-01-27gpiolib: cdev: clear debounce period if line set to outputKent Gibson1-0/+2
2021-01-03gpiolib: cdev: fix frame size warning in gpio_ioctl()Kent Gibson1-72/+73
2020-12-09Merge tag 'gpio-updates-for-v5.11' of git://git.kernel.org/pub/scm/linux/kern...Linus Walleij1-11/+22
2020-12-09gpiolib: cdev: Flag invalid GPIOs as usedMarc Zyngier1-0/+1
2020-12-05gpiolib: cdev: allow edge event timestamps to be configured as REALTIMEKent Gibson1-3/+18
2020-10-30gpiolib: cdev: add GPIO_V2_LINE_FLAG_EDGE_BOTH and use it in edge_irq_thread()Kent Gibson1-2/+3
2020-10-28gpiolib: Switch to use compat_need_64bit_alignment_fixup() helperAndy Shevchenko1-16/+8
2020-10-26gpiolib: cdev: document that line eflags are sharedKent Gibson1-11/+21
2020-10-13Merge tag 'gpio-v5.10-1' of git://git.kernel.org/pub/scm/linux/kernel/git/lin...Linus Torvalds1-53/+1261
2020-10-08gpiolib: cdev: switch from kstrdup() to kstrndup()Kent Gibson1-14/+13
2020-10-07gpiolib: Disable compat ->read() code in UML caseAndy Shevchenko1-1/+1
2020-09-30gpiolib: cdev: support setting debounceKent Gibson1-10/+237
2020-09-30gpiolib: cdev: support GPIO_V2_LINE_SET_VALUES_IOCTLKent Gibson1-0/+61
2020-09-30gpiolib: cdev: support GPIO_V2_LINE_SET_CONFIG_IOCTLKent Gibson1-0/+88
2020-09-30gpiolib: cdev: support edge detection for uAPI v2Kent Gibson1-0/+277
2020-09-30gpiolib: cdev: support GPIO_V2_GET_LINEINFO_IOCTL and GPIO_V2_GET_LINEINFO_WA...Kent Gibson1-28/+168
2020-09-30gpiolib: cdev: support GPIO_V2_GET_LINE_IOCTL and GPIO_V2_LINE_GET_VALUES_IOCTLKent Gibson1-0/+424
2020-09-30gpiolib: cdev: replace strncpy() with strscpy()Kent Gibson1-16/+7
2020-09-30gpiolib: cdev: gpio_desc_to_lineinfo() should set info offsetKent Gibson1-1/+2
2020-09-17gpiolib: Fix line event handling in syscall compatible modeAndy Shevchenko1-4/+30
2020-07-12gpiolib: cdev: refactor lineevent cleanup into lineevent_freeKent Gibson1-23/+21
2020-07-12gpiolib: cdev: refactor linehandle cleanup into linehandle_freeKent Gibson1-20/+19
2020-07-12gpiolib: cdev: remove recalculation of offsetKent Gibson1-13/+7
2020-07-12gpiolib: cdev: fix minor race in GET_LINEINFO_WATCHKent Gibson1-5/+5
2020-07-12gpiolib: cdev: rename priv to cdevKent Gibson1-45/+45
2020-07-12gpiolib: cdev: use blocking notifier call chain instead of atomicKent Gibson1-12/+12
2020-07-12gpiolib: cdev: remove pointless decrement of iKent Gibson1-2/+0
2020-07-12gpiolib: cdev: rename numdescs to num_descsKent Gibson1-10/+10
2020-07-12gpiolib: cdev: rename 'filep' and 'filp' to 'file' to be consistent with othe...Kent Gibson1-35/+35
2020-07-12gpiolib: cdev: refactor gpiohandle_flags_to_desc_flagsKent Gibson1-41/+19
2020-07-12gpiolib: cdev: minor indentation fixesKent Gibson1-14/+14
2020-07-12gpiolib: cdev: sort includesKent Gibson1-11/+11
2020-06-20gpiolib: split character device into gpiolib-cdevKent Gibson1-0/+1154