Re: [PATCH resend 2/2] gpio: mpc8xxx: don't do RMW on gpdat register when setting value

2020-03-31 Thread Tom Rini
On Tue, Jan 28, 2020 at 12:04:34PM +, Rasmus Villemoes wrote: > The driver correctly handles reading back the value of an output gpio > by reading from the shadow register for output, and from gpdat for > inputs. > > Unfortunately, when setting the value of some gpio, we do a RMW cycle > on

[PATCH resend 2/2] gpio: mpc8xxx: don't do RMW on gpdat register when setting value

2020-01-28 Thread Rasmus Villemoes
The driver correctly handles reading back the value of an output gpio by reading from the shadow register for output, and from gpdat for inputs. Unfortunately, when setting the value of some gpio, we do a RMW cycle on the gpdat register without taking the shadow register into account, thus