diff options
author | Janusz Krzysztofik <[email protected]> | 2018-10-12 21:09:01 +0200 |
---|---|---|
committer | Linus Walleij <[email protected]> | 2018-10-15 16:26:00 +0200 |
commit | 9c9f1ddee729846506b5d671ef5084f6e16dd1d1 (patch) | |
tree | 7fbc7a0a4900dcb0646227ccc7563a675c615856 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | a7c0b4b80f02d748031c785e30d380cfa7fd41ee (diff) |
mmc: pwrseq_simple: Fix incorrect handling of GPIO bitmap
Commit b9762bebc633 ("gpiolib: Pass bitmaps, not integer arrays, to
get/set array") changed the way GPIO values are passed to
gpiod_get/set_array_value() and friends. The new code introduced into
mmc_pwrseq_simple_set_gpios_value() incorrectly interpretes the 'value'
argument as a bitmap of GPIO values and assigns it directly to the
'values' bitmap variable passed to gpiod_set_array_value_cansleep()
instead of filling that bitmap with bits equal to the 'value' argument.
As a result, only member 0 of the array is handled correctly.
Moreover, wrong assumption is taken about the 'values' bitmap size not
exceding the number of bits of the 'value' argument type.
Fix it.
Signed-off-by: Janusz Krzysztofik <[email protected]>
Tested-by: Marek Szyprowski <[email protected]>
Acked-by: Ulf Hansson <[email protected]>
Signed-off-by: Linus Walleij <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions