]> git.baikalelectronics.ru Git - kernel.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)
commit88e6e083b841a793f7e92db61cc559e5e89ef7ec
treec408e2983e1de40b63a0c8a8aa5a361d8c302348
parentb5620a3e21fd86c0c24dc658f2b1624c6ffc509c
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