Thread (16 messages) 16 messages, 8 authors, 2021-01-22

Re: [PATCH net-next 2/2] drivers: net: dsa: mt7530: MT7530 optional GPIO support

From: DENG Qingfang <dqfext@gmail.com>
Date: 2021-01-11 13:40:48
Also in: linux-arm-kernel, linux-devicetree, lkml, netdev

On Mon, Jan 11, 2021 at 7:04 PM Russell King - ARM Linux admin
[off-list ref] wrote:
FYI, Documentation/driver-api/gpio/consumer.rst says:

  For output GPIOs, the value provided becomes the initial output value.
  This helps avoid signal glitching during system startup.

Setting the pin to be an output, and then setting its initial value
does not avoid the glitch. You may wish to investigate whether you
can set the value before setting the pin as an output to avoid this
issue.
So, setting the Output Enable bit _after_ setting the direction and
initial value should avoid this issue. Right?

_______________________________________________
Linux-mediatek mailing list
Linux-mediatek@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-mediatek
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help