]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit - drivers/gpio/gpio-ich.c
gpio: ich: Add output levels cache support
authorVincent Donnefort <vdonnefort@gmail.com>
Fri, 14 Feb 2014 14:01:57 +0000 (15:01 +0100)
committerLee Jones <lee.jones@linaro.org>
Wed, 19 Mar 2014 08:58:23 +0000 (08:58 +0000)
commite6540f332447b2fe5c2cd8774890c80f29fe5c75
treeae8e433ce321c553a452a38e9e68e1b939a574b1
parentbb62a35bd5d96e506af0ea8dd145480b9172a2a6
gpio: ich: Add output levels cache support

This patch allows GPIO driver to cache GPIO_LVL output registers. The aim is to
support chipsets on which GPIO_LVL value can't be read for output pins.

Caching output levels implies the first output values reading as 0. The driver
so can't be aware of set values GPIOs by bootloader or BIOS.

Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Vincent Donnefort <vdonnefort@gmail.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/gpio/gpio-ich.c