diff options
author | Niklas Cassel <niklas.cassel@wdc.com> | 2022-02-04 13:02:25 +0000 |
---|---|---|
committer | Bartosz Golaszewski <brgl@bgdev.pl> | 2022-02-08 10:43:15 +0100 |
commit | cc38ef936840ac29204d806deb4d1836ec509594 (patch) | |
tree | 38e139bfbb028a2c075088b65cf79694ae8cc530 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 95a4eed7dd5b7c1c3664a626174290686ddbee9f (diff) |
gpio: sifive: use the correct register to read output values
Setting the output of a GPIO to 1 using gpiod_set_value(), followed by
reading the same GPIO using gpiod_get_value(), will currently yield an
incorrect result.
This is because the SiFive GPIO device stores the output values in reg_set,
not reg_dat.
Supply the flag BGPIOF_READ_OUTPUT_REG_SET to bgpio_init() so that the
generic driver reads the correct register.
Fixes: 96868dce644d ("gpio/sifive: Add GPIO driver for SiFive SoCs")
Signed-off-by: Niklas Cassel <niklas.cassel@wdc.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
[Bartosz: added the Fixes tag]
Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions