diff options
author | Rasmus Villemoes <rasmus.villemoes@prevas.dk> | 2020-01-28 12:04:33 +0000 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2020-03-31 10:06:52 -0400 |
commit | 1d7ad9fa051e5b3057bccb6384ab62e4f9c206b2 (patch) | |
tree | e3da9dc2fa48eda040b20999cabb2fe3b74d365e /drivers/ddr/fsl/ddr2_dimm_params.c | |
parent | 71a3e5c51c96fe4011ef2cea8490e523786de863 (diff) |
gpio: mpc8xxx: don't modify gpdat when setting gpio as input
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 <rasmus.villemoes@prevas.dk>
Diffstat (limited to 'drivers/ddr/fsl/ddr2_dimm_params.c')
0 files changed, 0 insertions, 0 deletions