gpio: stm32f7: replace ODR update by BSRR write
authorPatrice Chotard <patrice.chotard@st.com>
Thu, 9 Aug 2018 09:57:57 +0000 (11:57 +0200)
committerTom Rini <trini@konsulko.com>
Tue, 11 Sep 2018 00:48:18 +0000 (20:48 -0400)
commit798cd708d5e41fa86b0ff49ee996db9b9833e430
tree2222d28647f2e02c00723af4d73412afb5673b6a
parentc8e570167f8a2eadbd5f3c7a2b38a9e3796cea19
gpio: stm32f7: replace ODR update by BSRR write

Replace clrsetbits on ODR register (2 operations: one read + one write)
by writing on the correct bit (SET or RESET) of the BSRR register
(only 1 write operation).

Moreover this register if safe for simultaneous access by 2 master on
the bus.

Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
drivers/gpio/stm32f7_gpio.c