diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2018-12-06 13:43:45 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2018-12-11 01:04:17 +0000 |
commit | cb28ee388e465a956b05ada682f9ef90e776a9b7 (patch) | |
tree | ce072b8f8f8bac2520a923beded354992bed848c /net/xdp/Kconfig | |
parent | ec757001c818c175e6b610e8ef80c2a25d1ed1a5 (diff) | |
download | blackbird-op-linux-cb28ee388e465a956b05ada682f9ef90e776a9b7.tar.gz blackbird-op-linux-cb28ee388e465a956b05ada682f9ef90e776a9b7.zip |
gpio: devres: Handle nonexclusive GPIOs
When we get a nonexeclusive GPIO descriptor using managed
resources, we should only add it to the list of managed
resources once: on the first user. Augment the
devm_gpiod_get_index() and devm_gpiod_get_from_of_node()
calls to account for this by checking if the descriptor
is already resource managed before we proceed to allocate
a new resource management struct.
Fixes: b0ce7b29bfcd ("regulator/gpio: Allow nonexclusive GPIO access")
Reported-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Marek Szyprowski <m.szyprowski@samsung.com>
Tested-by: Marek Szyprowski <m.szyprowski@samsung.com>
Reviewed-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'net/xdp/Kconfig')
0 files changed, 0 insertions, 0 deletions