diff options
author | 2018-07-16 19:07:41 -0600 | |
---|---|---|
committer | 2018-07-29 22:20:15 +0200 | |
commit | 1766e4b7047acf44cdd15aaeb1d63ed76ee78492 (patch) | |
tree | b75923554ef9e458b40f63d9a109f84f076d8865 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | pinctrl: stm32: add syscfg mask parameter (diff) | |
download | linux-dev-1766e4b7047acf44cdd15aaeb1d63ed76ee78492.tar.xz linux-dev-1766e4b7047acf44cdd15aaeb1d63ed76ee78492.zip |
pinctrl/amd: fix gpio irq level in debugfs
According to the AMD BKDG, the GPIO ActiveLevel bits (10:9) map to:
00 Active High
01 Active Low
10 Active on both edges iff LevelTrig (bit 8) == 0
11 Reserved
The current code has a bug where it interprets 00 => Active Low, and
01 => Active High.
Fix the bug, restrict "Active on both" to just the edge trigger case, and
refactor a bit to make the logic more readable.
Signed-off-by: Daniel Kurtz <djkurtz@chromium.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions