summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorKent Gibson <warthog618@gmail.com>2020-09-28 08:27:55 +0800
committerBartosz Golaszewski <bgolaszewski@baylibre.com>2020-09-30 10:56:52 +0200
commitaad955842d1cdf56d31e600112137d82fd431140 (patch)
tree31d9b4821c4b8cfe15b9c76fb6fc59297eed34fd /tools
parent3c0d9c635ae2b2c6416928271a452017b60e3f98 (diff)
downloadlinux-stable-aad955842d1cdf56d31e600112137d82fd431140.tar.gz
linux-stable-aad955842d1cdf56d31e600112137d82fd431140.tar.bz2
linux-stable-aad955842d1cdf56d31e600112137d82fd431140.zip
gpiolib: cdev: support GPIO_V2_GET_LINEINFO_IOCTL and GPIO_V2_GET_LINEINFO_WATCH_IOCTL
Add support for GPIO_V2_GET_LINEINFO_IOCTL and GPIO_V2_GET_LINEINFO_WATCH_IOCTL. The core of this change is the event kfifo switching to contain struct gpioline_info_changed_v2, instead of v1 as v2 is richer. The two uAPI versions are mostly independent - other than where they both provide line info changes via reads on the chip fd. As the info change structs differ between v1 and v2, the infowatch implementation tracks which version of the infowatch ioctl, either GPIO_GET_LINEINFO_WATCH_IOCTL or GPIO_V2_GET_LINEINFO_WATCH_IOCTL, initiates the initial watch and returns the corresponding info change struct to the read. The version supported on that fd locks to that version on the first watch request, so subsequent watches from that process must use the same uAPI version. Signed-off-by: Kent Gibson <warthog618@gmail.com> Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions