[PATCH resend 1/2] gpio: mpc8xxx: don't modify gpdat when setting gpio as input
trini at konsulko.com
Tue Mar 31 21:09:37 CEST 2020
On Tue, Jan 28, 2020 at 12:04:33PM +0000, Rasmus Villemoes wrote:
> Since some chips don't support reading back the value of output gpios
> from the gpdat register, we should not do a RMW cycle (i.e., the
> clrbits_be32) on the gpdat register when setting a gpio as input, as
> that might accidentally change the value of some other (still
> configured as output) gpio.
> The extra indirection through mpc8xxx_gpio_set_in() does not help
> readability, so just fold the gpdir update into
> Signed-off-by: Rasmus Villemoes <rasmus.villemoes at prevas.dk>
Applied to u-boot/master, thanks!
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 659 bytes
Desc: not available
More information about the U-Boot