]> git.baikalelectronics.ru Git - kernel.git/commit
sc16is7xx: always write state when configuring GPIO as an output
authorFrancois Berder <Francois.Berder@imgtec.com>
Tue, 25 Oct 2016 12:24:13 +0000 (13:24 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Oct 2016 14:42:31 +0000 (16:42 +0200)
commitb6b167ce3b1cb31447086afe2e3b0674b85c5525
treeda2b5574afe85eac58b3d82ed73fac98b8ead2da
parent9808ac701dcbddf7376aa4ed7259d7bb307544ce
sc16is7xx: always write state when configuring GPIO as an output

The regmap_update first reads the IOState register and then triggers
a write if needed. However, GPIOS might be configured as an input so
 the read to IOState on this GPIO is the current state which might
be random.

Signed-off-by: Francois Berder <Francois.Berder@imgtec.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/sc16is7xx.c