1. 25 Nov, 2020 7 commits
  2. 18 Nov, 2020 1 commit
  3. 16 Nov, 2020 1 commit
  4. 06 Nov, 2020 2 commits
    • Dmitry Osipenko's avatar
      gpio: tegra: Use raw_spinlock · 37174f33
      Dmitry Osipenko authored
      Use raw_spinlock in order to fix spurious messages about invalid context
      when spinlock debugging is enabled. This happens because there is a legit
      nested raw_spinlock->spinlock locking usage within IRQ-related code. IRQ
      core uses raw spinlock and then Tegra GPIO driver uses a nested spinlock.
      The debug code can't recognize and handle this case, hence we need to use
      raw spinlock in the GPIO driver.
      
       [ BUG: Invalid wait context ]
       ...
        (dump_stack) from (__lock_acquire)
        (__lock_acquire) from (lock_acquire)
        (lock_acquire) from (_raw_spin_lock_irqsave)
        (_raw_spin_lock_irqsave) from (tegra_gpio_irq_set_type)
        (tegra_gpio_irq_set_type) from (__irq_set_trigger)
        (__irq_set_trigger) from (__setup_irq)
        (__setup_irq) from (request_threaded_irq)
        (request_threaded_irq) from (devm_request_threaded_irq)
        (devm_request_threaded_irq) from (elants_i2c_probe)
        (elants_i2c_probe) from (i2c_device_probe)
       ...
      Tested-by: default avatarPeter Geis <pgwipeout@gmail.com>
      Signed-off-by: default avatarDmitry Osipenko <digetx@gmail.com>
      Signed-off-by: default avatarBartosz Golaszewski <bgolaszewski@baylibre.com>
      37174f33
    • Dmitry Osipenko's avatar
      gpio: tegra: Add lockdep class · 6ea68fc0
      Dmitry Osipenko authored
      Add lockdep class in order to fix debug warnings that are coming from a
      legit nested use of irq_set_irq_wake() by the Tegra GPIO driver.
      
       WARNING: possible recursive locking detected
       ...
        (irq_set_irq_wake) from (tegra_gpio_irq_set_wake)
        (tegra_gpio_irq_set_wake) from (irq_set_irq_wake)
        (irq_set_irq_wake) from (brcmf_sdiod_intr_register [brcmfmac])
       ...
      Tested-by: default avatarPeter Geis <pgwipeout@gmail.com>
      Reported-by: default avatarPeter Geis <pgwipeout@gmail.com>
      Signed-off-by: default avatarDmitry Osipenko <digetx@gmail.com>
      Signed-off-by: default avatarBartosz Golaszewski <bgolaszewski@baylibre.com>
      6ea68fc0
  5. 30 Oct, 2020 5 commits
  6. 29 Oct, 2020 1 commit
  7. 27 Oct, 2020 1 commit
  8. 26 Oct, 2020 5 commits
  9. 25 Oct, 2020 17 commits