1. 09 Dec, 2020 2 commits
    • Linus Walleij's avatar
      Merge tag 'gpio-updates-for-v5.11' of... · 40b37008
      Linus Walleij authored
      Merge tag 'gpio-updates-for-v5.11' of git://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux into devel
      
      gpio updates for v5.11-rc1
      
      - several refactoring patches of the core gpiolib code
      - add support for NXP PCAL9554B/C to gpio-pca953x
      - allow probing mockup devices from device tree
      - refactoring and improvements to gpio-rcar
      - improvements to locking in gpio-tegra
      - code shrink in gpiolib devres
      - get the irq offset from device tree in gpio-sifive
      - major refactoring of gpio-exar
      - convert gpio-mvebu pwm access to regmap
      - create a new submenu for virtual GPIO drivers
      - fix clang fall-through warnings treewide
      - minor driver refactoring and tweaks sprinkled all over
      40b37008
    • Marc Zyngier's avatar
      gpiolib: cdev: Flag invalid GPIOs as used · a0db197f
      Marc Zyngier authored
      When reporting the state of a GPIO to userspace, we never check
      for the actual validity of the line, meaning we report invalid
      lines as being usable. A subsequent request will fail though,
      which is an inconsistent behaviour from a userspace perspective.
      
      Instead, let's check for the validity of the line and report it
      as used if it is invalid. This allows a tool such as gpioinfo
      to report something sensible:
      
      gpiochip3 - 4 lines:
      	line   0:      unnamed       unused   input  active-high
      	line   1:      unnamed       kernel   input  active-high [used]
      	line   2:      unnamed       kernel   input  active-high [used]
      	line   3:      unnamed       unused   input  active-high
      
      In this example, lines 1 and 2 are invalid, and cannot be used by
      userspace.
      Signed-off-by: default avatarMarc Zyngier <maz@kernel.org>
      Reviewed-by: default avatarAndy Shevchenko <andy.shevchenko@gmail.com>
      Link: https://lore.kernel.org/r/20201204164739.781812-2-maz@kernel.orgSigned-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
      a0db197f
  2. 08 Dec, 2020 4 commits
  3. 05 Dec, 2020 10 commits
  4. 04 Dec, 2020 4 commits
  5. 02 Dec, 2020 2 commits
  6. 01 Dec, 2020 3 commits
  7. 30 Nov, 2020 3 commits
  8. 25 Nov, 2020 7 commits
  9. 18 Nov, 2020 5 commits