1. 17 12月, 2021 7 次提交
  2. 10 12月, 2021 2 次提交
  3. 06 12月, 2021 2 次提交
  4. 03 12月, 2021 4 次提交
  5. 15 11月, 2021 1 次提交
  6. 04 11月, 2021 1 次提交
  7. 30 10月, 2021 3 次提交
  8. 27 10月, 2021 1 次提交
  9. 26 10月, 2021 1 次提交
  10. 25 10月, 2021 2 次提交
  11. 21 10月, 2021 1 次提交
  12. 14 10月, 2021 2 次提交
  13. 13 10月, 2021 1 次提交
    • G
      gpio: aggregator: Wrap access to gpiochip_fwd.tmp[] · aa4858eb
      Geert Uytterhoeven 提交于
      The tmp[] member of the gpiochip_fwd structure is used to store both the
      temporary values bitmap and the desc pointers for operations on multiple
      GPIOs.  As both are arrays with sizes unknown at compile-time, accessing
      them requires offset calculations, which are currently duplicated in
      gpio_fwd_get_multiple() and gpio_fwd_set_multiple().
      
      Introduce (a) accessors for both arrays and (b) a macro to calculate the
      needed storage size.  This confines the layout of the tmp[] member into
      a single spot, to ease maintenance.
      Signed-off-by: NGeert Uytterhoeven <geert+renesas@glider.be>
      Signed-off-by: NBartosz Golaszewski <brgl@bgdev.pl>
      aa4858eb
  14. 06 10月, 2021 3 次提交
    • A
      gpio: mockup: Convert to use software nodes · 6fda593f
      Andy Shevchenko 提交于
      The gpio-mockup driver creates the properties that are shared between
      platform and GPIO devices. Because of that, the properties may not
      be removed at the proper point of time without provoking a use-after-free
      as shown in the following backtrace:
      
        refcount_t: underflow; use-after-free.
        WARNING: CPU: 0 PID: 103 at lib/refcount.c:28 refcount_warn_saturate+0xd1/0x120
        ...
        Call Trace:
        kobject_put+0xdc/0xf0
        software_node_notify_remove+0xa8/0xc0
        device_del+0x15a/0x3e0
      
      That's why the driver has to manage the lifetime of the software nodes
      by itself.
      
      The problem originates from the old device_add_properties() API, but
      has been only revealed after the commit bd1e336a ("driver core: platform:
      Remove platform_device_add_properties()"). Hence, it's used as a landmark
      for backporting.
      
      Fixes: bd1e336a ("driver core: platform: Remove platform_device_add_properties()")
      Reported-by: NKent Gibson <warthog618@gmail.com>
      Tested-by: NKent Gibson <warthog618@gmail.com>
      Signed-off-by: NAndy Shevchenko <andriy.shevchenko@linux.intel.com>
      [Bartosz: tweaked local variable placement]
      Signed-off-by: NBartosz Golaszewski <brgl@bgdev.pl>
      6fda593f
    • A
      gpio: pca953x: Improve bias setting · 55a9968c
      Andy Shevchenko 提交于
      The commit 15add068 ("gpio: pca953x: add ->set_config implementation")
      introduced support for bias setting. However this, due to being half-baked,
      brought potential issues:
       - the turning bias via disabling makes the pin floating for a while;
       - once enabled, bias can't be disabled.
      
      Fix all these by adding support for bias disabling and move the disabling
      part under the corresponding conditional.
      
      While at it, add support for default setting, since it's cheap to add.
      
      Fixes: 15add068 ("gpio: pca953x: add ->set_config implementation")
      Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
      Signed-off-by: NAndy Shevchenko <andriy.shevchenko@linux.intel.com>
      Signed-off-by: NBartosz Golaszewski <brgl@bgdev.pl>
      55a9968c
    • M
      gpio: 74x164: Add SPI device ID table · be449183
      Mark Brown 提交于
      Currently autoloading for SPI devices does not use the DT ID table, it uses
      SPI modalises. Supporting OF modalises is going to be difficult if not
      impractical, an attempt was made but has been reverted, so ensure that
      module autoloading works for this driver by adding a SPI device ID table.
      
      Fixes: 96c8395e ("spi: Revert modalias changes")
      Signed-off-by: NMark Brown <broonie@kernel.org>
      Reviewed-by: NLinus Walleij <linus.walleij@linaro.org>
      Signed-off-by: NBartosz Golaszewski <brgl@bgdev.pl>
      be449183
  15. 30 9月, 2021 1 次提交
  16. 23 9月, 2021 1 次提交
  17. 22 9月, 2021 7 次提交