Home
last modified time | relevance | path

Searched hist:"6 accc376a7482ecec2537e3e092b4f06e11d5994" (Results 1 – 3 of 3) sorted by relevance

/openbmc/linux/drivers/gpio/
H A Dgpiolib-cdev.cdiff 6accc376a7482ecec2537e3e092b4f06e11d5994 Tue Jul 07 23:15:51 CDT 2020 Kent Gibson <warthog618@gmail.com> gpiolib: cdev: use blocking notifier call chain instead of atomic

Replace usage of atomic_notifier_call_chain with
blocking_notifier_call_chain as the notifier function,
lineinfo_changed_notify, calls gpio_desc_to_lineinfo,
which calls pinctrl_gpio_can_use_line, which can sleep.

The chain isn't being called from an atomic context so the
the blocking notifier is a suitable substitute.

Signed-off-by: Kent Gibson <warthog618@gmail.com>
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
H A Dgpiolib.hdiff 6accc376a7482ecec2537e3e092b4f06e11d5994 Tue Jul 07 23:15:51 CDT 2020 Kent Gibson <warthog618@gmail.com> gpiolib: cdev: use blocking notifier call chain instead of atomic

Replace usage of atomic_notifier_call_chain with
blocking_notifier_call_chain as the notifier function,
lineinfo_changed_notify, calls gpio_desc_to_lineinfo,
which calls pinctrl_gpio_can_use_line, which can sleep.

The chain isn't being called from an atomic context so the
the blocking notifier is a suitable substitute.

Signed-off-by: Kent Gibson <warthog618@gmail.com>
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
H A Dgpiolib.cdiff 6accc376a7482ecec2537e3e092b4f06e11d5994 Tue Jul 07 23:15:51 CDT 2020 Kent Gibson <warthog618@gmail.com> gpiolib: cdev: use blocking notifier call chain instead of atomic

Replace usage of atomic_notifier_call_chain with
blocking_notifier_call_chain as the notifier function,
lineinfo_changed_notify, calls gpio_desc_to_lineinfo,
which calls pinctrl_gpio_can_use_line, which can sleep.

The chain isn't being called from an atomic context so the
the blocking notifier is a suitable substitute.

Signed-off-by: Kent Gibson <warthog618@gmail.com>
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>