diff options
| author | Chuanhong Guo <[email protected]> | 2020-03-15 12:13:37 +0000 |
|---|---|---|
| committer | Bartosz Golaszewski <[email protected]> | 2020-03-25 08:50:45 +0000 |
| commit | d19d2de61fb131abcd29f7c61d3f168f687bfd6e (patch) | |
| tree | fda8cb7a01b6d9df22d36c5c8e5b4c1a6feb5dc7 /drivers/gpio/gpio-octeon.c | |
| parent | tools: gpio-hammer: Avoid potential overflow in main (diff) | |
| download | kernel-d19d2de61fb131abcd29f7c61d3f168f687bfd6e.tar.gz kernel-d19d2de61fb131abcd29f7c61d3f168f687bfd6e.zip | |
gpio: mmio: introduce BGPIOF_NO_SET_ON_INPUT
Some gpio controllers ignores pin value writing when that pin is
configured as input mode. As a result, bgpio_dir_out should set
pin to output before configuring pin values or gpio pin values
can't be set up properly.
Introduce two variants of bgpio_dir_out: bgpio_dir_out_val_first
and bgpio_dir_out_dir_first, and assign direction_output according
to a new flag: BGPIOF_NO_SET_ON_INPUT.
Signed-off-by: Chuanhong Guo <[email protected]>
Tested-by: René van Dorst <[email protected]>
Reviewed-by: Sergio Paracuellos <[email protected]>
Signed-off-by: Bartosz Golaszewski <[email protected]>
Diffstat (limited to 'drivers/gpio/gpio-octeon.c')
0 files changed, 0 insertions, 0 deletions
