summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorArtur Weber <aweber.kernel@gmail.com>2025-02-06 20:46:01 +0300
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>2025-02-11 11:46:59 +0300
commit57f5db77a915cc29461a679a6bcae7097967be1a (patch)
treed74fe2168a999212f6b2dd15b8d7f9dce7e54f5e /tools/perf/scripts/python/export-to-sqlite.py
parentde1d0d160f64ee76df1d364d521b2faf465a091c (diff)
downloadlinux-57f5db77a915cc29461a679a6bcae7097967be1a.tar.xz
gpio: bcm-kona: Make sure GPIO bits are unlocked when requesting IRQ
The settings for all GPIOs are locked by default in bcm_kona_gpio_reset. The settings for a GPIO are unlocked when requesting it as a GPIO, but not when requesting it as an interrupt, causing the IRQ settings to not get applied. Fix this by making sure to unlock the right bits when an IRQ is requested. To avoid a situation where an IRQ being released causes a lock despite the same GPIO being used by a GPIO request or vice versa, add an unlock counter and only lock if it reaches 0. Fixes: 757651e3d60e ("gpio: bcm281xx: Add GPIO driver") Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com> Reviewed-by: Markus Mayer <mmayer@broadcom.com> Signed-off-by: Artur Weber <aweber.kernel@gmail.com> Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Link: https://lore.kernel.org/r/20250206-kona-gpio-fixes-v2-2-409135eab780@gmail.com Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions