]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
gpio: aspeed: Add open-source and open-drain support
authorAndrew Jeffery <andrew@aj.id.au>
Fri, 7 Apr 2017 12:59:02 +0000 (22:29 +0930)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 24 Apr 2017 12:51:57 +0000 (14:51 +0200)
commitc3bafe017c3bd3f68c21637ce4b78963edf56ec5
treec408e2983e1de40b63a0c8a8aa5a361d8c302348
parent5ae4cb94b3133d00857bb2909dae779782db40cb
gpio: aspeed: Add open-source and open-drain support

As per the datasheet, manage the IO and value states to implement
open-source/open-drain, but do this by falling back to gpiolib's
emulation.

This commit simply makes the behaviour explicit for clarity, rather than
relying on the implicit return of -ENOTSUPP to trigger the emulation.

Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-aspeed.c