]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
gpio: mpsse: add quirk support
authorMary Strodl <mstrodl@csh.rit.edu>
Tue, 14 Oct 2025 13:35:29 +0000 (09:35 -0400)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Tue, 21 Oct 2025 12:10:46 +0000 (14:10 +0200)
commitf13b0f72af238d63bb9a2e417657da8b45d72544
tree18d27cfdee3d1e764ee6881a43fbedc94a40cec9
parent179ef1127d7a4f09f0e741fa9f30b8a8e7886271
gpio: mpsse: add quirk support

Builds out a facility for specifying compatible lines directions and
labels for MPSSE-based devices.

* dir_in/out are bitmask of lines that can go in/out. 1 means
  compatible, 0 means incompatible.
* names is an array of line names which will be exposed to userspace.

Also changes the chip label format to include some more useful
information about the device to help identify it from userspace.

Signed-off-by: Mary Strodl <mstrodl@csh.rit.edu>
Reviewed-by: Dan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20251014133530.3592716-4-mstrodl@csh.rit.edu
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
drivers/gpio/gpio-mpsse.c