gpio: add SRCU infrastructure to struct gpio_desc
authorBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Fri, 5 Jan 2024 14:46:27 +0000 (15:46 +0100)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Mon, 12 Feb 2024 09:50:37 +0000 (10:50 +0100)
commitbe711caa87c5c81d5dc00b244cac3a0b775adb18
tree04c8e14427071805e5e76ad183328519fe728b38
parentccfb6ff4f6c0574e01fb16934fb60a46285c5f3f
gpio: add SRCU infrastructure to struct gpio_desc

Extend the GPIO descriptor with an SRCU structure in order to serialize
the access to the label. Initialize and clean it up where applicable.

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Acked-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/gpio/gpiolib.c
drivers/gpio/gpiolib.h