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

net: eth-phy: 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 eth_phy_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>
Reviewed-by: default avatarRamon Fried <rfried.dev@gmail.com>
parent 4223fb0e
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