1. 27 Mar, 2020 1 commit
  2. 26 Mar, 2020 1 commit
  3. 25 Mar, 2020 15 commits
  4. 20 Mar, 2020 1 commit
  5. 09 Mar, 2020 5 commits
  6. 03 Mar, 2020 2 commits
  7. 02 Mar, 2020 4 commits
  8. 28 Feb, 2020 1 commit
  9. 21 Feb, 2020 5 commits
  10. 20 Feb, 2020 2 commits
  11. 13 Feb, 2020 1 commit
  12. 12 Feb, 2020 2 commits
    • Bartosz Golaszewski's avatar
      tools: gpio: implement gpio-watch · 33f0c47b
      Bartosz Golaszewski authored
      Add a simple program that allows to test the new LINECHANGED_FD ioctl().
      Signed-off-by: default avatarBartosz Golaszewski <bgolaszewski@baylibre.com>
      Reviewed-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
      33f0c47b
    • Bartosz Golaszewski's avatar
      gpiolib: add new ioctl() for monitoring changes in line info · 51c1064e
      Bartosz Golaszewski authored
      Currently there is no way for user-space to be informed about changes
      in status of GPIO lines e.g. when someone else requests the line or its
      config changes. We can only periodically re-read the line-info. This
      is fine for simple one-off user-space tools, but any daemon that provides
      a centralized access to GPIO chips would benefit hugely from an event
      driven line info synchronization.
      
      This patch adds a new ioctl() that allows user-space processes to reuse
      the file descriptor associated with the character device for watching
      any changes in line properties. Every such event contains the updated
      line information.
      
      Currently the events are generated on three types of status changes: when
      a line is requested, when it's released and when its config is changed.
      The first two are self-explanatory. For the third one: this will only
      happen when another user-space process calls the new SET_CONFIG ioctl()
      as any changes that can happen from within the kernel (i.e.
      set_transitory() or set_debounce()) are of no interest to user-space.
      Signed-off-by: default avatarBartosz Golaszewski <bgolaszewski@baylibre.com>
      Reviewed-by: default avatarLinus Walleij <linus.walleij@linaro.org>
      51c1064e