Messages in this thread | | | Date | Fri, 15 Dec 2023 19:33:25 +0200 | From | Andy Shevchenko <> | Subject | Re: [PATCH v3 2/2] gpiolib: use a mutex to protect the list of GPIO devices |
| |
On Fri, Dec 15, 2023 at 04:53:00PM +0100, Bartosz Golaszewski wrote: > From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> > > The global list of GPIO devices is never modified or accessed from > atomic context so it's fine to protect it using a mutex. Add a new > global lock dedicated to the gpio_devices list and use it whenever > accessing or modifying it. > > While at it: fold the sysfs registering of existing devices into > gpiolib.c and make gpio_devices static within its compilation unit.
LGTM, Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
-- With Best Regards, Andy Shevchenko
| |