2f3d9829f7
[ Upstream commit c44fc98f0a8ffd94fa0bd291928e7e312ffc7ca4 ]
When working with GPIO, its direction must be set either when the GPIO is
requested by gpiod_get*() or later on by one of the gpiod_direction_*()
functions. Neither of this is done here which results in undefined
behavior on some systems.
As the reset GPIO is used right after it is requested here, it makes sense
to configure it as GPIOD_OUT_HIGH right away. With that, the following
gpiod_set_value_cansleep(1) becomes redundant and can be safely
removed.
Fixes:
|
||
---|---|---|
.. | ||
b53 | ||
hirschmann | ||
microchip | ||
mv88e6xxx | ||
ocelot | ||
qca | ||
realtek | ||
sja1105 | ||
xrs700x | ||
Kconfig | ||
Makefile | ||
bcm_sf2.c | ||
bcm_sf2.h | ||
bcm_sf2_cfp.c | ||
bcm_sf2_regs.h | ||
dsa_loop.c | ||
dsa_loop.h | ||
dsa_loop_bdinfo.c | ||
lan9303-core.c | ||
lan9303.h | ||
lan9303_i2c.c | ||
lan9303_mdio.c | ||
lantiq_gswip.c | ||
lantiq_pce.h | ||
mt7530.c | ||
mt7530.h | ||
mv88e6060.c | ||
mv88e6060.h | ||
rzn1_a5psw.c | ||
rzn1_a5psw.h | ||
vitesse-vsc73xx-core.c | ||
vitesse-vsc73xx-platform.c | ||
vitesse-vsc73xx-spi.c | ||
vitesse-vsc73xx.h |