From: Tom Rini Date: Tue, 31 Mar 2020 15:09:37 -0400 Subject: [PATCH resend 1/2] gpio: mpc8xxx: don't modify gpdat when setting gpio as input In-Reply-To: <20200128120423.16667-2-rasmus.villemoes@prevas.dk> References: <20200128120423.16667-1-rasmus.villemoes@prevas.dk> <20200128120423.16667-2-rasmus.villemoes@prevas.dk> Message-ID: <20200331190937.GB27133@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 > mpc8xxx_gpio_direction_input(). > > Signed-off-by: Rasmus Villemoes Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 659 bytes Desc: not available URL: