Skip to content
Commit 4223fb0e authored by Tim Harvey's avatar Tim Harvey Committed by Ramon Fried
Browse files

net: fec: prevent undesired de-assertion of phy-reset on request



When gpio_request_by_name allocates a gpio output it by default will
de-assert the gpio which for phy-reset will take the PHY out of reset.
As this occurs before fec_gpio_reset is called to assert the reset
line it can cause undesired affects if reset timings are not properly
met.

Configure the gpio with GPIOD_IS_OUT_ACTIVE so that reset is kept active
(reset asserted) to avoid this.

Cc: Sean Anderson <sean.anderson@seco.com>
Signed-off-by: default avatarTim Harvey <tharvey@gateworks.com>
Acked-by: default avatarJoe Hershberger <joe.hershberger@ni.com>
Tested-by: Adam Ford <aford173@gmail.com> #imx8mm-beacon
Reviewed-by: default avatarRamon Fried <rfried.dev@gmail.com>
parent e24b58f5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment